pokeemerald/data/scripts/secret_power_tm.inc

101 lines
2.8 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Route111_Text_MakingRoomUseTMToMakeYourOwn:
2018-12-07 16:41:08 +01:00
.string "What's that?\n"
.string "What am I doing?\p"
2018-12-07 16:41:08 +01:00
.string "I'm thinking about making my own room\n"
.string "here using a POKéMON move.\p"
2018-12-07 16:41:08 +01:00
.string "I know! I'll give you this TM.\n"
.string "Will you use it to make your own room?$"
2021-07-20 21:18:31 +02:00
Route111_Text_ExplainSecretPower:
.string "Find a big tree that looks like it might\n"
.string "drop some vines.\p"
.string "Use SECRET POWER in front of the tree.\n"
.string "Some vines should get free and drop\l"
.string "down, so you can climb the tree.\p"
2018-12-07 16:41:08 +01:00
.string "You'll find a lot of space for putting\n"
.string "your favorite things.\p"
2018-12-07 16:41:08 +01:00
.string "It'll be your own secret room…\n"
.string "A SECRET BASE!\p"
.string "You should make one, too.\p"
2018-12-07 16:41:08 +01:00
.string "Another thing, you don't always have\n"
.string "to make your SECRET BASE in a tree.\p"
.string "Try using SECRET POWER on rock walls\n"
.string "that have small indents in them.\p"
2018-12-07 16:41:08 +01:00
.string "I'm going to look for other places, too.\n"
.string "Okay, bye!$"
2021-07-20 21:18:31 +02:00
Route111_Text_DontWantThis:
2018-12-07 16:41:08 +01:00
.string "Oh, you don't want this?\n"
.string "If you change your mind, tell me, okay?$"
2021-07-20 21:18:31 +02:00
Route111_Text_DontHaveAnyRoom:
2018-12-07 16:41:08 +01:00
.string "Oh, you don't have any room for this.\p"
.string "I'll hold on to it, so come back for it\n"
.string "another time, okay?$"
2021-07-20 21:18:31 +02:00
Route111_EventScript_SecretPowerMan::
lock
faceplayer
2019-11-08 09:42:14 +01:00
msgbox Route111_Text_MakingRoomUseTMToMakeYourOwn, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route111_EventScript_GiveSecretPower
2019-11-08 09:42:14 +01:00
msgbox Route111_Text_DontWantThis, MSGBOX_DEFAULT
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_GiveSecretPower::
giveitem ITEM_TM_SECRET_POWER
goto_if_eq VAR_RESULT, FALSE, Route111_EventScript_NoRoomForSecretPower
2019-11-08 09:42:14 +01:00
msgbox Route111_Text_ExplainSecretPower, MSGBOX_DEFAULT
closemessage
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_SECRET_POWER
2018-10-18 21:28:59 +02:00
clearflag FLAG_HIDE_SLATEPORT_CITY_TM_SALESMAN
call_if_eq VAR_FACING, DIR_WEST, Route111_EventScript_SecretPowerManExit
call_if_eq VAR_FACING, DIR_EAST, Route111_EventScript_SecretPowerManExit
call_if_eq VAR_FACING, DIR_NORTH, Route111_EventScript_SecretPowerManExitNorth
removeobject VAR_LAST_TALKED
release
end
2021-07-20 21:18:31 +02:00
Route111_EventScript_SecretPowerManExit::
2019-11-08 09:42:14 +01:00
applymovement VAR_LAST_TALKED, Route111_Movement_SecretPowerManExit
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_SecretPowerManExitNorth::
2019-11-08 09:42:14 +01:00
applymovement VAR_LAST_TALKED, Route111_Movement_SecretPowerManExitNorth
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route111_EventScript_NoRoomForSecretPower::
2019-11-08 09:42:14 +01:00
msgbox Route111_Text_DontHaveAnyRoom, MSGBOX_DEFAULT
release
end
2021-07-20 21:18:31 +02:00
Route111_Movement_SecretPowerManExit:
walk_down
walk_down
walk_down
walk_down
walk_down
walk_left
walk_left
walk_left
walk_left
walk_down
walk_down
step_end
2021-07-20 21:18:31 +02:00
Route111_Movement_SecretPowerManExitNorth:
walk_left
walk_down
walk_down
walk_down
walk_down
walk_down
walk_left
walk_left
walk_left
walk_down
walk_down
step_end