• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] Safari zone

1
Posts
4
Years
  • Age 25
  • Seen Dec 9, 2020
Hi guys,
I'd like to get rid of the steps limit in the safari game in my Rom Hack, but I don't know what to edit in the script. Hope you can help me out. I'll add the script below (it's in XSE).
#org 0x22BC18
lockall
applymovement MOVE_PLAYER 0x82725A6
waitmovement 0x0
showmoney 0x0 0x0 0x0
msgbox 0x82A4F74 MSG_YESNO '"Welcome to the SAFARI ZONE!\pAll y..."
compare LASTRESULT 0x1
if 0x1 goto 0x822BC48
msgbox 0x82A4FD7 MSG_KEEPOPEN '"Okay.\nPlease play another time!"
goto 0x822BD06

'---------------
#org 0x22BC48
checkitem 0x111 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x822BCEA
call 0x822BCBF
checkmoney 0x1F4 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x822BCF8
sound 0x5F
msgbox 0x82A501B MSG_KEEPOPEN '"That will be [$]500, please."
paymoney 0x1F4 0x0
updatemoney 0x0 0x0 0x0
msgbox 0x82A5036 MSG_KEEPOPEN '"Here are your SAFARI BALLS."
fanfare 0x172
preparemsg 0x82A5052 '"[player] received 30 SAFARI BALLS."
waitfanfare
msgbox 0x82A506F MSG_KEEPOPEN '"We'll let you know when your game\..."
closeonkeypress
hidemoney 0x0 0x0
applymovement MOVE_PLAYER 0x822BD18
waitmovement 0x0
special 0xD0
setvar 0x40A4 0x2
clearflag 0x5D
warp 0x1A 0x3 0xFF 0x20 0x21
waitstate
end

'---------------
#org 0x22BD06
closeonkeypress
hidemoney 0x0 0x0
applymovement MOVE_PLAYER 0x822BD16
waitmovement 0x0
releaseall
end

'---------------
#org 0x22BCEA
msgbox 0x82A5105 MSG_KEEPOPEN '"Excuse me!\nYou seem to be without..."
goto 0x822BD06

'---------------
#org 0x22BCBF
countpokemon
compare LASTRESULT 0x6
if 0x5 goto 0x822BCE9
special2 LASTRESULT 0x132
compare LASTRESULT 0x1
if 0x1 goto 0x822BCE9
msgbox 0x82A50E5 MSG_KEEPOPEN '"Excuse me!\nYour PC BOX is full."
goto 0x822BD06

'---------------
#org 0x22BCF8
msgbox 0x82A4FF7 MSG_KEEPOPEN '"You don't have enough money.\nSorr..."
goto 0x822BD06

'---------------
#org 0x22BCE9
return


'---------
' Strings
'---------
#org 0x2A4F74
= Welcome to the SAFARI ZONE!\pAll you can catch for just [$]500!\nWould you like to play a SAFARI Game?

#org 0x2A4FD7
= Okay.\nPlease play another time!

#org 0x2A501B
= That will be [$]500, please.

#org 0x2A5036
= Here are your SAFARI BALLS.

#org 0x2A5052
= [player] received 30 SAFARI BALLS.

#org 0x2A506F
= We'll let you know when your game\nis over.\pSo, until then, enjoy yourself, please!\nOff you go on your wild excursion!

#org 0x2A5105
= Excuse me!\nYou seem to be without a [PO][Ke][BL][OC][K] CASE.\pYour SAFARI Game will be much more\nfruitful if you use [PO][Ke][BL][OC][K]S.\pPlease come back with a [PO][Ke][BL][OC][K] CASE.\pYou may obtain a [PO][Ke][BL][OC][K] CASE from\nthe LILYCOVE CONTEST HALL.

#org 0x2A50E5
= Excuse me!\nYour PC BOX is full.

#org 0x2A4FF7
= You don't have enough money.\nSorry.


'-----------
' Movements
'-----------
#org 0x2725A6
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0xFE 'End of Movements

#org 0x22BD18
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x14 'Delay5
#raw 0xFE 'End of Movements

#org 0x22BD16
#raw 0xB 'Step Right (Normal)
#raw 0xFE 'End of Movements
 
Back
Top