2017-11-10 02:21:31 +01:00
|
|
|
NewMauville_Inside_MapScripts:: @ 82373D7
|
|
|
|
map_script 5, NewMauville_Inside_MapScript1_2373E7
|
|
|
|
map_script 3, NewMauville_Inside_MapScript1_23741B
|
|
|
|
map_script 1, NewMauville_Inside_MapScript1_23744D
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
NewMauville_Inside_MapScript1_2373E7: @ 82373E7
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 1
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq NewMauville_Inside_EventScript_237489
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_2, 1
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq NewMauville_Inside_EventScript_2375D7
|
|
|
|
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, NewMauville_Inside_EventScript_237407
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237407:: @ 8237407
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 7
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_ne NewMauville_Inside_EventScript_27374E
|
2017-11-10 02:21:31 +01:00
|
|
|
removeobject VAR_LAST_TALKED
|
|
|
|
return
|
|
|
|
|
|
|
|
NewMauville_Inside_MapScript1_23741B: @ 823741B
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 0
|
|
|
|
setvar VAR_TEMP_2, 0
|
2019-01-02 22:12:43 +01:00
|
|
|
call_if_unset FLAG_DEFEATED_VOLTORB_1_NEW_MAUVILLE, NewMauville_Inside_EventScript_237441
|
|
|
|
call_if_unset FLAG_DEFEATED_VOLTORB_2_NEW_MAUVILLE, NewMauville_Inside_EventScript_237445
|
|
|
|
call_if_unset FLAG_DEFEATED_VOLTORB_3_NEW_MAUVILLE, NewMauville_Inside_EventScript_237449
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237441:: @ 8237441
|
2018-10-18 21:28:59 +02:00
|
|
|
clearflag FLAG_HIDE_NEW_MAUVILLE_VOLTORB_1
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237445:: @ 8237445
|
2018-10-18 21:28:59 +02:00
|
|
|
clearflag FLAG_HIDE_NEW_MAUVILLE_VOLTORB_2
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237449:: @ 8237449
|
2018-10-18 21:28:59 +02:00
|
|
|
clearflag FLAG_HIDE_NEW_MAUVILLE_VOLTORB_3
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
NewMauville_Inside_MapScript1_23744D: @ 823744D
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x40BA, 2
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_eq NewMauville_Inside_EventScript_23773A
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237459:: @ 8237459
|
|
|
|
lockall
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
|
|
|
setvar VAR_TEMP_2, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
playse SE_PIN
|
|
|
|
call NewMauville_Inside_EventScript_237489
|
|
|
|
special DrawWholeMapView
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237471:: @ 8237471
|
|
|
|
lockall
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 0
|
|
|
|
setvar VAR_TEMP_2, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
playse SE_PIN
|
|
|
|
call NewMauville_Inside_EventScript_2375D7
|
|
|
|
special DrawWholeMapView
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237489:: @ 8237489
|
|
|
|
setmetatile 23, 34, 617, 1
|
|
|
|
setmetatile 23, 35, 625, 1
|
|
|
|
setmetatile 23, 36, 621, 0
|
|
|
|
setmetatile 23, 37, 641, 0
|
|
|
|
setmetatile 10, 16, 617, 1
|
|
|
|
setmetatile 10, 17, 625, 1
|
|
|
|
setmetatile 10, 18, 621, 0
|
|
|
|
setmetatile 10, 19, 641, 0
|
|
|
|
setmetatile 10, 0, 617, 1
|
|
|
|
setmetatile 10, 1, 625, 1
|
|
|
|
setmetatile 10, 2, 621, 0
|
|
|
|
setmetatile 10, 3, 641, 0
|
|
|
|
setmetatile 37, 33, 694, 1
|
|
|
|
setmetatile 37, 34, 702, 1
|
|
|
|
setmetatile 37, 35, 710, 1
|
|
|
|
setmetatile 37, 36, 718, 1
|
|
|
|
setmetatile 28, 22, 694, 1
|
|
|
|
setmetatile 28, 23, 702, 1
|
|
|
|
setmetatile 28, 24, 710, 1
|
|
|
|
setmetatile 28, 25, 718, 1
|
|
|
|
setmetatile 10, 24, 694, 1
|
|
|
|
setmetatile 10, 25, 702, 1
|
|
|
|
setmetatile 10, 26, 710, 1
|
|
|
|
setmetatile 10, 27, 718, 1
|
|
|
|
setmetatile 21, 2, 694, 1
|
|
|
|
setmetatile 21, 3, 702, 1
|
|
|
|
setmetatile 21, 4, 710, 1
|
|
|
|
setmetatile 21, 5, 718, 1
|
|
|
|
setmetatile 6, 11, 591, 0
|
|
|
|
setmetatile 13, 10, 591, 0
|
|
|
|
setmetatile 16, 22, 591, 0
|
|
|
|
setmetatile 4, 26, 591, 0
|
|
|
|
setmetatile 30, 38, 591, 0
|
|
|
|
setmetatile 2, 11, 558, 0
|
|
|
|
setmetatile 17, 10, 558, 0
|
|
|
|
setmetatile 25, 18, 558, 0
|
|
|
|
setmetatile 18, 36, 558, 0
|
|
|
|
return
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_2375D7:: @ 82375D7
|
|
|
|
setmetatile 23, 34, 695, 1
|
|
|
|
setmetatile 23, 35, 703, 1
|
|
|
|
setmetatile 23, 36, 711, 1
|
|
|
|
setmetatile 23, 37, 719, 1
|
|
|
|
setmetatile 10, 16, 695, 1
|
|
|
|
setmetatile 10, 17, 703, 1
|
|
|
|
setmetatile 10, 18, 711, 1
|
|
|
|
setmetatile 10, 19, 719, 1
|
|
|
|
setmetatile 10, 0, 695, 1
|
|
|
|
setmetatile 10, 1, 703, 1
|
|
|
|
setmetatile 10, 2, 711, 1
|
|
|
|
setmetatile 10, 3, 719, 1
|
|
|
|
setmetatile 37, 33, 617, 1
|
|
|
|
setmetatile 37, 34, 625, 1
|
|
|
|
setmetatile 37, 35, 621, 0
|
|
|
|
setmetatile 37, 36, 641, 0
|
|
|
|
setmetatile 28, 22, 617, 1
|
|
|
|
setmetatile 28, 23, 625, 1
|
|
|
|
setmetatile 28, 24, 621, 0
|
|
|
|
setmetatile 28, 25, 641, 0
|
|
|
|
setmetatile 10, 24, 617, 1
|
|
|
|
setmetatile 10, 25, 625, 1
|
|
|
|
setmetatile 10, 26, 621, 0
|
|
|
|
setmetatile 10, 27, 641, 0
|
|
|
|
setmetatile 21, 2, 617, 1
|
|
|
|
setmetatile 21, 3, 625, 1
|
|
|
|
setmetatile 21, 4, 621, 0
|
|
|
|
setmetatile 21, 5, 641, 0
|
|
|
|
setmetatile 2, 11, 591, 0
|
|
|
|
setmetatile 17, 10, 591, 0
|
|
|
|
setmetatile 25, 18, 591, 0
|
|
|
|
setmetatile 18, 36, 591, 0
|
|
|
|
setmetatile 6, 11, 566, 0
|
|
|
|
setmetatile 13, 10, 566, 0
|
|
|
|
setmetatile 16, 22, 566, 0
|
|
|
|
setmetatile 4, 26, 566, 0
|
|
|
|
setmetatile 30, 38, 566, 0
|
|
|
|
return
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237725:: @ 8237725
|
|
|
|
lockall
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox NewMauville_Inside_Text_237932, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
call NewMauville_Inside_EventScript_23773A
|
|
|
|
setvar VAR_0x40BA, 2
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_23773A:: @ 823773A
|
|
|
|
setmetatile 33, 6, 591, 0
|
|
|
|
setmetatile 32, 2, 752, 1
|
|
|
|
setmetatile 33, 2, 753, 1
|
|
|
|
setmetatile 34, 2, 754, 1
|
|
|
|
setmetatile 35, 2, 755, 1
|
|
|
|
setmetatile 32, 3, 756, 1
|
|
|
|
setmetatile 33, 3, 757, 1
|
|
|
|
setmetatile 34, 3, 758, 1
|
|
|
|
setmetatile 35, 3, 759, 1
|
|
|
|
special DrawWholeMapView
|
|
|
|
return
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_23778F:: @ 823778F
|
|
|
|
lockall
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x40BA, 2
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_2377A5
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox NewMauville_Inside_Text_237896, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_2377A5:: @ 82377A5
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox NewMauville_Inside_Text_237916, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_2377AF:: @ 82377AF
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
|
|
|
|
waitse
|
|
|
|
playmoncry SPECIES_VOLTORB, 2
|
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
|
|
dowildbattle
|
|
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_2377F3
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_2377F3
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 5
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_2377F3
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_VOLTORB_1_NEW_MAUVILLE
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_2377F3:: @ 82377F3
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_VOLTORB_1_NEW_MAUVILLE
|
2017-11-10 02:21:31 +01:00
|
|
|
goto NewMauville_Inside_EventScript_27376D
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_2377FC:: @ 82377FC
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
|
|
|
|
waitse
|
|
|
|
playmoncry SPECIES_VOLTORB, 2
|
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
|
|
dowildbattle
|
|
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_237840
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_237840
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 5
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_237840
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_VOLTORB_2_NEW_MAUVILLE
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237840:: @ 8237840
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_VOLTORB_2_NEW_MAUVILLE
|
2017-11-10 02:21:31 +01:00
|
|
|
goto NewMauville_Inside_EventScript_27376D
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_237849:: @ 8237849
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
|
|
|
|
waitse
|
|
|
|
playmoncry SPECIES_VOLTORB, 2
|
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
|
|
dowildbattle
|
|
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_23788D
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_23788D
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 5
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq NewMauville_Inside_EventScript_23788D
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_VOLTORB_3_NEW_MAUVILLE
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_EventScript_23788D:: @ 823788D
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_VOLTORB_3_NEW_MAUVILLE
|
2017-11-10 02:21:31 +01:00
|
|
|
goto NewMauville_Inside_EventScript_27376D
|
|
|
|
end
|
|
|
|
|
|
|
|
NewMauville_Inside_Text_237896: @ 8237896
|
|
|
|
.string "The generator is radiating heat that\n"
|
|
|
|
.string "can be felt even at a distance.\p"
|
|
|
|
.string "It looks like it should be turned off\n"
|
|
|
|
.string "as soon as possible.$"
|
|
|
|
|
|
|
|
NewMauville_Inside_Text_237916: @ 8237916
|
|
|
|
.string "The generator quieted down.$"
|
|
|
|
|
|
|
|
NewMauville_Inside_Text_237932: @ 8237932
|
|
|
|
.string "{PLAYER} stepped on the switch.\p"
|
|
|
|
.string "Click…\p"
|
|
|
|
.string "… … … … … … … …\n"
|
|
|
|
.string "… … … … … … … …\p"
|
|
|
|
.string "The generator appears to have\n"
|
|
|
|
.string "stopped…$"
|