Document Slateport scripts
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"id": "MAP_SLATEPORT_CITY_NAME_RATERS_HOUSE",
|
||||
"name": "SlateportCity_NameRatersHouse",
|
||||
"layout": "LAYOUT_HOUSE_WITH_BED",
|
||||
"music": "MUS_FINECITY",
|
||||
"region_map_section": "MAPSEC_SLATEPORT_CITY",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_NONE",
|
||||
"map_type": "MAP_TYPE_INDOOR",
|
||||
"allow_bike": false,
|
||||
"allow_escape_rope": false,
|
||||
"allow_running": false,
|
||||
"show_map_name": false,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": null,
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "EVENT_OBJ_GFX_EXPERT_M",
|
||||
"x": 7,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "0",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "SlateportCity_NameRatersHouse_EventScript_NameRater",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 3,
|
||||
"y": 7,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_SLATEPORT_CITY",
|
||||
"dest_warp_id": 6
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 7,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_SLATEPORT_CITY",
|
||||
"dest_warp_id": 6
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
SlateportCity_NameRatersHouse_MapScripts:: @ 8209AA4
|
||||
.byte 0
|
||||
|
||||
SlateportCity_NameRatersHouse_EventScript_NameRater:: @ 8209AA5
|
||||
lock
|
||||
faceplayer
|
||||
msgbox SlateportCity_NameRatersHouse_Text_PleasedToRateMonNickname, MSGBOX_YESNO
|
||||
compare VAR_RESULT, YES
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_ChooseMonToRate
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_DeclineNameRate
|
||||
end
|
||||
|
||||
SlateportCity_NameRatersHouse_EventScript_ChooseMonToRate:: @ 8209AC6
|
||||
msgbox SlateportCity_NameRatersHouse_Text_CritiqueWhichMonNickname, MSGBOX_DEFAULT
|
||||
special ChoosePartyMon
|
||||
waitstate
|
||||
compare VAR_0x8004, 255
|
||||
goto_if_ne SlateportCity_NameRatersHouse_EventScript_RateMonNickname
|
||||
compare VAR_0x8004, 255
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_DeclineNameRate
|
||||
end
|
||||
|
||||
SlateportCity_NameRatersHouse_EventScript_DeclineNameRate:: @ 8209AE9
|
||||
msgbox SlateportCity_NameRatersHouse_Text_DoVisitAgain, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
SlateportCity_NameRatersHouse_EventScript_RateMonNickname:: @ 8209AF3
|
||||
specialvar VAR_RESULT, ScriptGetPartyMonSpecies
|
||||
compare VAR_RESULT, SPECIES_EGG
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_CantRateEgg
|
||||
special BufferMonNickname
|
||||
special IsMonOTIDNotPlayers
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_PlayerNotMonsOT
|
||||
specialvar VAR_RESULT, MonOTNameNotPlayer
|
||||
special BufferMonNickname
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_PlayerNotMonsOT
|
||||
msgbox SlateportCity_NameRatersHouse_Text_FineNameSuggestBetterOne, MSGBOX_YESNO
|
||||
compare VAR_RESULT, YES
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_ChangeNickname
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_DeclineNameRate
|
||||
end
|
||||
|
||||
SlateportCity_NameRatersHouse_EventScript_CantRateEgg:: @ 8209B46
|
||||
msgbox SlateportCity_NameRatersHouse_Text_ThatIsMerelyAnEgg, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
SlateportCity_NameRatersHouse_EventScript_PlayerNotMonsOT:: @ 8209B50
|
||||
msgbox SlateportCity_NameRatersHouse_Text_MagnificentName, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
SlateportCity_NameRatersHouse_EventScript_ChangeNickname:: @ 8209B5A
|
||||
msgbox SlateportCity_NameRatersHouse_Text_WhatShallNewNameBe, MSGBOX_DEFAULT
|
||||
call Common_EventScript_NameReceivedPartyMon
|
||||
specialvar VAR_RESULT, TryPutNameRaterShowOnTheAir
|
||||
special BufferMonNickname
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq SlateportCity_NameRatersHouse_EventScript_NewNameDifferent
|
||||
msgbox SlateportCity_NameRatersHouse_Text_NameNoDifferentYetSuperior, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
SlateportCity_NameRatersHouse_EventScript_NewNameDifferent:: @ 8209B84
|
||||
msgbox SlateportCity_NameRatersHouse_Text_MonShallBeKnownAsName, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_PleasedToRateMonNickname: @ 8209B8E
|
||||
.string "Hi, hi! I'm the NAME RATER!\n"
|
||||
.string "I'm the fortune-teller of names!\p"
|
||||
.string "I shall be pleased to rate your\n"
|
||||
.string "POKéMON's nickname.$"
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_CritiqueWhichMonNickname: @ 8209BFF
|
||||
.string "Which POKéMON's nickname should\n"
|
||||
.string "I critique?$"
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_FineNameSuggestBetterOne: @ 8209C2B
|
||||
.string "Hmmm… {STR_VAR_1}, is it? That is\n"
|
||||
.string "quite a fine name you bestowed.\p"
|
||||
.string "But! What say you, if I were to\n"
|
||||
.string "suggest a slightly better name?$"
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_WhatShallNewNameBe: @ 8209CA4
|
||||
.string "Ah, good. Then, what shall the new\n"
|
||||
.string "nickname be?$"
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_MonShallBeKnownAsName: @ 8209CD4
|
||||
.string "Done! From now on, this POKéMON\n"
|
||||
.string "shall be known as {STR_VAR_1}!\p"
|
||||
.string "It is a better name than before!\n"
|
||||
.string "How fortunate for you!$"
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_DoVisitAgain: @ 8209D42
|
||||
.string "I see.\n"
|
||||
.string "Do come visit again.$"
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_NameNoDifferentYetSuperior: @ 8209D5E
|
||||
.string "Done! From now on, this POKéMON\n"
|
||||
.string "shall be known as {STR_VAR_1}!\p"
|
||||
.string "It looks no different from before,\n"
|
||||
.string "and yet, this is vastly superior!\p"
|
||||
.string "How fortunate for you!$"
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_MagnificentName: @ 8209DF0
|
||||
.string "Hmmm… {STR_VAR_1} it is!\p"
|
||||
.string "This is a magnificent nickname!\n"
|
||||
.string "It is impeccably beyond reproach!\p"
|
||||
.string "You'll do well to cherish your\n"
|
||||
.string "{STR_VAR_1} now and beyond.$"
|
||||
|
||||
SlateportCity_NameRatersHouse_Text_ThatIsMerelyAnEgg: @ 8209E74
|
||||
.string "Now, now.\n"
|
||||
.string "That is merely an EGG!$"
|
||||
|
||||
Reference in New Issue
Block a user