- 3
- Posts
- 3
- Years
- Seen Sep 15, 2021
Hi there,
I'm brand new to ROM hacking and have learned how to do basic dialogue in XSE and map editing in AM 1.92. I'm working in Fire Red right now. Today, I tried to learn how to do the "givepokemon" command, but for some reason, whatever NPC I put it on, they just... stop responding? I'll go up to them and hit A, and they don't move or anything. Everyone else is working fine, except the NPC I want giving the Pokemon. I don't think it's a problem with the script that I wrote, as I've copied and pasted directly from tutorials I've been looking at, and it yields the same results.
The only thing I can think of is that I took away Prof. Oak stopping the player from leaving Pallet, and that somewhere in his dialogue, he triggers a flag that allows you to get a Pokemon-- one other than 0x828, because I've tested that one, too.
These are the scripts I've put in so far:
My own, which I have done ~8 or 9 variations of that haven't worked (0x2, no 0x828 flag mention, no setvar, etc):
1st Tutorial one I tried, from here:
2nd, from the XSE Guide:
If anyone knows how I can fix this, I'd really appreciate the help. My brain is melting trying to figure this out 😭
I'm brand new to ROM hacking and have learned how to do basic dialogue in XSE and map editing in AM 1.92. I'm working in Fire Red right now. Today, I tried to learn how to do the "givepokemon" command, but for some reason, whatever NPC I put it on, they just... stop responding? I'll go up to them and hit A, and they don't move or anything. Everyone else is working fine, except the NPC I want giving the Pokemon. I don't think it's a problem with the script that I wrote, as I've copied and pasted directly from tutorials I've been looking at, and it yields the same results.
The only thing I can think of is that I took away Prof. Oak stopping the player from leaving Pallet, and that somewhere in his dialogue, he triggers a flag that allows you to get a Pokemon-- one other than 0x828, because I've tested that one, too.
These are the scripts I've put in so far:
My own, which I have done ~8 or 9 variations of that haven't worked (0x2, no 0x828 flag mention, no setvar, etc):
#dynamic 0x71D572
#org @givepokemon
lock
faceplayer
setflag 0x828
checkflag 0x100
if 0x0 goto @give
msgbox @2 0x6
release
end
#org @give
msgbox @1 0x6
setvar 0x5000 0x85
givepokemon 0x5000 0x5 0x44 0x0 0x0 0x0
setflag 0x100
end
#org @1
= We have too many Eevee! Please\ntake one off of our hands!
#org @2
= How is that Eevee doing? Are you\ntaking good care of it?
1st Tutorial one I tried, from here:
#dynamic 0x800000
#org @givepokemon
checkflag 0x100
if 0x0 goto @give
msgbox @2 0x2
end
#org @give
msgbox @1 0x2
givepokemon 0x7B 0x5 0x44 0x0 0x0 0x0
setflag 0x100
end
#org @1
= Please take care of my SCYTHER for\nme.
#org @2
= How is my Scyther doing [player]?
2nd, from the XSE Guide:
#dynamic 0x800000
#org @start
checkflag 0x1019
if 0x1 call @nomore
givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
setflag 0x1019
end
#org @nomore
msgbox @msg 0x2
end
#org @msg
= Sorry, no more Pikachus :P
If anyone knows how I can fix this, I'd really appreciate the help. My brain is melting trying to figure this out 😭