- 76
- Posts
- 17
- Years
- Brisbane, Australia
- Seen May 21, 2015
Like they said, you use the people no. of the Player which is 0xFF
Thanks anyway, I'll see if it works.
Like they said, you use the people no. of the Player which is 0xFF
i will test it out and see if any changes
also how do you make someone give you a badge without battleing?
Just set the flag for the badge that you want the player to recieve.thethethethe said:Spoiler:Fire Red:
0x820 - First Badge
0x821 - Second Badge
0x822 - Third Badge
0x823 - Fourth Badge
0x824 - Fifth Badge
0x825 - Sixth Badge
0x826 - Seventh Badge
0x827 - Eighth Badge
0x828 - Pokemon Menu
0x829 - Pokedex Menu
0x82F - Running Shoes
Ruby/Sapphire:
0x800 - Pokemon Menu
0x801 - Pokedex Menu
0x802 - Pokenav Menu
0x807 - First Badge
0x808 - Second Badge
0x809 - Third Badge
0x80A - Fourth Badge
0x80B - Fifth Badge
0x80C - Sixth Badge
0x80D - Seventh Badge
0x80E - Eighth Badge
0x860 - Running Shoes
Emerald:
0x860 - Pokemon Menu
0x861 - Pokedex Menu
0x862 - Pokenav Menu
Do you remember this list from the first post?
Just set the flag for the badge that you want the player to recieve.
For example, in Fire Red/Leaf Green, if you wanted the player to recieve the first badge, all you need is this line.
setflag 0x820
#org $begin
checkflag 0x201
if b_true goto $done
applymovement 0x14 $move
pausemove 0
message $hey
boxset 6
applymovement 0x14 $move2
pausemove 0
setflag 0x201
release
end
#org $done
release
end
#org $move
$move 1 ; #binary 0x20 0x20 0x20 0x20 0x20 0x62 0xFE
#org $hey
$hey 1 =Hey there, I am one of the\nthree dancers, come by our gym later.
#org $move2
$move2 1 ; #binary 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1F 0x1F 0x60 0xFE
ok then i understand but on morwe question this script keeps freexing btw i did change the unknown and var number to 03 00 and 40 50 so whats wrong with this
#org $begin
checkflag 0x201
if b_true goto $done
applymovement 0x14 $move
pausemove 0
message $hey
boxset 6
applymovement 0x14 $move2
pausemove 0
setflag 0x201
release
end
#org $done
release
end
#org $move
#raw 0x20 0x20 0x20 0x20 0x20 0x62 0xFE
#org $hey
$hey 1 =Hey there, I am one of the\nthree dancers, come by our gym later.
#org $move2
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1F 0x1F 0x60 0xFE
Only if you have used setflag 0x201 before in another script, then checkflag 0x201 would see : "the script with setflag 0x201 was already activated" and go to the end of the script, sono that dosen't work.
would it be the check flag
#org $begin
checkflag 0x829
compare lastresult 0x1
if B_true goto $release
applymovement 0x05 $move
pause 0x30
applymovement 0x05 $move2
pausemove 0x0
applymovement 0xFF $move4
pausemove 0x0
message $arbeiten
$arbeiten 1 = Du kannst hier jetzt nicht\ndurch. Vor dem Vertania-Wald wird\lgerade aufgeräumt, der starke Regen\lhat eine Erdschicht abrutschen lassen.
boxset 6
applymovement 0xFF $move5
pausemove 0x0
applymovement 0x05 $move3
pausemove 0x0
release
end
#org $release
release
end
#org $move
#raw 0x65 0xFE
#org $move2
#raw 0x11 0x11 0x13 0x13 0x00 0xFE
#org $move5
#raw 0x10 0x10 0x10 0xFE
#org $move3
#raw 0x12 0x12 0x10 0x10 0xFE
#org $move4
#raw 0x01 0xFE
#org $begin
checkflag 0x826
compare lastresult 0x1
if B_true goto $continue
lock
applymovement 0xFF $move
pausemove 0x0
message $stop
$stop 1 = Die Türen der Arena sind fest\nverschlossen.
boxset 6
applymovement 0xFF $move2
pausemove 0x0
release
end
#org $move
#raw 0x01 0xFE
#org $move2
#raw 0x12 0x12 0xFE
#org $continue
release
end
I tested the script myself and it worked fine.
I'll put up a video when YouTube finishes uplaoding it. ;)
and yeah, I guess it's because of the setflag...
#org $start
lock
faceplayer
checkflag 0x201
if B_false goto $news
checkflag 0x828
if B_false goto $flags
checkflag 0x829
if B_false goto $flags
checkflag 0x202
if B_true goto $missionfinish
checkflag 0x203
if B_true goto $bosses
checkflag 0x205
if B_true goto $adventure
message $mission
setflag 0x205
release
end
#org $mission
$mission 1 =Your mission, should you choose\nto accept it is:\pI need you to find the source of\ldarkness in this world.\pIt may sound a daunting task\lbut I think you can do it!\pI think you should visit my friends\l across Johto, they will train you\lto find and destroy the darkness\lhaunting this world.\pReturn here when you have\l seen all 8 of them.
#org $news
message $1
boxset 6
setflag 0x201
release
end
#org $1
$1 1 =Hello! I am Prof. XANU\pI have a proposition for you.\pBut first you need a pokemon\land a pokedex.\p Go grab them off of that table.
#org $flags
message $2
boxset 6
release
end
#org $2
$2 1 =Did you get them yet?
#org $missionfinish
message $3
boxset 6
setflag 0x204
release
end
#org $3
$3 1 =So you finished?\pGreat!!!\nYour mom has something for\l you.\lGo get it!
#org $bosses
checkflag 0x207
message $4
boxset 6
setflag 0x206
release
end
#org $4
$4 1 =We have discovered the source\nof darkness.\pIt is a pokemon called DARKRAI.\p We must find a way to destroy it.\pGo find him at his fortress.
#org $adventure
message $5
boxset 6
release
end
#org $5
$5 1 =How's the mission coming?\p...\pOh thats wonderful!\lKeep it up!
Code:#org $start checkflag 0x828 if B_true goto $done message $wait boxset 6 applymovement 0x01 $move pausemove 0x0 applymovement 0xFF $youmove pausemove 0x0 message $poke boxset 6 applymovement 0x01 $move2 release end $done release end #org $move #raw 0x1F 0x1F 0x1F 0x1D 0xFE #org $youmove #raw 0x17 0xFE #org $move2 #raw 0x20 0x20 0x20 0x1E 0xFE #org $wait $wait 1 = WAIT!!!! #org $poke $poke 1 = You need a pokemon to go\nout!
#org $start
checkflag 0x828
if B_true goto $done
message $wait
$wait 1 = WAIT!
boxset 6
applymovement 0x01 $move
pausemove 0x0
applymovement 0xFF $youmove
pausemove 0x0
message $poke
$poke 1 = You need a pokemon to go\nout!
boxset 6
applymovement 0x01 $move2
pausemove 0x0
release
end
#org $move
#raw 0x1F 0x1F 0x1F 0x1D 0xFE
#org $move2
#raw 0x20 0x20 0x20 0x1E 0xFE
#org $youmove
#raw 0x17 0xFE
#org $done
release
end
I'm not sure what the problem is but...did you write gosub $name or goto $nameAlso the
#org $name
call 0x1A74EB
return
just changed a couple of tiles... and namepokemon doesnt work
#org $start
lock
checkflag 0x201
if B_false goto $done
checkflag 0x828
if B_true goto $1
#raw 0x75 0x98 0x00 0x0A 0x03
message $info
boxset 6
message $takeit
boxset 5
compare LASTRESULT 1
if B_true goto $getpoke
#raw 0x76
release
end
#org $info
$info 1 = Its the Leaf Pokemon Chikorita!
#org $takeit
$takeit 1 = Take the grass type Chikorita?
#org $getpoke
setflag 0x828
givepokemon 152 5 0
#raw 0x76
fanfare 0x13E
message $recieved
boxset 4
waitfanfare
#raw 0x68
message $rename
boxset 5
compare LASTRESULT 1
if B_true gosub $name
#raw 0x53 0x0F 0x80
release
end
#org $recieved
$recieved 1 =You got a CHIKORITA!
#org $rename
$rename 1 = Rename Chikorita?
#org $name
call 0x1A74EB
return
#org $1
message $gotit
boxset 6
release
end
#org $gotit
$gotit 1 =You already have a Pokemon!
#org $done
message $pokeball
boxset 6
release
end
#org $pokeball
$pokeball 1 =It's a pokeball!