A while back... April 2001 I had help writing this script.Now I'd like to modify this.
What I'd like is to check to see how long (autocombo) is before it does the send thing. If autocombo is a certain length I want it to just complete the combo, if it's long enough I'd rather it just do the throw part.
There are 2, 3, 4, and 5 attacks to case each time the trigger fires.
There must be a way to check to see how many attacks to case there is. if there is 2 or 3 attacks to case, I want it to just do the attack part. If there is 4 or 5, I want it to do the throw.
My code(with a LOT of Nicks help) to fame:
sub OnAutoCombo (TriggerName, TriggerLine, arrWildCards)
dim AutoCombo
AutoCombo = split (arrWildCards (1))
Dim i, attack
for i=lbound (AutoCombo ) to ubound (AutoCombo )
Select Case AutoCombo (i)
case "rp" attack = "punch right"
case "lp" attack = "punch left"
case "s" attack = "sweep"
case "r" attack = "roundhouse"
case else attack = "" ' unknown attack type
End Select
if i = ubound (AutoCombo ) then
world.send "throw " + world.getvariable ("attacker") + " down"
else
world.send attack + " " + world.GetVariable ("attacker")
end if
next
end subWhat I'd like is to check to see how long (autocombo) is before it does the send thing. If autocombo is a certain length I want it to just complete the combo, if it's long enough I'd rather it just do the throw part.
There are 2, 3, 4, and 5 attacks to case each time the trigger fires.
There must be a way to check to see how many attacks to case there is. if there is 2 or 3 attacks to case, I want it to just do the attack part. If there is 4 or 5, I want it to do the throw.