giveegg (pokemon) and checkpokemon (the same pokemon) if 0x0 goto @you_cant_go_yetLooks pretty handy. But I still can't even get it to work by copying every character :/ Any, would it be possible to receive the egg. And that a person wouldn't let you go farther if the egg didn't hatch yet?
If you are using dynamic offsets you don't even need to know the offset you write it on. Just simply open your ROM at 0x800000 and compile your script. Be sure to turn off the Compile Log and view the offset that @start was wrote in. That's the offset you put in A-Map.how do you know how many bytes you will need for a script before using FSF? as in, what amount for a simple script or a big script?
On Misdreavus's overworld in A-Map, change its Person ID to 0200.I'm having a problem with my wild battle script
Spoiler:
'---------------
#org 0x8005B6
lock
faceplayer
msgbox 0x88005D9 0x6 '"MISDREAVUS: ......."
cry 0x6 0x0
wildbattle 0xC8 0x5 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end
'---------
' Strings
'---------
#org 0x8005D9
= MISDREAVUS: .......
After I defeat or capture him he disappears until I move then the sprite reappears and I can battle him again. What have I done wrong with the script? And if it matters I'm using a firered ROM.
I just changed the person ID but it still reappears.On Misdreavus's overworld in A-Map, change its Person ID to 0200.
#dynamic 0x800000
#org @start
lock
faceplayer
textcolor 0x01
checkflag 0x200
if 0x1 goto @violaiswaiting
msgbox @1 0x6
applymovement 0x01 @move
waitmovement 0x0
applymovement 0xFF @move2
pause 0x30
release
end
#org @1
= Mom: Oh \v\h01! You're finally awake!\pProfessor Viola came by earlier;\n she wanted to talk to you but\n you were asleep.\pYou should go visit her.\n It appeared urgent.
setflag 0x200
#org @violaiswaiting
= Mom: You should go visit Viola;\n she should be in her laboratory.
#org @move
#raw 0x01
#raw 0xFE
#org @move2
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0xFE
You forgot to press the "Compile" button on XSE and paste the offset on the mom's NPC.I don't understand the FSF offsets; does this need to be different for every script? Or is it always x8000000(blahblah)? For different types of messages, does this number change?
Oh, and I get an error when I launch the game ): 'cause this guide, although it does entail a lot of things, doesn't explain why things go in certain places very well. My tiny script doesn't look anything like the in-game NPC scripts. I don't get why I error right on start-up, either, since I modified the mother NPC on the first floor of the house.
When I launch Fire Red, I get this (after the "Press Start" screen):
"The 1M sub-circuit board is not installed"
What's that?
This is my NPC modification btw:
I don't even think it actually makes it into the game, since when I click on "Open Script" in Advanced Map, it displays the old script still.Code:#dynamic 0x800000 #org @start lock faceplayer textcolor 0x01 checkflag 0x200 if 0x1 goto @violaiswaiting msgbox @1 0x6 applymovement 0x01 @move waitmovement 0x0 applymovement 0xFF @move2 pause 0x30 release end #org @1 = Mom: Oh \v\h01! You're finally awake!\pProfessor Viola came by earlier;\n she wanted to talk to you but\n you were asleep.\pYou should go visit her.\n It appeared urgent. setflag 0x200 #org @violaiswaiting = Mom: You should go visit Viola;\n she should be in her laboratory. #org @move #raw 0x01 #raw 0xFE #org @move2 #raw 0x12 #raw 0x12 #raw 0x10 #raw 0xFE
What's wrong with it?
#dynamic 0x800000
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Charmander.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [black_fr]You received a Charmander!
#org @4
= [black_fr]Would you like to give a\nnickname to Charmander?
#org @5
= Please take care of\nCharmander.
#org @6
= Are you taking good care\nof Charmander?