Zist Alias Trackto

From RoDpedia
Jump to navigation Jump to search

Sample Aliases

These "Alias Sets" either contain single aliases, multiple aliases, triggers and supporting aliases, or any combination thereof. Click on each link to open the window for that sample alias set. Viewable and downloadable code for each is provided to make it as easy as possible for you to import them. Settings are included on this page instead of on the "Sample Triggers" page because the "driving code" starts with an alias, that is, to get it to do what it is supposed to do requires you type in an alias name and required parameters and hit enter.

AUTOMATIC TRACKING ALIAS/TRIGGER SET (Using the TRACK skill)

This alias/trigger set has one alias and two triggers, and allows you to automatically track to a mob that is in the area you are in. The first setting listed below is an alias called "trackto" which is used to get the whole thing started. For example, if you wanted to track to a mob named "Joe" then you would type "trackto Joe". The trackto alias would set the variable @trackmob to "Joe" and then turn on the trigger set and type "track Joe". The two triggers that follow will support the continued tracking of "Joe" as the MUD responds back to the first "track Joe" command. The second setting, the trigger for "You sense a trail (%w) from here...", grabs the direction that the mob was detected in, has your character move that direction, and then re-enters the "track Joe" command again to keep the tracking chain going. The last setting, the trigger for "You're already in the same room!", triggers when you find the mob and the trigger then turns off the "trackto" class disabling the other trigger.


Here are the settings included in this Alias/Trigger set:

#ALIAS trackto {#var trackmob %1;#t+ trackto;#show autotracking;track @trackmob}

#TRIGGER {You sense a trail (%w) from here...} {%1;track @trackmob} {trackto}

#TRIGGER {You're already in the same room!} {#t- trackto} {trackfound}

Settings

#ALIAS trackto {#var trackmob %1;#t+ trackto;#show autotracking;track @trackmob}

#TRIGGER {You sense a trail (%w) from here...} {%1;track @trackmob} {trackto} 

#TRIGGER {You're already in the same room!} {#t- trackto} {trackfound}