#include ACTION.H
#include SHAPEDEF.H
#include OBJ-ALL.H
#include EXTRAS.H
#include TYPE.H

[win]
code = 0
message = -1,2529
action = actCheckPlayerHPLow,SID_ENEMY058,1,0
action = actMessage,SID_ENEMY058,1,1570,actDelay,10
action = actMessage,SID_UNIVERSE,1,884,actDelay,10
action = actMessage,SID_SONIA,1,885,actDelay,10
action = actMessage,SID_DRAGON,1,886,actDelay,10
action = actPlaySound,WAV\QUAKE006.WAV,actEarthQuake,150,actDelay,10
action = actMessage,SID_CHANGEBOW,1,887
action = actMessageIfExist,SID_DRAGON,1,0,887,1,SID_CHANGEBOW,actDelay,10
action = actMessage,SID_UNNAME,1,888
action = actMessageIfExist,SID_SONIA,1,0,888,1,SID_UNNAME,actDelay,10
action = actMessage,SID_ENEMY058,1,889,actDelay,10
action = actMessage,SID_SUPERCLASS,1,890
action = actMessageIfExist,SID_SONIA,1,0,890,1,SID_SUPERCLASS,actDelay,10
action = actMessage,SID_UNIVERSE,1,891,actDelay,10
action = actMessage,SID_ENEMY058,1,892,actDelay,10
action = actPlaySound,WAV\HIT00004.WAV,actDelay,10
action = actMessage,SID_ENEMY058,1,893,actDelay,10
action = actDeleteObject,SID_ENEMY058,1,actDelay,10
action = actMessage,SID_UNNAME,1,894
action = actMessageIfExist,SID_UNIVERSE,1,0,894,1,SID_UNNAME,actDelay,10
action = actMessage,SID_SONIA,1,895,actDelay,10
action = actMessage,SID_UNIVERSE,1,896,actDelay,10
action = actEnterStorageWindow,actSetNextPlayLevelEvent,79,79
; -----------------------------------------------------------------
[fail]
code = 0
message = SID_UNIVERSE,122
action = actCheckPlayer,1,SID_UNIVERSE

[fail]
code = 1
message = SID_DRAGON,122
action = actCheckPlayer,1,SID_DRAGON

[fail]
code = 2
message = SID_SONIA,122
action = actCheckPlayer,1,SID_SONIA
; ----------------------------------------------------------------
[event]
code = 0
message = -1,2529
action = actCheckPlayerHPLow,SID_ENEMY058,1,0
action = actScrollBGToObject,SID_ENEMY058,1
action = actUseItem,SID_ENEMY058,1,252
action = actWaitPlayer,SID_ENEMY058,1,actRestoreShape,SID_ENEMY058,1
action = actMessage,SID_UNIVERSE,1,866,actDelay,10
action = actMessage,SID_ENEMY058,1,872,actDelay,10
action = actMessage,SID_DRAGON,1,873,actDelay,10
action = actMessage,SID_ENEMY058,1,874,actDelay,10
action = actMessage,SID_UNIVERSE,1,879,actDelay,10
action = actInsertWinStatus,0,actExecWinFailProcess

[event]
code = 1
action = actCheckPlayerAttacked,SID_UNIVERSE,SID_ENEMY058
action = actMessage,SID_ENEMY058,1,847,actDelay,10
action = actMessage,SID_UNIVERSE,1,848,actDelay,10
action = actExecWinFailProcess

[event]
code = 2
action = actCheckPlayerAttacked,SID_DRAGON,SID_ENEMY058
action = actMessage,SID_ENEMY058,1,849,actDelay,10
action = actMessage,SID_DRAGON,1,850,actDelay,10
action = actExecWinFailProcess

[event]
code = 3
action = actCheckPlayerAttacked,SID_SONIA,SID_ENEMY058
action = actMessage,SID_ENEMY058,1,851,actDelay,10
action = actMessage,SID_SONIA,1,852,actDelay,10
action = actExecWinFailProcess

[event]
code = 4
action = actCheckPlayerAttacked,SID_SUPERCLASS,SID_ENEMY058
action = actMessage,SID_ENEMY058,1,853,actDelay,10
action = actMessage,SID_SUPERCLASS,1,854,actDelay,10
action = actExecWinFailProcess

[event]
code = 5
action = actCheckPlayerAttacked,SID_CHANGEBOW,SID_ENEMY058
action = actMessage,SID_CHANGEBOW,1,855,actDelay,10
action = actMessage,SID_ENEMY058,1,856,actDelay,10
action = actExecWinFailProcess

[event]
code = 6
action = actCheckPlayerAttacked,SID_ANLAN,SID_ENEMY058
action = actMessage,SID_ANLAN,1,857,actDelay,10
action = actMessage,SID_ENEMY058,1,858,actDelay,10
action = actMessage,SID_ANLAN,1,859,actDelay,10
action = actExecWinFailProcess

[event]
code = 7
action = actCheckPlayerAttacked,SID_BREEZE,SID_ENEMY058
action = actMessage,SID_ENEMY058,1,860,actDelay,10
action = actMessage,SID_BREEZE,1,861,actDelay,10
action = actExecWinFailProcess

[event]
code = 8
action = actCheckPlayerAttacked,SID_UNNAME,SID_ENEMY058
action = actMessage,SID_ENEMY058,1,862,actDelay,10
action = actMessage,SID_UNNAME,1,863,actDelay,10
action = actMessage,SID_UNNAME,1,864,actDelay,10
action = actExecWinFailProcess

[event]
code = 9
action = actCheckPlayerHPLow,SID_SUPERCLASS,1,0
action = actChangeShape,SID_SUPERCLASS,1,1,SHAPE\013-p.SHP,1
action = actMessage,SID_SUPERCLASS,1,766,actDelay,10
action = actDeleteObject,SID_SUPERCLASS,1
action = actMessage,SID_DRAGON,1,767,actDelay,10
action = actDeletePlayerCode,SID_SUPERCLASS,0
action = actExecWinFailProcess

[event]
code = 10
action = actCheckPlayerHPLow,SID_CHANGEBOW,1,0
action = actChangeShape,SID_CHANGEBOW,1,1,SHAPE\014-p.SHP,1
action = actMessage,SID_CHANGEBOW,1,768,actDelay,10
action = actDeleteObject,SID_CHANGEBOW,1
action = actMessage,SID_SONIA,1,769,actDelay,10
action = actDeletePlayerCode,SID_CHANGEBOW,0
action = actExecWinFailProcess

[event]
code = 11
action = actCheckPlayerHPLow,SID_ANLAN,1,0
action = actChangeShape,SID_ANLAN,1,1,SHAPE\015-p.SHP,1
action = actMessage,SID_ANLAN,1,770,actDelay,10
action = actDeleteObject,SID_ANLAN,1
action = actMessage,SID_UNIVERSE,1,771,actDelay,10
action = actDeletePlayerCode,SID_ANLAN,0
action = actExecWinFailProcess

[event]
code = 12
action = actCheckPlayerHPLow,SID_BREEZE,1,0
action = actChangeShape,SID_BREEZE,1,1,SHAPE\016-p.SHP,1
action = actMessage,SID_BREEZE,1,772,actDelay,10
action = actDeleteObject,SID_BREEZE,1
action = actMessage,SID_UNNAME,1,773,actDelay,10
action = actDeletePlayerCode,SID_BREEZE,0
action = actExecWinFailProcess

[event]
code = 13
action = actCheckPlayerHPLow,SID_UNNAME,1,0
action = actChangeShape,SID_UNNAME,1,1,SHAPE\008-p.SHP,1
action = actMessage,SID_UNNAME,1,772,actDelay,10
action = actMessage,SID_DRAGON,1,772,actDelay,10
action = actDeleteObject,SID_UNNAME,1
action = actMessage,SID_BREEZE,1,773,actDelay,10
action = actDeletePlayerCode,SID_BREEZE,0
action = actExecWinFailProcess

[event]
code = 14
action = actCheckPlayerHPLow,SID_ANGELINA,1,0
action = actChangeShape,SID_ANGELINA,1,1,SHAPE\053-p.SHP,1
action = actMessage,SID_ANGELINA,1,774,actDelay,10
action = actDeleteObject,SID_ANGELINA,1
action = actMessage,SID_BREEZE,1,775,actDelay,10
action = actDeletePlayerCode,SID_ANGELINA,0
action = actExecWinFailProcess

[event]
code = 15
action = actCheckRoundNumber,6
action = actMessage,SID_ENEMY058,1,899,actDelay,10
action = actScrollBGToPos,256,192,actDelay,10
action = actInsertStoryObject,17,96,160,actDelay,10
action = actPlaySound,WAV\EFF0010.WAV
action = actInsertObject,99,96,160,actDelay,10
action = actInsertStoryObject,17,384,128,actDelay,10
action = actPlaySound,WAV\EFF0010.WAV
action = actInsertObject,98,384,128,actDelay,30