|
Skaphia Beginner
Joined: 18 Dec 2002 Posts: 27 Location: USA
|
Posted: 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) |
|
|
|
Skaphia Beginner
Joined: 18 Dec 2002 Posts: 27 Location: USA
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
|
|