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
n0manarmy
Newbie


Joined: 31 May 2002
Posts: 8

PostPosted: Wed May 12, 2004 3:49 pm   

Newb question (promise i tried to research first)
 
I'm trying to get this line to fire a trigger to store the amount of potions in the variable PURPLE

a glowing purple potion (69)

I cannot get the amount to store in a variable without the () being included (Tried using %d with no luck.)

Secondly (which i also researched) the variable PURPLE which will contain the amount of potions im trying to decrease by 1 every time i press the F1 macro key and I can't get the value to subtract :(

Please help if you have the time?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed May 12, 2004 4:32 pm   
 
Please read the Pattern Matching helpfile
Also these are good reading materials
#HELP TRIGGER
#HELP Variable
#HELP ADD

#TR {A glowing purple potion ~((%d)~)} {purple=%1}

#KEY F1 {#ADD purple -1}
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