Hi guys,
I've got a problem with the mouse.Mode property. I have several custom mousemodes (eModeThink, eModeMental etc.).
When using them with inventory items over the "OtherClick()" function, I have no problems at all:
Code: ags
But when using the same code with characters and hotspot and "AnyClick()", nothing happens:
Code: ags
I tried to replace eModeThink with the Mode-ID (10 in this case), but it doesn't work either.
They are all new custom mousemodes, starting with ID 8 (so I haven't overwrite the standard mousemodes look, interact etc.)
Can you help me out? Reasons? Workarounds? Solutions?
Thanks very much!
I've got a problem with the mouse.Mode property. I have several custom mousemodes (eModeThink, eModeMental etc.).
When using them with inventory items over the "OtherClick()" function, I have no problems at all:
function iApple_OtherClick()
{
if (mouse.Mode == eModeThink) {
player.Say("Hm, I think it's an apple.");
}
else if (mouse.Mode == eModeMental) {
player.Say("Doesn't work at all.");
}
}
But when using the same code with characters and hotspot and "AnyClick()", nothing happens:
function cAmy_AnyClick()
{
if (mouse.Mode == eModeThink) {
player.Say("It works"); //DOESN'T WORK!
}
}
I tried to replace eModeThink with the Mode-ID (10 in this case), but it doesn't work either.
They are all new custom mousemodes, starting with ID 8 (so I haven't overwrite the standard mousemodes look, interact etc.)
Can you help me out? Reasons? Workarounds? Solutions?
Thanks very much!