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


Joined: 08 Aug 2003
Posts: 1
Location: USA

PostPosted: Fri Aug 08, 2003 8:47 pm   

help with variables
 
OK guys and gals,
I'm making a jeopardy type game on the mud i imm on. the board consists of 6 subjects and 5 values per subject:

|Sports | 100 200 300 400 500 (example)

anyways each of the 30 values i have set up as a variable. what i want is when that variable gets used, the value would go from 100 to a ---, showing the subject has been used:

|Sports | --- 200 300 400 500 (example)

any ideas on how it could be done?

thanks for any possible help
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Aug 09, 2003 1:45 am   
 
Instead of using 30 separate variables, use 6 variables each with 12345 as the value. As you figure out which gets used, you can simply search for the significant number in that variable's value and replace it with a -:

#trigger {%w says to you, ~"({@Topics}) for (%d)~"} {#var %1 %replace(%1,%left(%2,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