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


Joined: 28 Dec 2003
Posts: 62
Location: Australia

PostPosted: Mon Jan 12, 2004 4:57 am   

new at this but interested
 
I understand triggers and such,but I dont know how to formulate them in actions.I want to add all members of our city automtically by a trigger <person says, ; and the value <#additem %1 friend. Friend being the variable F made in Alias..so then that the variable @friend will contain all the friends within our city,so then I can perform additional triggers eg. trigger pattern <@friend is slain by *> value #cw high,red;#play siren.wav;cht person down!...etc
...But.......! I have a trigger in a class folder named city...Trigger pattern;;<(%w)says,*>;value <#additem %1 f>..But the variable @friend box in value is empty and I am getting all the citizens as variables individually,,eg...@scott,@bruce,@wilma...etc
So in short do I have to type in the value box of that variable all the citizens in our city and take it from there?
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Jan 12, 2004 8:36 pm   
 
#trigger {(%w) says, *} {#addi friends {%1}}

You put %1 as the variable name and that is why they came in as idiveduals, it was like you had a trigger for making vars.

try reading and using the examples in the help files that come with Zmud I found them to be a very valuable tool.
Reply with quote
Glinka
Wanderer


Joined: 20 Dec 2000
Posts: 53
Location: USA

PostPosted: Tue Jan 13, 2004 2:49 am   
 

Not real good at this but, I have some triggers that folk
have made...mebbe you can use something from these...

Alias: addfriend
Value:#IF ("%1"=%null) {#ECHO Usage: AddFriend name} {#ADDITEM Friends {%1}}
******************************

Alias: who
value: FriendsOnline=""
#TEMP {^Current Adventurers$} {
#T+ WhoList
#LOG who.txt {new}
}
~who
*****************************
trigger: ^*$
value: #IF (%begins( %trigger, "You notice ")) {
#LOG
#T- WhoList
#ALARM {+2} {#ECHO Online friends are: %replace( @FriendsOnline, "|", ", ")}
}
****************************

trigger: ({@Friends})
value: #ADDITEM FriendsOnline {%1}
********************

these are all just snippets to give you an idea of different ways to
do stuff, If these are useless to you,
...sorry! just tryin to help a lil..
G.
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