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:
pokesidv
2025-08-03 14:52:07 +02:00
committed by GitHub
parent 3841fee888
commit 4d31693005
26 changed files with 567 additions and 13 deletions

View File

@@ -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.$"