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
Eyeless
Wanderer


Joined: 02 Dec 2001
Posts: 80
Location: Canada

PostPosted: Sun Feb 06, 2005 8:13 am   

Assistance please
 
Need a little code help if someone can. Not sure how to approach this properly... Have tried several things none seem to work

Using most recent version of zmud.

TRIGGER {~* (*) joins the adventure.
Script run:
#CO red,bold
#IF %pos( "Mike", %1) {#SUB {%time("h:nn am/pm") %trigger}} {#IF %pos( "Sally", %1) {#SUB {%time("h:nn am/pm") %trigger}} {#GAG}}

Theoretically Mike and Sally are friends (this script works)

* Zelena McKinney joins the adventure.
* Zhunni Valleyan joins the adventure.
* Tafkapp powersoul joins the adventure.
* Araminta Clenara joins the adventure.
* Apprentice Mike Coolguy joins the adventure.
* Dancer Sally de-Ceisy joins the adventure.

Are examples of log ins, none are people I know or am friends with, so I want them gaged... that works right now too... but I cannot get it to go over two people. I'd like to think I am nifty and have more than two friends... and would like to add them to the 'list' too. I have tried names into variables, adding more #IF commands nothing seems to work... Any suggestions?
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Sun Feb 06, 2005 11:23 am   
 
Create a variable list of friend names,

#VAR Friends {Mike|Sally}

Then change the #IF statement to match your variable list,

#IF (%pos( @Friends, %1)) {#SUB {%time("h:nn am/pm") %trigger}} {#GAG}

untested
_________________
zMUD 7.05a
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