Hello,
I'm using a lucasarts style GUI (actions and inventory on
a gui which is displayed at all times) and I've encountered
some problems. Whenever I try to scroll the inventory while
the character is walking it gives me this error:
---------------------------
Adventure Game Studio
---------------------------
An error has occured. Please contact the game author for support, as this
problem is caused by the game rather than the interpreter.
(ACI version 2.60.693)
(Global script line 272)
Error: SetCharacterSpeed: cannot change speed while walking
---------------------------
OK
---------------------------
So I checked my global script at line 272 and yeah, this is there:
SetCharacterSpeed(EGO,(GetSliderValue(5,1)));
But it's on a completely different GUI! How can this be? When I disable
the line (ie. make it a comment with // ) it works fine. Any ideas?
Thanks in advance
Maybe it's a {} or if nested problem that somehow get the line executed with other GUI, can you post the GUI script here?
Also, check the GUI#5 What is it there?
Try putting
if (player.walking==0)
in front of the problem line?
Also, are you SURE that that code isn't in repeatedly_execute?