Seems to me personally you're doing it in a rather complicated and convulted way... even if you get this working now, you'll have a hard time getting how it works a month from now.
Since you're calling some rewear function anyway, and tracking what's removed - why not just make a normal trigger for balance recovery that checks if you're missing something and wears it for you.
Temp Trigger
Re: Temp Trigger
Okay, will think of how to do that, Vadi.
The rewear thing came from here.
Rewear Antitheft
But it doesn't work well for armour yet.
The rewear thing came from here.
Rewear Antitheft
But it doesn't work well for armour yet.
Re: Temp Trigger
I've worked around that without using temp triggers. I still don't get why I have temp trigger left overs from this.
Code: Select all
remove_armour_trigger_id = tempTrigger("You have recovered balance on all limbs.", [[ send("wear " .. _G["myarmour"]) ]])
wear_armour_trigger_id = tempTrigger("You are now wearing a suit of scale mail.", [[killTrigger(]] .. remove_armour_trigger_id .. [[);killTrigger(]] .. wear_armour_trigger_id ..[[)]])
Re: Temp Trigger
At the time you pass the id of your second tempTrigger to the second killtrigger function, the id is not defined because it will only be defined after the function call to tempTimer().
Re: Temp Trigger
can you explain that in normal speak? D: All I understood from that is I didn't let the temptrigger finish.
Re: Temp Trigger
That bit of code was my fault
edit: Rest of my post was wrong, opps
edit: Rest of my post was wrong, opps