Moth's basic attack¶
DoCommand calls¶
| # | Conditions | timer | commandtype | data |
|---|---|---|---|---|
| 1 | None | 25.0 | RandomPressKeyTimer | {0.0, 4.0} |
DoDamage calls¶
| # | Conditions | attacker | target | damageammount | property | overrides | block |
|---|---|---|---|---|---|---|---|
| 1_a | DoCommand 1 set commandsuccess to true |
Moth's player party member |
availabletargets[target] |
Moth's atk unclamped |
Magic | {NoSound} | false |
| 1_b | DoCommand 1 set commandsuccess to false |
Moth's player party member |
availabletargets[target] |
Moth's atk clamped from 0 to 1. NOTE: This incorrectly removes influences of negative atk values |
null | {NoSound} | false |
Logic sequence¶
- If in
demomode, CreateHelpBox is called with id 2 - Camera is zoomed in at 0.01 speed from the midpoint between
Mothand targetentity IceMothThrowsound playsMothanimstate set to 108- A
Prefabs/AnimSpecific/mothbattlesphereis instantiated a bit up-left fromMothposition with 90.0 degress rotatex in x with aPrefabs/Objects/SingleSphereas child at half transparency. Themothbattlespherewill be destroyed in 2.0 seconds - DoCommand 1 happens
- Yield until DoCommand is done
- Camera is reset to default at 0.3 speed
- A
Prefabs/Particles/mothicenormalappears slighly up from targetentity with x rotation of -90.0 and destroyed in 2.0 seconds Prefabs/Objects/icepillarappears at targetentity with x rotation of -90.0, a DialogueAnim with x/y targetscale of 0.5 and destroyed in 4.0 seconds- If
commandsuccessis true (action command succeeded):Mothanimstate set to 111- DoDamage 1_a happens
IceMothHitsound plays- 1.0 second yield
- Otherwise (action command failed):
icepillar's DialogueAnim targetscale is set to (0.4, 0.4, 0.5)Mothanimstate set to 109IceMothMisssound plays- DoDamage 1_b happens
- 1.2 seconds yield
- A
Prefabs/Particles/IceShatterappears slighly up fromMothwith x rotation of -90.0 and destroyed in 1.0 seconds Mothanimstate set to 0 (Idle)
- If
Prefabs/Objects/icepillarstill exists, its DialogueAnim is set to shrink at 0.05 speed