Well, I'll tell you how the game deals with that. They just have a variable and they set that variable into three possible values. But making things short, as long as you are dealing with FR, and you still use the original Pokeball choosing script, I can tell you what you'd need to do...
compare 0x4031 0x0
if 0x1 call 0xEVENT1
compare 0x4031 0x1
if 0x1 call 0xEVENT2
compare 0x4031 0x2
if 0x1 call 0xEVENT3
[EDIT]: Argh, you were doing things in Ruby, well, at least this may help someone else, if someone knows the value in Ruby...
I want to know why my script aint working
Its a givepokemon script and i am recieving a mew =P
anyway where he says take it or leave it he is meant to give me the pokemon but he doesnt the script then ends
Why does this happen please check my script.
i will put in spoiler box so it wont take up much room
How can I give people scripts?How do I enter a script in a game to a certin person?I edited the mew script and it doesn't work.I want porygon not Mew.Can you fix it?
#org 0x800000
lock
faceplayer
checkflag 0x200
if 0x1 goto 0x800100
message 0x800200
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x800300
message 0x800400
boxset 0x6
release
end
#org 0x800100
message 0x800500
boxset 0x6
release
end
#org 0x800300
message 0x800600
boxset 0x6
givepokemon 137
setflag 0x200
release
end
#org 0x800200
= Would you like my Porygon?\nI dont like it so you can have it.
#org 0x800400
= Don't be like that.
#org 0x800500
= So how do you like Porygon?
#org 0x800600
= Ok then, Take it or go!
I want porygon on level 5 and with a potion.
#org 0x800300
message 0x800600
boxset 0x6
givepokemon 137 5 0xD
setflag 0x200
release
end
Idid it and its saying this.When I compile it.I'm using Rubikon ScriptED for ruby scripting.
Loading command database...
Empty command database detected. Program halte
#org 0x800000
lock
faceplayer
checkflag 0x200
if 0x1 goto $GotMew
message $WantMew
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto $GiveMew
message $NoMew
boxset 0x6
release
end
#org $GotMew
message $HowMew
boxset 0x6
release
end
#org $GiveMew
[B]countpokemon
compare LASTRESULT 0x6
if 0x1 goto $ErrorMew
[/B]message $RecieveMew
boxset 0x6
givepokemon 151 5 0
[B]message $NewName
callstd 0x5
compare LASTRESULT 0x1
if 0x1 gosub $NameMew[/B]
setflag 0x200
release
end
[b]#org $ErrorMew
message $FullParty
boxset 6
release
end
#org $NameMew
namepokemon
return
$FullParty 1 = Your Party is full!
$NewName 1= Would you like to give the pokemon a name?[/B]
$WantMew 1 = Would you like my Mew?\nI dont want it anymore.
$NoMew 1 = You're Weird!
$HowMew 1 = So how is MY Mew?
$RecieveMew 1 = You recieved a mew
#org 0x944F00
message 0x944F20
boxset 0x2
applymovement 0xFF 0x944F40
pause 0x10
message 0x944F30
boxset 0x2
applymovement 0x0 0x944F60
pause 0x60
warp 0x2D 0x1 0x0
end
#org 0x944F20
= Mew!?\pWhere am I?
#org 0x944F40
#raw 0x62
#raw 0xFE
#org 0x944F30
= No wait!\pDon't go!
#org 0x944F60
#raw 0x32
#raw 0x32
#raw 0x32
#raw 0x32
#raw 0x32
#raw 0xFE
Wtf is wrong with my script?
I've tried it, but it says all text ( without enters etc)
Script:
Code:#org 0x944F00 message 0x944F20 boxset 0x2 applymovement 0xFF 0x944F40 [B]pausemove 0x0[/B] message 0x944F30 boxset 0x2 applymovement 0x0 0x944F60 [B]pausemove 0x0[/B] warp 0x2D 0x1 0x0 end
#org $start
lock
faceplayer
message $battle
TRAINERBATTLE 00 <Trainer> (ptr Intro) <ptr Defeat>
message $lost
end
#org $battle
= Lets battle
#org $lost
= NO! I lost thats not possible!