Okay well I'm hacking FireRed and I'm trying to make a script where it gives you a pokemon, but there's a problem. This is right at the beginning of the game (before you are given a first pokemon) so there's no pokedex or anything. But then I found the setflags for the pokemon menu and pokedex and set them right before I gave the pokemon, but still the game just somehow messes up and gives me a master ball instead???? I'm totally lost.
Well anyway here's the code
Code:
#ORG $begin
lock
checkflag 0x200
if B_False goto $done
checkflag 0x201
if B_true goto $done2
message $right
$right 1 = You've successfully entered\nthe passcode!
boxset 6
message $pokemon
$pokemon 1 = Would you like a\n free pokemon?
boxset 5
compare lastresult 1
if b_true then goto $givemeh
release
end
#ORG $done2
message $loll
$loll 1 = You've already got\nyour pokemon.
boxset 6
release
end
#ORG $done
message $wrong
$wrong 1 = It seems a code is\nneeded to boot up...
boxset 6
release
end
#ORG $givemeh
setflag 0x828
setflag 0x829
special 0x16F
setflag 0x201
message $ugot
$ugot 1 = You received Mew!!!
boxset 6
setflag 0x203
givepokemon 150 2 1
release
end
You can kindof forget the setflags in the beginning as they influence other scripts i have in the future (i understand the jist of coding) but yeah.... look towards the #ORG $givemeh part at the bottom, as I'm sure it gets to that point (I've tested). The problem is I never even see the You received Mew!!! message at all and also the pokedex and the pokemon menu hasn't even been activated, instead as I've said before I somehow receive a master ball (which doesn't even show up in the item bag either). The setflags 828-829 should activate teh pokedex and menu's (I've looked it up).
Yes I know I typed a lot but it's very complicated and I'm totally stuck =(
****Yes I previously posted this, but I'm still trying to figure it out =(. This is the kinda thing that made me stop hacking before, these stupid unnecessary things that I just can't get working... I know how to script but I have a feeling that this is just a weird situation idk it's just really frustrating.