This is likely a very simple set up, but for some reason it eludes me at the moment. I have a very simple variable setup that I'd like to do.
Currently I have a trigger for when I am disarmed that simply reacts to a disarm prompt and sends commands to get weapon and wield weapon.
What I want to do is set the weapon to a variable and then return it from within the trigger.
So here is the essence of it:
world sends:
soandso disarms you!
trigger sends to world:
get $weapon
wield $weapon
So "$weapon" would be the variable in this case. I'd like to set the variable with an alias then returns that value within the above trigger. Simple enough I'm sure, but I'm having major cerebral flatulations in deciding how to code it.
Suggestions?
Currently I have a trigger for when I am disarmed that simply reacts to a disarm prompt and sends commands to get weapon and wield weapon.
What I want to do is set the weapon to a variable and then return it from within the trigger.
So here is the essence of it:
world sends:
soandso disarms you!
trigger sends to world:
get $weapon
wield $weapon
So "$weapon" would be the variable in this case. I'd like to set the variable with an alias then returns that value within the above trigger. Simple enough I'm sure, but I'm having major cerebral flatulations in deciding how to code it.
Suggestions?