RaycrowX
Beginning ROM Hacker
- 36
- Posts
- 16
- Years
- Jenison, MI
- Seen Mar 11, 2010
Hey guys, when you post, please try to say what your script is supposed to do, what it does, and specifically what problems you are having with it (instead of just "This doesn't work"). Also, mention what type of script it is/what it's on (person, sign, trigger [green script tile], or a level script). This will help a lot in trying to fix it.
Toon Link:
You still didn't change some stuff I mentioned. Please, PLEASE inspect your offsets before you post them (You didn't even use message 2 or 6!). Your script won't run because you check flag 0x800 at the beginning and then run the script if it is true. But it is in this script that you set flag 0x800!
There are quite a few mistakes in here. I'll change it to what I think you mean. I've also made it more readable for me and others viewing it.
If you don't understand anything, ask me.
-----------------------------------------------------------------------
Ash493: Did you copy all the vars and stuff for the event, not just the offset?
-----------------------------------------------------------------------
tyson: Before changing anything, what type of script is this? (person, sign, trigger, or level)
-----------------------------------------------------------------------
EDIT: jebees: I'm not too familiar with that particular special, but going back to Vermillion would make sense for that event, no? I wouldn't be surprised if it warps you; I worked with some of the Safari Zone scripts and quite a few of the warps are hard-coded.
Toon Link:
You still didn't change some stuff I mentioned. Please, PLEASE inspect your offsets before you post them (You didn't even use message 2 or 6!). Your script won't run because you check flag 0x800 at the beginning and then run the script if it is true. But it is in this script that you set flag 0x800!
There are quite a few mistakes in here. I'll change it to what I think you mean. I've also made it more readable for me and others viewing it.
This script is still not working..
Spoiler:#dynamic 0x800000
#include stditems.rbh
#include stdpoke.rbh
#define NICKNAME 0x1A74EB
#define FIRSTBUFFER 0x0
#org @start
checkflag RS_PKMNMENU
if B_FALSE goto @take
msgbox @5 MSG_NORMAL
end
#org @take
msgbox @1 MSG_NORMAL
givepokemon PKMN_BAGON 5 0x0 0x0 0x0 0x0
bufferpokemon FIRSTBUFFER PKMN_BAGON
fanfare 0x13E
msgbox @2 MSG_KEEPOPEN
waitfanfare
setflag RS_PKMNMENU
setflag RS_POKEDEX
msgbox @3 MSG_YESNO
compare LASTRESULT B_YES
if B_== call NICKNAME
msgbox @4 MSG_NORMAL
end
#org @1
= Hello!\nYou are late!! I am\nalmost out of Pokemon for you new\ntrainers!\pYou are lucky I have this for\nit for you!\pTake this Pokemon please.
#org @2
= [black_rs]You received a [buffer1]!
#org @3
= [black_rs]Would you like to give a\nnickname to [buffer1]?
#org @4
= Enjoy your Pokemon!
#org @5 'Please use proper grammar...
= I gave BULBASAUR, CHARMANDER, and\nSQUIRTLE to the other trainers.
If you don't understand anything, ask me.
-----------------------------------------------------------------------
Ash493: Did you copy all the vars and stuff for the event, not just the offset?
-----------------------------------------------------------------------
tyson: Before changing anything, what type of script is this? (person, sign, trigger, or level)
-----------------------------------------------------------------------
EDIT: jebees: I'm not too familiar with that particular special, but going back to Vermillion would make sense for that event, no? I wouldn't be surprised if it warps you; I worked with some of the Safari Zone scripts and quite a few of the warps are hard-coded.