|
Berrai Beginner
Joined: 10 Jul 2010 Posts: 11 Location: Globe Trotter
|
Posted: Sun Jul 11, 2010 11:44 am
Triggering Question |
Not sure if this is the right forum for this, but..
I am trying to figure out how to trigger an event based on the value of a tag (%hp/%mp) etc. The Flow of what I am trying to do is
Create a var with multiple states
Read Maxvalue Tag
Read currentvalue tag
Compare tags
if currval < maxval wait
if currval = maxval output variable to mud
increment variable state by 1, and repeat.
I am pretty certain I have the variable bit worked out. I am just not sure how to use the data from the values to trigger everything else. I know this is probably stupidly easy for some folks, but my brain struggles with scripting for some reason. |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Jul 13, 2010 1:13 pm |
The best way I can think of to do this is with multiple triggers. First, make a trigger on the (%hp/%mp) tag which captures and stores the values of curval and maxval. Then another trigger, of the Expression type, which has a pattern of @curval = @maxval. An Expression trigger will fire when the any of the variables used in the expression change value and the expression becomes true.
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|