Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Creedy

#1
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

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:

Code: ags

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!
SMF spam blocked by CleanTalk