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
RikuoVW
Newbie


Joined: 01 Jun 2006
Posts: 8

PostPosted: Tue Jun 06, 2006 9:18 pm   

Making a Trigger
 
How would I go about making a Trigger/Alias for something like this.

Well for starters can this be done? The best solution I see would be to make an alias.

The kind of command I would like to make is :

If I see a person standing in a room north of me.

I want to enter a command of :

Dart ( Name of Char ) and the direction of the room he is in.

I basically made an alias of a char's name in every direction to dart.


Is there a way to make it easier instead of having 4 different aliases due to room direction? and it does not apply to strictly 1 character.

I really hope I am somewhat making sense.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Jun 06, 2006 10:42 pm   
 
What is the alias that you currently have? Do you want this to happen automatically when you notice someone a room away from you? How exactly do you notice this? Does the MUD give you a specific message?
_________________
Kjata
Reply with quote
RikuoVW
Newbie


Joined: 01 Jun 2006
Posts: 8

PostPosted: Wed Jun 07, 2006 1:59 am   
 
[North]
Nobody here.
[East]
Godsmack's elemental steed
Godsmack (Player)
[South]
Tigika's elemental steed
[West]
Godsmack's elemental steed
[Up]
No exit.
[Down]
No exit.

As for my aliases.. I have dde as an alias.. dart Godsmack east.

and so on for each direction. Is there a better way? Is there a way I can apply it for any character in any direction that I want to dart ?

This help any ?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4702
Location: Pensacola, FL, USA

PostPosted: Wed Jun 07, 2006 2:58 am   
 
#TR {^~[(%w)~]$} {direction=%1;#TEMP "dartToPlayer" {^(%w) ~(Player~)$} {dart %1 @direction}}
_________________
Discord: Shalimarwildcat
Reply with quote
RikuoVW
Newbie


Joined: 01 Jun 2006
Posts: 8

PostPosted: Wed Jun 07, 2006 3:16 am   
 
Hmmm

I am using 7.05 verison... will it make a difference? so I am making a trigger and what is a #temp? be more clear? Im a dummie :)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4702
Location: Pensacola, FL, USA

PostPosted: Wed Jun 07, 2006 3:23 am   
 
#TEMP is a #TRIGGER that only fires once and deletes itself from memory. try '#HELP temp' for more information.
_________________
Discord: Shalimarwildcat
Reply with quote
RikuoVW
Newbie


Joined: 01 Jun 2006
Posts: 8

PostPosted: Wed Jun 07, 2006 4:22 am   
 
what is exactly the pattern and command here? Space it out so I can see how its done.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4702
Location: Pensacola, FL, USA

PostPosted: Wed Jun 07, 2006 5:10 am   
 
stick it all into the command line and it will make itself, no neeed to go into the settings editor
but if you must know:

pattern:

^~[(%w)~]$

Value:

direction=%1
#TEMP "dartToPlayer" {^(%w) ~(Player~)$} {dart %1 @direction}
_________________
Discord: Shalimarwildcat
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