- 16
- Posts
- 7
- Years
- Seen May 7, 2022
Hello, all. I've compiled the script in XSE, but its saying no dynamic on line 30. Not sure what I'm doing wrong. I want a certain pokemon to be given depending on what starter I choose. I got it to work at one point, but it didn't say "player received a...". Any ideas? Here is the script (the flags and such are fine)
#dynamic 0x80A8C0
#org @start
lock
faceplayer
msgbox @talk1 0x6
compare 0x4031 0x0
if 0x1 goto @bulbasaur
compare 0x4031 0x1
if 0x1 goto @squirtle
compare 0x4031 0x2
if 0x1 goto @charmander
#org @bulbasaur
msgbox @bulba 0x6
givepokemon 0x36 0xF 0x44 0x0 0x0 0x0
fanfare 0x13E
msgbox @talk2 0x6
waitfanfare
closeonkeypress
fadescreen 0x1
hidesprite 0xD
fadescreen 0x0
clearflag 0x1263
release
end
#org @squirtle
msgbox @squirt 0x6
givepokemon 0x3F 0xF 0x44 0x0 0x0 0x0
fanfare 0x13E
msgbox @talk2 0x6
waitfanfare
closeonkeypress
fadescreen 0x1
hidesprite 0xD
fadescreen 0x0
clearflag 0x1263
release
end
#org @charmander
msgbox @charm 0x6
givepokemon 0x42 0xF 0xCF 0x0 0x0 0x0
fanfare 0x13E
msgbox @talk2 0x6
waitfanfare
closeonkeypress
fadescreen 0x1
hidesprite 0xD
fadescreen 0x0
clearflag 0x1263
release
end
#org @talk1
= Great job dealing with BILL!\nWe'll take it from here.\pHere's a token of TEAM ROCKET's\nappreciation.
#org @bulba
= [black_fr][player] received an PSYDUCK!
#org @squit
= [black_fr][player] received an ABRA!
#org @charm
= [black_fr][player] received an MACHOP!
#org @talk2
= Now then. \pHead to the S.S. ANNE.\nWe've got some business with the\lCAPTAIN.\pBut we need you to distract him\nfirst.
#dynamic 0x80A8C0
#org @start
lock
faceplayer
msgbox @talk1 0x6
compare 0x4031 0x0
if 0x1 goto @bulbasaur
compare 0x4031 0x1
if 0x1 goto @squirtle
compare 0x4031 0x2
if 0x1 goto @charmander
#org @bulbasaur
msgbox @bulba 0x6
givepokemon 0x36 0xF 0x44 0x0 0x0 0x0
fanfare 0x13E
msgbox @talk2 0x6
waitfanfare
closeonkeypress
fadescreen 0x1
hidesprite 0xD
fadescreen 0x0
clearflag 0x1263
release
end
#org @squirtle
msgbox @squirt 0x6
givepokemon 0x3F 0xF 0x44 0x0 0x0 0x0
fanfare 0x13E
msgbox @talk2 0x6
waitfanfare
closeonkeypress
fadescreen 0x1
hidesprite 0xD
fadescreen 0x0
clearflag 0x1263
release
end
#org @charmander
msgbox @charm 0x6
givepokemon 0x42 0xF 0xCF 0x0 0x0 0x0
fanfare 0x13E
msgbox @talk2 0x6
waitfanfare
closeonkeypress
fadescreen 0x1
hidesprite 0xD
fadescreen 0x0
clearflag 0x1263
release
end
#org @talk1
= Great job dealing with BILL!\nWe'll take it from here.\pHere's a token of TEAM ROCKET's\nappreciation.
#org @bulba
= [black_fr][player] received an PSYDUCK!
#org @squit
= [black_fr][player] received an ABRA!
#org @charm
= [black_fr][player] received an MACHOP!
#org @talk2
= Now then. \pHead to the S.S. ANNE.\nWe've got some business with the\lCAPTAIN.\pBut we need you to distract him\nfirst.