mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-28 04:46:53 -05:00
Rock climb by ghoulslash (#7432)
Co-authored-by: Evan <eroelke@gmail.com> Co-authored-by: Jaizu <jaizu85@gmail.com> Co-authored-by: ghoulslash <41651341+ghoulslash@users.noreply.github.com> Co-authored-by: ghoulslash <pokevoyager0@gmail.com> Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
This commit is contained in:
@@ -441,3 +441,36 @@ EventScript_UseDefog::
|
||||
waitstate
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_UseRockClimb::
|
||||
lockall
|
||||
checkfieldmove FIELD_MOVE_ROCK_CLIMB
|
||||
goto_if_eq VAR_RESULT, PARTY_SIZE, EventScript_CantRockClimb
|
||||
bufferpartymonnick STR_VAR_1, VAR_RESULT
|
||||
setfieldeffectargument 0, VAR_RESULT
|
||||
msgbox Text_WantToRockClimb, MSGBOX_YESNO
|
||||
goto_if_eq VAR_RESULT, NO, EventScript_EndRockClimb
|
||||
msgbox Text_MonUsedRockClimb, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
dofieldeffect FLDEFF_USE_ROCK_CLIMB
|
||||
waitstate
|
||||
goto EventScript_EndRockClimb
|
||||
end
|
||||
|
||||
EventScript_CantRockClimb::
|
||||
msgbox Text_CantRockClimb, MSGBOX_DEFAULT
|
||||
|
||||
EventScript_EndRockClimb::
|
||||
releaseall
|
||||
end
|
||||
|
||||
Text_WantToRockClimb:
|
||||
.string "The cliff is steep.\n"
|
||||
.string "Would you like to use Rock Climb?$"
|
||||
|
||||
Text_MonUsedRockClimb:
|
||||
.string "{STR_VAR_1} used Rock Climb!$"
|
||||
|
||||
Text_CantRockClimb:
|
||||
.string "The cliff is steep.\n"
|
||||
.string "A Pokémon may be able to climb it.$"
|
||||
|
||||
Reference in New Issue
Block a user