2019-04-21 14:42:25 -07:00
|
|
|
object_const_def ; object_event constants
|
2015-11-26 21:22:14 -08:00
|
|
|
const ICEPATHB1F_BOULDER1
|
|
|
|
const ICEPATHB1F_BOULDER2
|
|
|
|
const ICEPATHB1F_BOULDER3
|
|
|
|
const ICEPATHB1F_BOULDER4
|
|
|
|
const ICEPATHB1F_POKE_BALL
|
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
IcePathB1F_MapScripts:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; scene scripts
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 1 ; callbacks
|
2018-01-12 21:47:38 -08:00
|
|
|
callback MAPCALLBACK_CMDQUEUE, .SetUpStoneTable
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.SetUpStoneTable:
|
|
|
|
writecmdqueue .CommandQueue
|
2020-07-17 05:37:03 -07:00
|
|
|
endcallback
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.CommandQueue:
|
2018-01-12 21:47:38 -08:00
|
|
|
cmdqueue CMDQUEUE_STONETABLE, .StoneTable ; check if any stones are sitting on a warp
|
2013-04-30 19:32:03 -07:00
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.StoneTable:
|
2015-12-15 07:55:56 -08:00
|
|
|
stonetable 3, ICEPATHB1F_BOULDER1, .Boulder1
|
|
|
|
stonetable 4, ICEPATHB1F_BOULDER2, .Boulder2
|
|
|
|
stonetable 5, ICEPATHB1F_BOULDER3, .Boulder3
|
|
|
|
stonetable 6, ICEPATHB1F_BOULDER4, .Boulder4
|
2018-01-12 22:03:42 -08:00
|
|
|
db -1 ; end
|
2013-04-30 19:32:03 -07:00
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.Boulder1:
|
2015-11-26 21:22:14 -08:00
|
|
|
disappear ICEPATHB1F_BOULDER1
|
2015-07-18 12:46:38 -07:00
|
|
|
clearevent EVENT_BOULDER_IN_ICE_PATH_1A
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .FinishBoulder
|
2013-04-30 19:32:03 -07:00
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.Boulder2:
|
2015-11-26 21:22:14 -08:00
|
|
|
disappear ICEPATHB1F_BOULDER2
|
2015-07-18 12:46:38 -07:00
|
|
|
clearevent EVENT_BOULDER_IN_ICE_PATH_2A
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .FinishBoulder
|
2013-04-30 19:32:03 -07:00
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.Boulder3:
|
2015-11-26 21:22:14 -08:00
|
|
|
disappear ICEPATHB1F_BOULDER3
|
2015-07-18 12:46:38 -07:00
|
|
|
clearevent EVENT_BOULDER_IN_ICE_PATH_3A
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .FinishBoulder
|
2013-04-30 19:32:03 -07:00
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.Boulder4:
|
2015-11-26 21:22:14 -08:00
|
|
|
disappear ICEPATHB1F_BOULDER4
|
2015-07-18 12:46:38 -07:00
|
|
|
clearevent EVENT_BOULDER_IN_ICE_PATH_4A
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .FinishBoulder
|
2013-04-30 19:32:03 -07:00
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.FinishBoulder:
|
2013-04-30 19:32:03 -07:00
|
|
|
pause 30
|
2015-11-18 20:16:25 -08:00
|
|
|
scall .BoulderFallsThrough
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2015-12-15 07:55:56 -08:00
|
|
|
writetext IcePathBoulderFellThroughText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2013-04-30 19:32:03 -07:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-11-18 20:16:25 -08:00
|
|
|
.BoulderFallsThrough:
|
2014-04-30 03:04:35 -07:00
|
|
|
playsound SFX_STRENGTH
|
2013-04-30 19:32:03 -07:00
|
|
|
earthquake 80
|
|
|
|
end
|
|
|
|
|
2015-07-10 01:45:35 -07:00
|
|
|
IcePathB1FBoulder:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd StrengthBoulderScript
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-12-15 07:55:56 -08:00
|
|
|
IcePathB1FIron:
|
|
|
|
itemball IRON
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-12-15 08:21:58 -08:00
|
|
|
IcePathB1FHiddenMaxPotion:
|
2018-01-23 09:59:21 -08:00
|
|
|
hiddenitem MAX_POTION, EVENT_ICE_PATH_B1F_HIDDEN_MAX_POTION
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-12-15 07:55:56 -08:00
|
|
|
IcePathBoulderFellThroughText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "The boulder fell"
|
|
|
|
line "through."
|
|
|
|
done
|
2013-04-30 19:32:03 -07:00
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
IcePathB1F_MapEvents:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0, 0 ; filler
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 8 ; warp events
|
2018-02-01 19:22:07 -08:00
|
|
|
warp_event 3, 15, ICE_PATH_1F, 3
|
|
|
|
warp_event 17, 3, ICE_PATH_B2F_MAHOGANY_SIDE, 1
|
|
|
|
warp_event 11, 2, ICE_PATH_B2F_MAHOGANY_SIDE, 3 ; hole
|
|
|
|
warp_event 4, 7, ICE_PATH_B2F_MAHOGANY_SIDE, 4 ; hole
|
|
|
|
warp_event 5, 12, ICE_PATH_B2F_MAHOGANY_SIDE, 5 ; hole
|
2018-02-01 18:54:00 -08:00
|
|
|
warp_event 12, 13, ICE_PATH_B2F_MAHOGANY_SIDE, 6 ; hole
|
2018-02-01 19:22:07 -08:00
|
|
|
warp_event 5, 25, ICE_PATH_1F, 4
|
2018-02-01 18:54:00 -08:00
|
|
|
warp_event 11, 27, ICE_PATH_B2F_BLACKTHORN_SIDE, 1
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; coord events
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 1 ; bg events
|
2017-12-28 11:31:25 -08:00
|
|
|
bg_event 17, 30, BGEVENT_ITEM, IcePathB1FHiddenMaxPotion
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 5 ; object events
|
2018-02-01 19:22:07 -08:00
|
|
|
object_event 11, 7, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, IcePathB1FBoulder, EVENT_BOULDER_IN_ICE_PATH_1
|
|
|
|
object_event 7, 8, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, IcePathB1FBoulder, EVENT_BOULDER_IN_ICE_PATH_2
|
|
|
|
object_event 8, 9, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, IcePathB1FBoulder, EVENT_BOULDER_IN_ICE_PATH_3
|
|
|
|
object_event 17, 7, SPRITE_BOULDER, SPRITEMOVEDATA_STRENGTH_BOULDER, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, IcePathB1FBoulder, EVENT_BOULDER_IN_ICE_PATH_4
|
|
|
|
object_event 5, 35, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, IcePathB1FIron, EVENT_ICE_PATH_B1F_IRON
|