- 2
- Posts
- 6
- Years
- Seen Jun 24, 2019
I have tried changing this script in many ways; however, every time, the game freezes upon activation. If you have any ideas to help me fix it, that would be greatly appreciated.
Script:
#dynamic 0x800000
#org @start
checkflag 0x201
if 0x0 goto @movement
end
#org @movement
lock
applymovement 0x6 @m1
waitmovement 0x6
msgbox @t1 0x6
waitkeypress
goto @continue
#org @continue
msgbox @t2 0x6
showpokepic 0x392 0x0A 0x03
waitkeypress
hidepokepic
givepokemon 0x392 0x5 0x0 0x0 0x0 0x0
setflag 0x828
fanfare 0x13E
msgbox @t2 0x4
waitfanfare
closeonkeypress
msgbox @t3 0x5
compare 0x800D 0x1
if 0x1 call @name
fadescreen 0x1
hidesprite 0x06
fadescreen 0x0
setvar 0x4011 0x1
setflag 0x201
release
end
#org @m1
#raw 0x6
#raw 0x29
#raw 0x2C
#raw 0x29
#raw 0x29
#raw 0x2C
#raw 0x2C
#raw 0x2C
#raw 0x2C
#raw 0x29
#raw 0x62
#raw 0xFE
#org @name
countpokemon
subvar 0x800D 0x1
copyvar 0x8004 0x800D
fadescreen 0x1
special 0x9E
waitstate
return
#org @t1
= [blue_fr]WAAAAAAAAAAAAAAAIT!!!
#org @t4
= [blue_fr]It is dangerous out there without\la Pok\h1Bmon! Good thing I have an\lextra to spare. Here take this\l[red_fr]Ralts[blue_fr].
#org @t2
= [blue_fr][player] recieved a [red_fr]Ralts[blue_fr]!
#org @t3
= [blue_fr]Would you like to name that\n[red_fr]Ralts[blue_fr]?
Script:
#dynamic 0x800000
#org @start
checkflag 0x201
if 0x0 goto @movement
end
#org @movement
lock
applymovement 0x6 @m1
waitmovement 0x6
msgbox @t1 0x6
waitkeypress
goto @continue
#org @continue
msgbox @t2 0x6
showpokepic 0x392 0x0A 0x03
waitkeypress
hidepokepic
givepokemon 0x392 0x5 0x0 0x0 0x0 0x0
setflag 0x828
fanfare 0x13E
msgbox @t2 0x4
waitfanfare
closeonkeypress
msgbox @t3 0x5
compare 0x800D 0x1
if 0x1 call @name
fadescreen 0x1
hidesprite 0x06
fadescreen 0x0
setvar 0x4011 0x1
setflag 0x201
release
end
#org @m1
#raw 0x6
#raw 0x29
#raw 0x2C
#raw 0x29
#raw 0x29
#raw 0x2C
#raw 0x2C
#raw 0x2C
#raw 0x2C
#raw 0x29
#raw 0x62
#raw 0xFE
#org @name
countpokemon
subvar 0x800D 0x1
copyvar 0x8004 0x800D
fadescreen 0x1
special 0x9E
waitstate
return
#org @t1
= [blue_fr]WAAAAAAAAAAAAAAAIT!!!
#org @t4
= [blue_fr]It is dangerous out there without\la Pok\h1Bmon! Good thing I have an\lextra to spare. Here take this\l[red_fr]Ralts[blue_fr].
#org @t2
= [blue_fr][player] recieved a [red_fr]Ralts[blue_fr]!
#org @t3
= [blue_fr]Would you like to name that\n[red_fr]Ralts[blue_fr]?