Hello everyone!
I wrote a Person Event script to recieve the running shoes earlier on in the game.
Here is the script:
Spoiler:#org $dadscript
checkflag 0x0028
if b_true goto $gotpoke
checkflag 0x0029
if b_true goto $gotpoke
checkflag 0x002A
if b_true goto $gotpoke
checkflag 0x1200
if b_true goto $tired
checkflag 0x82F
if b_true goto $tired
#org $script
lock
faceplayer
checkgender
compare LASTRESULT 0x0
if b_true goto $boytalk
compare LASTRESULT 0x1
if b_true goto $girltalk
end
#org $boytalk
message $talk1
$talk1 1 =Son, i need to talk to you.\nI think it is time for you to\pget your own Pokemon.\pTalk to Proffesor Palm in his lab.\nWhen you have gotten it\pcome back here and tell me.\pThere is something very important\nI will need to ask of you.
boxset 6
release
end
#org $girltalk
message $talk2
$talk2 1 =Honey, I need to talk to you.\nI think it is time for you to\pget your own Pokemon.\pTalk to Proffesor Palm in his lab.\nWhen you have gotten it\pcome back here and tell me.\pThere is something very important\nI will need to ask of you.
boxset 6
release
end
#org $gotpoke
lock
faceplayer
message $poke
$poke 1 = Ok, now that you have chose your\npokemon.\pI have a very big favour to ask of\nAs may already know,\pTeam Storm's\nbig goal is to take over the world.\nThis is where you come in.\pThe first thing I am asking you to do\nis to go and beat all of the\pgym leaders\pWith them out of the way it will\nmake our plans a lot easier.\pYou must then take out the Elite Four.\nThe master plan will then unfold!\pMWAHAHAHAHA!!!\nI will have sent out some of our men\nto come and check on your progress\pthroughout this grave journey.\pAlso i have a little gift for you.\nYour own pair of Running Shoes!
boxset 6
fanfare 0x13E
message $recieve
$recieve 1 = \v\h01 received the running shoes\nfrom Dad!
boxset 4
waitfanfare
setflag 0x082F
setflag 0x1200
release
end
#org $tired
lock
faceplayer
message $youlook
$youlook 1 = You are looking tired.\nI will fix you up in a second!
boxset 6
fadescreen 1
special 0x0
pause 0x30
fadescreen 0
release
end
I am using PocketScript. It's a person script. I am using Fire Red.
All of the script runs as planned except for the part in which the flag is set to receive the running shoes.
What is wrong? How can i make the player receive the running shoes?
Any help would be greatly appreciated.
I want to change scripts in Advance Map but when I save I need to save as a .rbc file and I save it and when I look again nothing is changed from the persons or sign's script... what do I do?
I want to create the possibility in my Pokémon FireRed hack to obtain the 2 other starters later in the game. My solution to decide which Pokémon was chosen as a starter is creating a new script/event where you talk to a scientist in the lab that gives you your starter.
I was wondering how I could create a multiple choice script where you choose which Pokémon you get.
...
multichoice 0x0 0x0 [B]0xY[/B] 0x0
copyvar 0x8000 0x800D
compare 0x8000 0x0
if 0x1 goto @Bulbasaur
compare 0x8000 0x1
if 0x1 goto @Charmander
compare 0x8000 0x2
if 0x1 goto @Squirtle
...
...
#org @Bulbasaur
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
...
Hello everyone!
I wrote a Person Event script to recieve the running shoes earlier on in the game.
Here is the script:
Spoiler:#org $dadscript
checkflag 0x0028
if b_true goto $gotpoke
checkflag 0x0029
if b_true goto $gotpoke
checkflag 0x002A
if b_true goto $gotpoke
checkflag 0x1200
if b_true goto $tired
checkflag 0x82F
if b_true goto $tired
#org $script
lock
faceplayer
checkgender
compare LASTRESULT 0x0
if b_true goto $boytalk
compare LASTRESULT 0x1
if b_true goto $girltalk
end
#org $boytalk
message $talk1
$talk1 1 =Son, i need to talk to you.\nI think it is time for you to\pget your own Pokemon.\pTalk to Proffesor Palm in his lab.\nWhen you have gotten it\pcome back here and tell me.\pThere is something very important\nI will need to ask of you.
boxset 6
release
end
#org $girltalk
message $talk2
$talk2 1 =Honey, I need to talk to you.\nI think it is time for you to\pget your own Pokemon.\pTalk to Proffesor Palm in his lab.\nWhen you have gotten it\pcome back here and tell me.\pThere is something very important\nI will need to ask of you.
boxset 6
release
end
#org $gotpoke
lock
faceplayer
message $poke
$poke 1 = Ok, now that you have chose your\npokemon.\pI have a very big favour to ask of\nAs may already know,\pTeam Storm's\nbig goal is to take over the world.\nThis is where you come in.\pThe first thing I am asking you to do\nis to go and beat all of the\pgym leaders\pWith them out of the way it will\nmake our plans a lot easier.\pYou must then take out the Elite Four.\nThe master plan will then unfold!\pMWAHAHAHAHA!!!\nI will have sent out some of our men\nto come and check on your progress\pthroughout this grave journey.\pAlso i have a little gift for you.\nYour own pair of Running Shoes!
boxset 6
fanfare 0x13E
message $recieve
$recieve 1 = \v\h01 received the running shoes\nfrom Dad!
boxset 4
waitfanfare
setflag 0x082F
setflag 0x1200
release
end
#org $tired
lock
faceplayer
message $youlook
$youlook 1 = You are looking tired.\nI will fix you up in a second!
boxset 6
fadescreen 1
special 0x0
pause 0x30
fadescreen 0
release
end
I am using PocketScript. It's a person script. I am using Fire Red.
All of the script runs as planned except for the part in which the flag is set to receive the running shoes.
What is wrong? How can i make the player receive the running shoes?
Any help would be greatly appreciated.
#org $dadscript
lock
faceplayer
checkflag 0x1200
if b_true goto $tired
checkflag 0x82F
if b_true goto $tired
checkflag 0x28
if b_true goto $gotpoke
checkflag 0x29
if b_true goto $gotpoke
checkflag 0x2A
if b_true goto $gotpoke
checkgender
compare LASTRESULT 0x0
if b_true goto $boytalk
compare LASTRESULT 0x1
if b_true goto $girltalk
release
end
#org $boytalk
message $talk1
$talk1 1 =Son, i need to talk to you.\nI think it is time for you to\pget your own Pokemon.\pTalk to Proffesor Palm in his lab.\nWhen you have gotten it\pcome back here and tell me.\pThere is something very important\nI will need to ask of you.
boxset 6
release
end
#org $girltalk
message $talk2
$talk2 1 =Honey, I need to talk to you.\nI think it is time for you to\pget your own Pokemon.\pTalk to Proffesor Palm in his lab.\nWhen you have gotten it\pcome back here and tell me.\pThere is something very important\nI will need to ask of you.
boxset 6
release
end
#org $gotpoke
lock
faceplayer
message $poke
$poke 1 = Ok, now that you have chose your\npokemon.\pI have a very big favour to ask of\nAs may already know,\pTeam Storm's\nbig goal is to take over the world.\nThis is where you come in.\pThe first thing I am asking you to do\nis to go and beat all of the\pgym leaders\pWith them out of the way it will\nmake our plans a lot easier.
boxset 6
message @poke2
@poke2 1 = You must then take out the Elite Four.\nThe master plan will then unfold!\pMWAHAHAHAHA!!!\nI will have sent out some of our men\nto come and check on your progress\pthroughout this grave journey.\pAlso i have a little gift for you.\nYour own pair of Running Shoes!
boxset 6
setflag 0x82F
fanfare 0x13E
message $recieve
$recieve 1 = \v\h01 received the running shoes\nfrom Dad!
boxset 4
waitfanfare
setflag 0x1200
release
end
#org $tired
lock
faceplayer
message $youlook
$youlook 1 = You are looking tired.\nI will fix you up in a second!
boxset 6
fadescreen 1
special 0x0
pause 0x30
fadescreen 0
release
end
#dynamic 0x2DD100
#org @start
msgbox @bord1 0x3
end
#org @bord1
= [PLAYER]s house
I'd recompile champions' script to free location and added series of check and setflag commands and those set flags would be used in giving starters script =)
It has advantage in a fact that champion can have different team each run (if you set it of course :D), isn't that great? :D
I unfortunately did not try JPAN's engine yet but if I remember correctly then it's "stripped" of these things and you need to insert them.I am attempting to get a simple trainerbattle script to work. When I compile it into a regular FR rom, everything works fine. But when I compile the same script into a rom patched with JPAN's hacked engine, it freezes right before the battle should start and the trainer's music just keeps playing.
Does anyone know what the problem is here? I'm guessing it is something to do with the engine, but I can't figure out what.
Any help is appreciated!
Thanks.
Ash493 said:I unfortunately did not try JPAN's engine yet but if I remember correctly then it's "stripped" of these things and you need to insert them.
I'm sorry I really don't know... I hope someone else answers this better.
Can anyone help me? I've just got back into hacking and basically forgot how to script.
I'm having trouble with this script:
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x1000
if 0x1 goto @done
applymovement 0x04 @move1
waitmovement 0x0
playsong 0x0110 0x0
msgbox @1 0x6
applymovement 0x04 @move2
waitmovement 0x0
fadesong 0x12c
hidesprite 0x04
release
end
#org @done
clearflag 0x1000
release
end
#org @move1
#raw 0x02
#raw 0x62
#raw 0xA
#raw 0xFE
#org @move2
#raw 0xB
#raw 0xB
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE
#org @1
= Hello, [player]. I've found\nsomething really strange near the\llake. Come meet me there, I'll be\lwaiting for you. See ya there!
Problems:
1.The rival only does the movements, but doesn't say anything and just walks off.
2.When I go into a different map and then come back, he is then there again, and then the script can repeat.
I'd like to solve this quickly as possible, thank you! :)
shinyabsol1 said:I am attempting to get a simple trainerbattle script to work. When I compile it into a regular FR rom, everything works fine. But when I compile the same script into a rom patched with JPAN's hacked engine, it freezes right before the battle should start and the trainer's music just keeps playing.
Does anyone know what the problem is here? I'm guessing it is something to do with the engine, but I can't figure out what.
Any help is appreciated!
Thanks.