Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Feramors
Newbie


Joined: 19 Sep 2002
Posts: 8
Location: St. Louis

PostPosted: Tue Aug 12, 2003 3:34 pm   

Eq. change with Experience.
 
My prompt looks like this:

<14212|25844hp 19913|19913m 19342|41248mv><1465tnl><6am><?|?>

The last two Question marks are the team leader's Min|Max HP's.
I'm trying to get it so that my equipment will change to my level-up gear once my TNL(To Next Level) gets to a certain point. Anyone have any idea on how to achieve this? I'm clueless. =P

Much obliged.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net