- 2
- Posts
- 4
- Years
- Seen Sep 25, 2020
I wanted to roll random number between 0-2
and every number will give the player something different
but the script changes itself and ruin everything
my script:
'---------------
#org 0x850E00
random 0x3
compare LASTRESULT 0x0
if 0x1 goto 0x8234561
compare LASTRESULT 0x1
if 0x1 goto 0x8234564
compare LASTRESULT 0x2
if 0x1 goto 0x8234567
'---------------
#org 0x234561
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
end
'---------------
#org 0x234564
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
end
'---------------
#org 0x234567
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
end
The Script that the game gives:
'---------------
#org 0x71A46C
random 0x3
compare LASTRESULT 0x0
if 0x1 goto 0x8234561
compare LASTRESULT 0x1
if 0x1 goto 0x8234564
compare LASTRESULT 0x2
if 0x1 goto 0x8234567
end
'---------------
#org 0x234561
givepokemon 0x1 0x79 0x4 0x5000779 0x0 0x0
nop
nop
nop
nop
nop
nop
end
'---------------
#org 0x234564
givepokemon 0x4 0x79 0x7 0x5 0x0 0x0
nop
nop
nop
end
'---------------
#org 0x234567
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
end
please HELP!!!
and every number will give the player something different
but the script changes itself and ruin everything
my script:
'---------------
#org 0x850E00
random 0x3
compare LASTRESULT 0x0
if 0x1 goto 0x8234561
compare LASTRESULT 0x1
if 0x1 goto 0x8234564
compare LASTRESULT 0x2
if 0x1 goto 0x8234567
'---------------
#org 0x234561
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
end
'---------------
#org 0x234564
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
end
'---------------
#org 0x234567
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
end
The Script that the game gives:
'---------------
#org 0x71A46C
random 0x3
compare LASTRESULT 0x0
if 0x1 goto 0x8234561
compare LASTRESULT 0x1
if 0x1 goto 0x8234564
compare LASTRESULT 0x2
if 0x1 goto 0x8234567
end
'---------------
#org 0x234561
givepokemon 0x1 0x79 0x4 0x5000779 0x0 0x0
nop
nop
nop
nop
nop
nop
end
'---------------
#org 0x234564
givepokemon 0x4 0x79 0x7 0x5 0x0 0x0
nop
nop
nop
end
'---------------
#org 0x234567
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
end
please HELP!!!
Last edited: