So I was trying to combine VerbCoin and GotThere module into one BASS style project and I encountered a problem: VerbCoin doesn't show up when I click on hotspots. In GotThere module there is a on_mouse_click function
function on_mouse_click(MouseButton button) {
if (button == eMouseLeft) {
ClaimEvent();
lt = GetLocationType(mouse.x, mouse.y);
if (lt == eLocationNothing) {
__arrived = true;
ProcessClick(mouse.x, mouse.y, mouse.Mode);
}
else {
__arrived = false;
if (lt == eLocationHotspot) {
Hotspot*h = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
lid = h.ID;
}
else if (lt == eLocationObject) {
Object*o = Object.GetAtScreenXY(mouse.x, mouse.y);
lid = o.ID;
}
else if (lt == eLocationCharacter) {
Character*c = Character.GetAtScreenXY(mouse.x, mouse.y);
lid = c.ID;
}
mm = mouse.Mode;
ProcessClick(mouse.x, mouse.y, mm);
}
}
}
If I comment third line or if I delete this module, then everyone works fine. That's odd, because a few days ago I used them both and it worked fine, but then I changed GotThere module into latest version and now it doesn't work properly. And yes, I tried changing it to older version, it didn't help. Is there a way to make everything work perfectly without completely changing VerbCoin and module scripts? Maybe someone had similar problems?
Thanks in advance
Have you tried switching the order of the modules?
I tried that now and it actually works. Thanks!