LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Aug 12, 2003 5:46 pm |
Use a trigger.
It should include Trigger on: Prompt in the Options.
Use ~ in front of special characters such as <, >, |, and ?.
Use wildcards to represent information (such as numbers) that won't be the same every time.
Use parentheses around the parts of the Pattern you'll need to refer to in the Value section of the trigger.
Compare the actual TNL from the prompt to the "certain point". When it's below the "certain point", make your equipment changes.
Since you may receive more than one prompt while your TNL is below the "certain point", use some form of control device to make sure you only try to switch equipment once.
#VAR equip normal
#TR {~<%d~|%dhp %d~|%dm %d~|%dmv~>~<(%d)tnl~>~<%d%w~>~<%d|%d~>} {#IF ((%1 < @certainpoint) AND (@equip = "normal")) {#VAR equip level;remove normal-gear;wear level-up-gear}} {} {nocr|prompt}
#TR {~<%d~|%dhp %d~|%dm %d~|%dmv~>~<(%d)tnl~>~<%d%w~>~<%d|%d~>} {#IF ((%1 > @certainpoint) AND (@equip = "level")) {#VAR equip normal;remove level-up-gear;wear normal-gear}} {} {nocr|prompt} |
|