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


Joined: 18 Dec 2002
Posts: 27
Location: USA

PostPosted: Wed Mar 12, 2003 4:49 pm   

Advice on a trigger?
 
What I am attempting to do is create a trigger to capture a person's hand being raised. For example I want this:
(%w) raises their hand.
To save the name of the person into a variable and then display their name in the Status bar. I have that part nailed.. my problem is I was curious if there was a way to trigger the removal of the first name each time you press a macro or say a phrase? Thanks for any help you can give.

Skaphia (realms.game.org 4000)
Reply with quote
Skaphia
Beginner


Joined: 18 Dec 2002
Posts: 27
Location: USA

PostPosted: Wed Mar 12, 2003 4:52 pm   
 
I should probably mention that I am saving each person's hand every time they raise it. So if 3 people raise their hands (jack, jill and joe) the status bar would display:
Jack Jill Joe
I want to know how to remove Jack via macro/trigger, whatever works. Also I am on 5.55
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Mar 12, 2003 8:15 pm   
 
Use %delete to delete the name from the variable. Here is an alias that accepts as an argument the name to delete and deletes it:
#ALIAS remname {#VAR statnames {%delete(@statnames, %pos(%1, @statnames), %len(%1) + 1)}}

Kjata
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Mar 12, 2003 8:18 pm   
 
For a similar idea, no clue if this works on such an old version but something akin to:

#TRIGGER {^(%w) raises their hand.} {#ADDITEM MyVariable %1}
#KEY F3 {cast ~'recall~' %item(@MyVariable,1)}
#TRIGGER {You cause someone to disappear} {#DELITEM MyVariable %item(@MyVariable,1)}

Ton Diening
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