 |
Neos Newbie
Joined: 23 Nov 2008 Posts: 3
|
Posted: Sun Nov 23, 2008 1:58 am
Need help with a basic trigger... |
Not sure where to start with this, it's a interactive fighting system mud that requires simple commands but I can't get it to go in order. Here's an Example:
SuperDude's Clone is stunned!
Combination! ( r r )
<94%> / <659,945/1,218,615> vs. <362,000>
round
<94%> / <678,224/1,218,615> vs. <362,000>
You begin a high sweep motion...
Your roundhouse does UNSPEAKABLE-THINGS to Nikogenie! =[64,431]=
<93%> / <678,224/1,218,615> vs. <297,000>
round
<93%> / <678,224/1,218,615> vs. <297,000>
You begin a high sweep motion...
Your roundhouse THRASHES Nikogenie! =[71,213]=
<92%> / <678,224/1,218,615> vs. <226,000>
2 hit combo! =[135,644]=
Nikogenie regains their movement!
I've tried turning on a class folder "Combo" from the "stunned" entry and set-up basic triggers for single letter captures "r" it sometimes lands correctly. Other times it jus doesn't go in order. Or doesn't fire at all. Please help.
-N |
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Nov 23, 2008 4:08 am |
You need to be more specific about what your problem is; right now, I have no idea what problem it is you're trying to solve. You need to describe exactly what it is you expect a script to do, and what it is the MUD wants you to do. All you've said so far is "it doesn't go in order", which isn't very helpful.
Also, seeing the code you have would help too. |
|
|
|
 |
Neos Newbie
Joined: 23 Nov 2008 Posts: 3
|
Posted: Sun Nov 23, 2008 12:34 pm |
SuperDude's Clone is stunned! <----- | turn on class folder "Combo" #TRIGGER {%2 is stunned!} {#T+ Combo} |
Combination! ( r r ) <---- | read and enter in triggers this "r" which means to roundhouse turned on by #T+ Combo--> #TRIGGER {r} {~roundhouse}<--most ... likely the problem |
<94%> / <659,945/1,218,615> vs. <362,000>
round <---------- | what I need it to input |
<94%> / <678,224/1,218,615> vs. <362,000>
You begin a high sweep motion...
Your roundhouse does UNSPEAKABLE-THINGS to SuperDude's Clone! =[64,431]= <-----action done, but I don't want my basic trigger "r" to go out from "Your roundhouse"
<93%> / <678,224/1,218,615> vs. <297,000>
round <--------- | this is the second part of the combo "r" thus I want it to loop again. |
<93%> / <678,224/1,218,615> vs. <297,000>
You begin a high sweep motion...
Your roundhouse FUCKING THRASHES SuperDude's Clone! =[71,213]= <------ | again same action done that I don't want it to respond to "Your roundhouse"
<92%> / <678,224/1,218,615> vs. <226,000>
2 hit combo! =[135,644]=
SuperDude's Clone regains their movement! <----- | #TRIGGER {%2 regains their movement!} {#T- Combo} ... figured I need to turn it off cause even the directions sometimes says "sw" for southwest, and there's sometimes a "sw" in the combo's that's for "sweep"
------Hope this helps-------
much obliged for any assistance...=D |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Sun Nov 23, 2008 1:31 pm |
This should give you enough of an example to add in the rest.
| Code: |
#DELCLASS Combo
#CLASS Combo
#VAR ComboAttacks {}
#ADDKEY ComboAttacks {r} {round}
#ADDKEY ComboAttacks {sw} {sweep}
#TRIGGER {^Combination! ~( (%w) (%w)~)} {#SEND {%db(@ComboAttacks,%1)}}
#COND {^Your} {#SEND {%db(@ComboAttacks,%t2)}}
#CLASS 0 |
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
Neos Newbie
Joined: 23 Nov 2008 Posts: 3
|
Posted: Sun Nov 23, 2008 11:50 pm |
Ok input everything in. Check all scripts. Still no go. I should also mention there's almost always different amount of attacks.... Combination! ( sw sw ) next one could be ( r sw r ). Not sure if that might not let the trigger fire. Please any help again will be appreciated.
Muchos grasiass. You guys/girls are awesome |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Mon Nov 24, 2008 9:49 am |
I was missing a space in the original pattern for 2 attacks. Also the pattern has to be changed now that you mentioned there being more than 2 sometimes. That will also require a bit more code.
| Code: |
#DELCLASS Combo
#CLASS Combo
#VAR ComboAttacks {}
#ADDKEY ComboAttacks {r} {round}
#ADDKEY ComboAttacks {sw} {sweep}
#VAR ComboTemp {} {}
#TRIGGER "ComboStart" {^Combination! ~( (*) ~)} {ComboTemp=%subchar(%1," ","|");#SEND {%db(@ComboAttacks,%pop(ComboTemp))}}
#COND {^Your} {#IF (@ComboTemp) {#SEND {%db(@ComboAttacks,%pop(ComboTemp))} {#STATE ComboStart 0}} "looppat|param=30"
#CLASS 0 |
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
|
|
|
|
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
|
|