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


Joined: 14 Nov 2006
Posts: 2

PostPosted: Tue Nov 14, 2006 6:15 pm   

Help me learn.
 
I am fairly new to using this client, but enjoy the versatility that it gives. I have been working with simple trigger and alias combinations and am starting to work my way deeper into the formatting of more complex scripts. One thing I am trying to do, but need a little push in the right direction about how to accomplish (I believe this could be something done with conditions, I could be wrong). Lets say I have seven triggers based on specific information. Like for example. When I see the text:

exp1, exp2, exp3, exp4, exp5, exp6, exp7

I am wanting zmud to recoagnise those specific things, then more or less randomly choose between a set of 5(or more) commands for each trigger phrase. If someone could show me how to format just one of these by example I can work out the rest and the kinks. Just wanting something I can begin to work from to learn. My only idea of how to make this work..is to create strings of looped trigger classes that turn off and on for each phrase, but that would make a set pattern instead of a more random affect like I'm trying to make. After this is complete I would be more than happy to put the script and the full reason for its purpose on the boards.

Any help would be appriciated, if this question has been answered or an example is somewhere in the forums I have not been able to find it, and would be greatful for a link.


Pryden
Reply with quote
shalimar
GURU


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

PostPosted: Tue Nov 14, 2006 6:59 pm   
 
#TRIGGER {exp1} {#CASE %random(1,5) {first command} {second command} {third command} {fourth command} {fifth command}}
_________________
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