View Single Post
Old March 5th, 2013 (9:13 PM).
tajaros's Avatar
tajaros tajaros is offline
Hi I'm dawg
Join Date: Apr 2012
Location: Philippines
Age: 17
Gender: Male
Nature: Timid
Posts: 857
Send a message via Windows Live Messenger to tajaros
Originally Posted by awipe1 View Post
I have 2 questions to ask TPC.

Problem numbers one: I created a level script. Yes I did it the proper way by getting the map offset and such. It is an [2] level script where you walk into the room for the first time and the mom gives you your shoes. It works perfectly fine but everytime I enter the room, the script activates again. I have the right variable under the flags section. Anyone know what the problem might be? Here is the script for you to look at.

#dynamic 0x800000

#org @start
sound 0x15
applymovement 0x1 @Move1
waitmovement 0x0
msgbox @Talk1 MSG_KEEPOPEN
pause 0x1E
applymovement 0x1 @Move2
waitmovement 0x0
msgbox @Talk2 MSG_KEEPOPEN
special 0x171
setflag 0x82F
fanfare 0x13E
msgbox @shoe 0x6
msgbox @yay 0x6
applymovement 0x1 @Move3
waitmovement 0x0
setvar 0x4000 0x1

#org @Move1
#raw 0x1
#raw 0x62
#raw 0xFE

#org @Talk1
= Hey! \v\h01!

#org @Move2
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @Move3
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x3
#raw 0xFE

#org @shoe
= [Player], received RUNNING SHOES!

#org @yay
= Hold the B button to run!\nDon't run indoors!\pYou can use these to get around\nfaster!\pPROFESSOR OAK is waiting for you!\nGo see him at his lab!

#org @Talk2
= Your dad has still not come home\nyet ...\pI'm sure he will be home soon!\pPROFESSOR OAK told me you are\nstarting your POKéMON adventure\ltoday! I think you will need these!

Note I created another level script the same way and that one works perfectly fine, it's just this one that keeps repeating.

Problem numbers two: I wrote a script where you pick up a pokeball containing a Pokemon (It's a long script) and the Pokeball is gone (which is suppose to happen) but when you leave the room and come back, the Pokeball reappears. I don't know what I am doing wrong! I these comands

hidesprite 0x1
setflag 0x7

and I also made the person ID 7. That should work, shouldn't it?

Please PC help me!
Change the var you are using, you can't use 0x4000 for your level scripts since it reactivates every time you leave the map or something like that.

Try changing it to 0x4010 or some other var.