Thoriére
[i]If everything's a dream, don't wake me.[/i]
- 121
- Posts
- 10
- Years
- GMT -8:00
- Seen Sep 14, 2024
Earlier today I posted about a scripting error I was getting. I've since fixed the problem, along with a couple of issues that remained within the script itself, but there's one more issue I can't resolve.
The whole script works except for one part, the msgbox that's supposed to be triggered to display text stored at @5. I realized I hadn't included it at one point, so I put it in, but I have a feeling the placement is wrong. Nothing is wrong with the script in the sense that there are no glitches or crashes, just that @5 won't work. This prevents the nickname window from coming up, so it's very important that I fix it. Code included below.
All help appreciated! Thanks in advance.
The whole script works except for one part, the msgbox that's supposed to be triggered to display text stored at @5. I realized I hadn't included it at one point, so I put it in, but I have a feeling the placement is wrong. Nothing is wrong with the script in the sense that there are no glitches or crashes, just that @5 won't work. This prevents the nickname window from coming up, so it's very important that I fix it. Code included below.
Spoiler:
Code:
#dynamic 0x823800
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @3 0x6
release
end
#org @take
lock
faceplayer
msgbox @2 0x6
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x828
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @6 0x6
release
end
#org @name
msgbox @5 0x5
setvar 0x8004 0x0
fadescreen 0x1
special 0x9E
waitstate
return
#org @done
msgbox @6 0x6
release
end
#org @1
= Dad: Oh, \v\h01! You're\nfinally up! Did you know I was\lcoming back today?\l...\lI missed you too. Were you\lokay while I was gone? I know I\lshould have come back home sooner,\lbut it was like pulling\lteeth to get back even today...\l...\lBut I got you something special to\lmake up for it! It's a surprise,\lbut I know you'll love it.\l...\lDo you want it now, or...?
#org @2
= All right! Close your\neyes and cup your hands together\lin front of you.\p...\p...\p...\pOkay! Open your eyes!\pIt's a Pok\h1Bmon!\nYour very own!
#org @3
= Is that so? Well, let me\nknow when you want it. I'll be\lhere all day.
#org @4
= You received an Eevee!
#org @5
= Would you like to give a\nnickname to Eevee?
#org @6
= Isn't it a wonderful Pok\h1Bmon?\nI saw it and knew it was perfect\lfor you. It can evolve into\ldifferent forms depending on items\lyou give it, so you have a lot of\lfreedom when it comes to that\lPok\h1Bmon's growth.\l...\lWhy don't you go play with it in\lyour room for a bit while I\lmake dinner? I'll call for you\lwhen it's done.
All help appreciated! Thanks in advance.
Last edited: