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
Tre976
Beginner


Joined: 15 Feb 2001
Posts: 20
Location: USA

PostPosted: Fri Oct 24, 2003 8:18 pm   

adding a temp variable
 
i want to be able to go thru a numerical progression for killing mobs people etc.

i use the @target for prefined targets so i'd type du and my alias would set target to to target duergar
i then have my numerkeys set so 2 = 2.@target

the problem comes when i want to go from any number to the next it. if i go from to 2. to 3. my target reads 3.2.@target

instead of 3.target
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Oct 24, 2003 10:50 pm   
 
Use 2 variables. Then just '%concat(@counter,".",@target)'. Then you can use '#ADD counter 1' for incrementing.
Reply with quote
Tre976
Beginner


Joined: 15 Feb 2001
Posts: 20
Location: USA

PostPosted: Sun Dec 04, 2005 1:06 pm   
 
could anyone elaborate on this? still using 6.16 if that matters

reference
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=6318&highlight=

for my script if that will help
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