DeriveFromScript { Script=DefeatMinion Source=Level } #--------------------------------------------- # Chooses the Attack #--------------------------------------------- state Attack { Conditions { if LevelValue "Stat" != 1 goto Control if Random < 0.2 goto AttackOpp if PreviousResult < 0.4 goto AttackOppSpecial if PreviousResult < 0.6 goto AttackOppSpecial2 if PreviousResult < 0.8 goto AttackOppSpecial3 if PreviousResult < 1.0 goto Taunt } Actions { } } #--------------------------------------------- # Normal Attack #--------------------------------------------- state AttackOpp { Conditions { if LevelValue "Stat" != 1 goto Control } Actions { FaceOpponent "0.3" EngageOpponent "goalrange 1.0" "firerange 3.5" "instant" "exit" "noface" BlockAttacks "false" FaceOpponent "mintime 0.0" "maxtime 0.15" Idle "mintime 1.0" "maxtime 2.0" Setstate "Think" } } #--------------------------------------------- # Special Attack One #--------------------------------------------- state AttackOppSpecial { Conditions { if LevelValue "Stat" != 1 goto Control } Actions { FaceOpponent "0.3" SetActionValue "value 3" "waitcontextfree" WaitActionFinished BlockAttacks "false" Idle "mintime 1.0" "maxtime 2.0" SetState "Think" } } #--------------------------------------------- # Special Attack Two #--------------------------------------------- state AttackOppSpecial2 { Conditions { if LevelValue "Stat" != 1 goto Control } Actions { FaceOpponent "0.3" SetActionValue "value 4" "waitcontextfree" WaitActionFinished BlockAttacks "false" Idle "mintime 1.0" "maxtime 2.0" SetState "Think" } } #--------------------------------------------- # Special Attack Three #--------------------------------------------- state AttackOppSpecial3 { Conditions { if LevelValue "Stat" != 1 goto Control } Actions { FaceOpponent "0.3" SetActionValue "value 6" "waitcontextfree" WaitActionFinished BlockAttacks "false" Idle "mintime 1.0" "maxtime 2.0" SetState "Think" } } #--------------------------------------------- # Taunt the player #--------------------------------------------- state Taunt { Conditions { if LevelValue "Stat" != 1 goto Control } Actions { FaceOpponent "0.3" SetActionValue "value 5" "waitcontextfree" WaitActionFinished SetState "Think" } }