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


Joined: 27 May 2005
Posts: 18

PostPosted: Wed Apr 26, 2006 6:04 am   

newbie question
 
ii'm wanting to have the value on a trigger have more than one option. i've never done any programming so i don't even know what that's called. example being:

if the patter was: bob walks in from the north

i would want the value to randomly choose from the following:

say hi to bob
or
nod to bob
or
shake hands with bob
or
kill bob


i'm sure this is really simple, but like i said... i just don't know where to start.


thanks in advance.
kevlar
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Wed Apr 26, 2006 8:05 am   
 
#TR {bob walks in from the north} {#CASE %random(1,4) {say hi to bob} {nod to bob} {shake hands with bob} {kill bob}}
_________________
Discord: Shalimarwildcat
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