![](templates/Classic/images/spacer.gif) |
RikuoVW Newbie
Joined: 01 Jun 2006 Posts: 8
|
Posted: 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. |
|
|
![](templates/Classic/images/spacer.gif) |
Kjata GURU
![](images/avatars/190086853941eff9946d4cf.jpg)
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
RikuoVW Newbie
Joined: 01 Jun 2006 Posts: 8
|
Posted: 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 ? |
|
|
![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4674 Location: Pensacola, FL, USA
|
Posted: Wed Jun 07, 2006 2:58 am |
#TR {^~[(%w)~]$} {direction=%1;#TEMP "dartToPlayer" {^(%w) ~(Player~)$} {dart %1 @direction}}
|
|
_________________ Discord: Shalimarwildcat |
|
|
![](templates/Classic/images/spacer.gif) |
RikuoVW Newbie
Joined: 01 Jun 2006 Posts: 8
|
Posted: 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 :) |
|
|
![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4674 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
RikuoVW Newbie
Joined: 01 Jun 2006 Posts: 8
|
Posted: 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.
|
|
|
![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4674 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
|
|