A very hard trigger

Posted by Jcet on Mon 29 Oct 2001 08:54 PM — 3 posts, 14,612 views.

USA #0
ok, let me explain it all
first, when you techblock someones attack, you sometimes get a stun, and when u do so, they cant do anything for about 3 seconds
sometimes when u get a stun, you get a combination, and it looks like this:

TECH BLOCK bonus! Jcet is stunned!
Combination! ( lp rp s r )

thats with a combo, without one it looks just like:

TECH BLOCK bonus! Jcet is stunned!

ok, i need to make a script that sets a variable when it sees the Combination! ( lp rp s r ), and when it doesnt see it, it starts a roundhouse(i kno how to get it to do a roundhouse) but what i need is for it, IF it doesnt show the combo line, then it will start a roundhouse automaticly.
The getvariable script(VBScript, thats what im working with)
it doesnt have enough info, can it only check to see if the variable is there? or if its empty??
Australia Forum Administrator #1
It is kind-of hard to make a trigger that matches on a line not being received, but what I would do is this...


  1. Make a trigger that matches on "TECH BLOCK bonus!". This trigger would call a script that - in addition to anything else you want it to do - would remember the line number of this trigger, eg. something like this:


    world.setvariable "techblock", cstr (world.GetLineCount())

  2. Make another trigger that matches on the "Combination!" line, and does what you want it to do
  3. Make another trigger that matches on everything (eg. matching on "*"). This will be to catch the cases where you don't get the combination trigger. Make it a higher sequence (eg. 120) so it gets matched last. In this trigger you would compare to see if this is the very next line after the "techblock" trigger. eg.


    if world.GetLineCount() = cint (world.getvariable ("techblock")) + 1 then
    ' ... do your processing here ...
    end if



What the third trigger will effectively do is check to see if a line arrives directly after the "tech block" line, that is not the "combination" line.



USA #2
nick you are a genuis