- 15
- Posts
- 4
- Years
- Seen Aug 3, 2024
Hi,
I wrote this Script for an event on a Scripting Tile (Green "S" Tile).
My Problem is whenever it reaches the Nickname Part and one selects YES the script ends and the player can move around and
even step back on the Script Tile again.
I would like to know why it does that.
Any Help is welcome.😄
Here is the Script:
#dynamic 0x800000
#org @start
lock
faceplayer
spriteface 0xA 0x2
spriteface 0xFF 0x1
msgbox @talk 0x6
applymovement 0xA @m1
waitmovement 0x0
msgbox @t1 0x6
givepokemon 0x19 0x2D 0xCA 0x0 0x0 0x0 //gives a lvl45 Pikachu
fanfare 0x13E
msgbox @notify 0x4 //msgbox that you got a Pokemon
waitfanfare
closeonkeypress
msgbox @qname 0x5 //Asks the player if they want to nickname their pokemon
compare 0x800D 0x1 //Checks to see if the player selected 'Yes'
if 0x1 gosub @nickname //If yes then the @nickname script will run and then return
giveitem 0xC5 0x2 MSG_OBTAIN //gives 2 Lucky Eggs
msgbox @t2 0x6
applymovement 0xA @m2
waitmovement 0x0
hidesprite 0xA
setflag 0x286
hidesprite 0xA
setvar 0x4018 0x1
release
end
#org @m1
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0xFE
#org @talk
= WAIT, [PLAYER]!\nHOLD UP, WAIT A MINUTE!!!
#org @t1
= ..... //omitted
#org @t2
= .... //omitted
#org @nickname
call 0x1A74E
return
#org @notify
= [Player] received a PIKACHU!
#org @qname
= Would you like to give PIKACHU a\nnickname?
#org @m2
#raw 0x10
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
I wrote this Script for an event on a Scripting Tile (Green "S" Tile).
My Problem is whenever it reaches the Nickname Part and one selects YES the script ends and the player can move around and
even step back on the Script Tile again.
I would like to know why it does that.
Any Help is welcome.😄
Here is the Script:
#dynamic 0x800000
#org @start
lock
faceplayer
spriteface 0xA 0x2
spriteface 0xFF 0x1
msgbox @talk 0x6
applymovement 0xA @m1
waitmovement 0x0
msgbox @t1 0x6
givepokemon 0x19 0x2D 0xCA 0x0 0x0 0x0 //gives a lvl45 Pikachu
fanfare 0x13E
msgbox @notify 0x4 //msgbox that you got a Pokemon
waitfanfare
closeonkeypress
msgbox @qname 0x5 //Asks the player if they want to nickname their pokemon
compare 0x800D 0x1 //Checks to see if the player selected 'Yes'
if 0x1 gosub @nickname //If yes then the @nickname script will run and then return
giveitem 0xC5 0x2 MSG_OBTAIN //gives 2 Lucky Eggs
msgbox @t2 0x6
applymovement 0xA @m2
waitmovement 0x0
hidesprite 0xA
setflag 0x286
hidesprite 0xA
setvar 0x4018 0x1
release
end
#org @m1
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0xFE
#org @talk
= WAIT, [PLAYER]!\nHOLD UP, WAIT A MINUTE!!!
#org @t1
= ..... //omitted
#org @t2
= .... //omitted
#org @nickname
call 0x1A74E
return
#org @notify
= [Player] received a PIKACHU!
#org @qname
= Would you like to give PIKACHU a\nnickname?
#org @m2
#raw 0x10
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE