actor Toadman : CustWepClassBase
{
Player.ScoreIcon "C_04B0X"
player.displayname "Toadman"
player.soundclass "toadmanc"

player.maxhealth 1550
health 1550
player.jumpz 15
player.forwardmove 0.8, 0.8
player.sidemove 0.78, 0.78

player.startitem "CBM_BaseFlagPack"

player.startitem "Toadman_W"


player.startitem "HyperBombWeakness"
player.startitem "CrashBombWeakness"
player.startitem "SearchSnakeWeakness"
player.startitem "DrillBombWeakness"//
player.startitem "NapalmBombWeakness"
player.startitem "FlashBombWeakness"
player.startitem "DangerWrapWeakness"
player.startitem "RemoteMineWeakness"
player.startitem "LaserTridentWeakness"
player.startitem "CommandoBombWeakness"
player.startitem "BubbleBombWeakness"
player.startitem "BalladeCrackerWeakness"

States
{
Spawn:
TOAD A 0
TOAD A 0 A_JumpIfInventory("ToadLeapFlag",1,"SeeLeap")
TOAD B 1 A_JumpIfInventory("VivifyFlag2",1,"Missile_H2")
TOAD A 1 A_JumpIfInventory("VivifyFlag2",1,"Missile_H2")
TOAD A 210
TOAD BY 5
wait

See:
TOAD BCDE 5
Goto Spawn
SeeLeap:
TOAD C 0 A_JumpIfInventory("ToadLeapFlagX",1,"SeeLeapX")
TOAD C 1 A_JumpIfInventory("ToadLeapFlagE",1,1)
loop
TOAD B 1
Goto Spawn+3
SeeLeapX:
TOAD D 2
TOAD EB 3
Goto Spawn
Missile:
TOAD F 0 A_JumpIfInventory("VivifyFlag2",1,"Missile_H2")
TOAD F 0 A_JumpIfInventory("VivifyFlag1",1,"Missile_H1")
TOAD F 3
TOAD F 2 A_JumpIfInventory("ToadLeapFlag",1,"MissileLeap")
TOAD G 5
Goto Spawn
MissileLeap:
TOAD EB 3
goto SeeLeap


Missile_H2:
TOAD F 0 A_JumpIfInventory("VivifyCycle1",3,"MissileZ")
TOAD F 0 A_JumpIfInventory("VivifyCycle1",2,"MissileG")
TOAD F 0 A_JumpIfInventory("VivifyCycle1",1,"MissileF")
TOAD FG 3
TOAD F 1 A_JumpIfInventory("VivifyFlag1",1,"Missile_H2")
TOAD QB 3
Goto Spawn
MissileF:
TOAD F 2
Goto Missile_H2
MissileG:
TOAD G 2
Goto Missile_H2
MissileZ:
TOAD G 2 A_TakeInventory("VivifyCycle1",99)
Goto Missile_H2

Missile_H1:
TOAD Q 0 A_JumpIfInventory("VivifyCycle1",4,"Missile_Z")
TOAD Q 0 A_JumpIfInventory("VivifyCycle1",3,"Missile_R")
TOAD Q 0 A_JumpIfInventory("VivifyCycle1",1,"Missile_Q")
TOAD Q 2
TOAD B 4
Goto Spawn
Missile_Q:
TOAD Q 2
Goto Missile_H1
Missile_R:
TOAD R 2
Goto Missile_H1
Missile_Z:
TOAD R 2 A_TakeInventory("VivifyCycle1",3)
Goto Missile_H1


ClassPain:
TOAD H 0
goto MegamanPain
ClassDeath:
TOAD H 0
goto MegamanDeath
}
}