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
Apollyon
Wanderer


Joined: 02 Oct 2001
Posts: 76
Location: USA

PostPosted: Wed Feb 27, 2002 7:29 pm   

help me out
 
ok i know i can make triggers like this

#trigger {something} {action}

but i want to know if i can use typing to make a trigger and set its class, this would be helpful cause i do alot of triggers on different muds with different characters that are the same, i was gonna make a text file with all the triggers so i could copy and paste, but this doenst work so well with classes, just wondering

Apollyon

Penis
Just had to stick that one in.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Feb 27, 2002 7:59 pm   
 
If you are cutting and pasting into your command line
then you'll want the triggers to look something like:

#TRIGGER {pattern} {script} "ClassName|ClassSubFolder"
#ALIAS myalias {script} "ClassName|ClassSubFolder"
#VAR myvariable {1} {_nodef} "ClassName|ClassSubFolder"

If you are importing it from a text file then you can use the follow
or what was above:

#CLASS {ClassName|ClassSubFolder} {enable|menu}
#TRIGGER {pattern} {script}
#ALIAS myalias {script}
#VAR myvariable {1} {_nodef}
#CLASS 0

TonDiening
Beta Upgrading to 6.26
Reply with quote
Apollyon
Wanderer


Joined: 02 Oct 2001
Posts: 76
Location: USA

PostPosted: Wed Feb 27, 2002 8:37 pm   
 
when you say ClassName|ClassSubFolder
you mean either ClassName or ClassSubFolder right?
the same with menu|enable
just making sure
so the trigger you be
#trigger {blahblah} {action} "class"
?

Apollyon

Penis
Just had to stick that one in.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Feb 27, 2002 9:00 pm   
 
If you have a class folder structure like:

A
|_B
|_C
D
|_E

Where A and D are root class folders
Where folders B and C are in folder A and
Where folder E is in folder D,


You can reference that location by "A" "A|B" "A|C" "D" "D|E"
so the trigger goes into the right folder.

G
F
|_G

If G is a root class folder and
if F is a root class folder with another folder G in it:

#TRIGGER {pattern} {action} "G"
#TRIGGER {pattern} {action} "F|G"

That way you put the right trigger into the right "G" or "F|G" folder

The {menu|enabled} are for the check box choices and is different
from the class folder position.

TonDiening
Beta Upgrading to 6.26
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