LordPyro Newbie
Joined: 05 Jan 2002 Posts: 1 Location: USA
|
Posted: Sat Jan 05, 2002 9:47 pm
Need help with a trigger problem |
On a mud that I sometimes play, there are many different attacks someone can use against you, and a few different ways to block them. I have a sepperate set of triggers that catch what type of attack it is, and I have the command needed to block it aliased to "pa" 2.5 seconds after you see the type of attack they used, I need to type pa to block it. I'm trying to make a set of triggers that will block it automatically, but the problem is, occasionally they change the attack in the middle of the sequence, and you no longer need to block the first one. This is where the problem comes in, because if they do change attacks, the trigger still trys to block the first one, and is too lagged from skill lag, to block the second one in time. Any ideas on how I could make it not block, if, another attack is thrown, and then 2.5 seconds after the next one is thrown block, unless of course, they switch attacks again. Which would mean to issue the pa command 2.5 seconds after the newest attack.
Currently I was telling it when it sees the text "begins a high attack" It does:
#if {@qwe = 2} {#var qwe 2} {}
#if {@qwe = 1} {#var qwe 2} {}
#if {@qwe = 0} {#var qwe 1} {}
#if {@qwe = 1} {#Wa 2500;#If {@qwe = 2} {#var qwe 2} {};#if {@qwe = 1} {pa;#var qwe 0} {} }
#if {@qwe = 2} {#var qwe 1} {}
However when, someone throws a new attack, and it sees, "begins a high attack" it issues the pa command immediatly, then 2.5 seconds later issues another pa command, I can't figure out a better way to write this, or why this isn't working, any ideas would be appreciated |
|