|
Eyeless Wanderer
Joined: 02 Dec 2001 Posts: 80 Location: Canada
|
Posted: 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? |
|
|
|
Falan Wanderer
Joined: 17 Aug 2004 Posts: 98 Location: OK, USA
|
Posted: 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 |
|
|
|
|
|
|
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
|
|