|
Apollyon Wanderer
Joined: 02 Oct 2001 Posts: 76 Location: USA
|
Posted: 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. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
Apollyon Wanderer
Joined: 02 Oct 2001 Posts: 76 Location: USA
|
Posted: 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. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
|
|