gingertips wrote:sorry u lost me on this one - what do you mean???
He means that he has something similar to this:
Code: Select all
#event GainXP "You have gained experience"
and that every time the message shows up, the sub Event_GainXP is called anywhere from 1-20 times. So, all the commands in the sub are performed 1-20 times.
pxlpluker, as a walkaround, I would suggest the following:
set aside a global variable. We'll call it v39, could be anything.
Then do something like this:
Code: Select all
sub Event_GainXP
/if n $v39==1 /return
/varset v39 1
...
/return
.
Then, elsewhere, before you do something that will make you gain xp, do
. That way, the event can fire as often as it wants... should only execute the code once for each time you tell it to 'expect' it.
Another possibility would be something like this:
Code: Select all
sub Event_GainXP
/if n $v39==1 /return
/varset v39 1
/varset t19 150
...
/return
sub Event_Timer
/if n $p0==19 /varset v39 0
/return
Kind of a hackish workaround, but it may be of some help.