View Single Post
  #22068    
Old July 15th, 2012 (03:29 PM). Edited July 15th, 2012 by Darkrai Lv.1000.
Darkrai Lv.1000's Avatar
Darkrai Lv.1000 Darkrai Lv.1000 is offline
Has a tendency to figure things out
 
Join Date: Jul 2007
Location: Aboard the Arc-Gurren
Age: 20
Gender: Male
Nature: Quirky
Posts: 653
Send a message via AIM to Darkrai Lv.1000
Quote originally posted by CrystalStatic:
Hello, I have another question. I wasn't sure where to post this - on the script help thread or this one. But I'm having trouble with this script. Well, not really with the script. The problem is, when the script gets to the "applymovement 5 @m2" command, somehow the player gets turned into the person event... The camera unlatches from the player and locks onto the person event... Then, the script ends and my game freezes. Help please?

Code:
#dynamic 0x800000

#org @start
lock
textcolor 0x0
message @t1 6
applymovement 0xFF @m1
waitmovement 0x0
message @t2 6
giveitem 0x4 0x1 MSG_OBTAIN
trainerbattle 0x1 0x2E5 0x0 @before @after @further
end

#org @further
message @t3 6
applymovement 5 @m2
waitmovement 0x0
hidesprite 0x5
setflag 0x527
setvar 0x5024 0x1
release
end

#org @m2
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @t3
= Thank you for battling me.\nYou may pass.

#org @after
= Very nice. You may pass.

#org @before
= But before I let you pass, how\nabout a POKéMON battle?

#org @t2
= I'm here to give all of the new\ntrainers a starting POKé BALL.\pPOKé BALLS can be used to catch\nPOKéMON in wild battles.\pHere you go!

#org @m1
#raw 0x1
#raw 0xFE

#org @t1
= Excuse me...
(Wasn't sure where to post this because it's not really a scripting problem I don't think... It's more of a bug or something.)
What I believe is the problem is either the 5 is supposed to be 0x5 (if that's the guy's People ID), or that trainerbattle command is only supposed to display the one message @t3 after the battle, and nothing but, which is why it freezes if it attempts to do anything else.

I also have an AdvanceMap question:
Is it possible to rearrange maps to create my own order? Like if I wanted to have Saffron City's map with Pallet Town's house interiors, could I rearrange them so they'd be in the same category?
__________________