View Single Post
Old April 18th, 2009 (5:11 AM).
Diegoisawesome's Avatar
Diegoisawesome Diegoisawesome is offline
Oh god the bees
Silver Tier
Join Date: Dec 2007
Location: :noitacoL
Age: 19
Gender: Male
Nature: Naive
Posts: 1,012
Originally Posted by ElusionM View Post
Ok, guys. I've got a problem.
I've made a script so that if I don't have a certain pokemon(for this example, Pikachu), the guy will not move aside for me. I've used a checkpokemon script. However, if I don't have a Pikachu, the "Not allowed" message comes fine. However, when I DO have the Pikachu, he doesn't follow the applymovement, and top of that, the GAME FREEZES!

Here is the Code, please proof-read it for me; the last time I did anything related to hacking was 2007 and only for like a month; I've forgotten everything I knew and now have to relearn everything to also match with the new tools and the updates everyone is releasing:
#org 0x71AC40
setvar 0x8004 0x19
special2 LASTRESULT 0x17C
compare LASTRESULT 0x1
if 0x1 goto 0x871AD70
msgbox 0x871AD90 MSG_NORMAL '"Sorry, you're not allowed."

#org 0x71AD70
applymovement 0x5 0x871ADA0
waitmovement 0x5

' Strings
#org 0x71AD90
= Sorry, you're not allowed.

' Movements
#org 0x71ADA0
#raw 0xE8 'movE8
#raw 0x0 'Face Down
#raw 0xD5 'movD5
#raw 0xE0 'movE0
#raw 0xE0 'movE0
#raw 0xE3 'movE3
#raw 0xEB 'movEB
#raw 0xD9 'movD9
#raw 0xD8 'movD8
#raw 0xAD 'movAD
#raw 0xFE
Try it now. Changes are in bold.

My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Diego's Miscellaneous Patches
GBA Intro Manager
The Secret Sauce: Triple-Layer Tiles
Reply With Quote