|
Enathe Novice
Joined: 17 Nov 2001 Posts: 34 Location: USA
|
Posted: Fri May 09, 2003 5:28 pm
Trigger Set |
I am trying to setup a set of triggers that would fire off these outputs:
You parry
#Trigger Sty Iron
You return with a hard cut across the face
#Trigger Sty Rup
You slice open a crucial artery
#Trigger Sty Blade
Your brutal slash rips the flesh off
-OR-
You fail to perform the style correctly
“You parry” is the starting output. After “you parry” I would want it to trigger “sty run” and so on. I would want it to ignore any other “you parry” until either “Your brutal slash rips the flesh off” which would signal the end of the set or “You fail to perform the style correctly” which would signal an error and it should reset. There are other sets as well. Another one starts with “You block”. “You block” and “You parry” happen very often throughout battle and I would not want the triggers firing until a set is complete or there is not a set running because it would mess up the whole set. I would also like to disable the entire Style trigger system when I am fighting just regular mobs. Setting up a set of triggers to fire off those lines is already complete but I am having trouble with how to stop triggers from firing once a set is in the works. Thanks everybody for your help. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri May 09, 2003 10:23 pm |
Your post isn't entirely clear about what's a pattern and what's a command. I'm guessing that all the "Sty This" are actually supposed to be style commands rather than trigger IDs and patterns. I'd recommend using a multi-state trigger, something along these lines:
#TR Style {You parry} {style iron}
#COND Style {You return with a hard cut across the face} {style rupture}
#COND Style {You slice open a crucial artery} {style blade}
#COND Style {Your brutal slash rips the flesh off} {style parry}
#TR {You fail to perform the style correctly} {style parry;#STATE Style 0}
These may all be placed in the Class of your choice. You then disable the entire Class using the #T- command when you don't want to use them. The Class may be reenabled using the #T+ command, probably with the #STATE command to reset the script. It may be helpful to put the #T+/#T- commands into a pair of aliases or macros for ease of use.
LightBulb
Advanced Member |
|
|
|
Enathe Novice
Joined: 17 Nov 2001 Posts: 34 Location: USA
|
Posted: Wed May 14, 2003 9:20 pm |
Thanks for the post. I came up with a solution that works great. The condition thing gave me an idea and it worked wonders. Here is what I ended up using.
#var style
#CLASS {Styles|Crescent}
#TRIGGER {You swing your weapon in a wide arc} {sty half}
#TRIGGER {You swing your weapon in a diagonal slash} {sty gib}
#TRIGGER {You swing in a tight arch} {sty full}
#TRIGGER {sty cres} {#var style 0}
#TRIGGER {You spin, swordarm extended} {
sty clear
#var style 1
}
#CLASS 0
#CLASS {Styles|Parry}
#TRIGGER {you parry} {#if (@style="1") {
#var style 0
sty iron
}}
#TRIGGER {You return with a hard cut across the face of} {sty rup}
#TRIGGER {You slice open a crucial artery on} {sty blade}
#TRIGGER {Your brutal slash rips the flesh off} {
sty clear
#var style 1
}
#CLASS 0
Thanks very much for the help.
Enathe |
|
|
|
|
|