View Single Post
  #8099    
Old April 4th, 2013, 05:35 PM
Jbsundown's Avatar
Jbsundown
 
Join Date: Jul 2012
Age: 17
Gender: Male
Hello, I've been trying to script a small event as a test for something bigger.

The scenario is, once you walk out of professor Oak's lab after getting your pokemon (FireRed) there are 2 grunts (X and Y). They talk a bit and then battle you individually. After being defeated, the screen fades and they are gone. They should not reappear there at all. However, after inserting the script into the ROM, after walking out of Oak's lab, the script doesn't activate. Then, once walking off of the tile then back onto it, the game crashes but the music is still playing normally.

Spoiler:

Image 1:


Image 2:


Image 3:



Here is the script:
Spoiler:
#dynamic 0x71A300

#org @start
lock
applymovement 0x05 @move
msgbox @1 0x6
applymovement 0x04 @move5
msgbox @14 0x6
applymovement 0x05 @move2
msgbox @12 0x6
applymovement 0x04 @move3
msgbox @13 0x6
applymovement 0x04 @move4
trainerbattle 0x1 0x003 0x0 @before @after @later
end

#org @12
=Hey! You!\lWhat are you lokin' at?

#org @13
= Le'me battle 'im Y!\lPlease!\p*sigh*\lFine, go ahead.

#org @1
= X!\nWhat are you doing?

#org @14
= I ain't doin' nothin'.\pHmmm...

#org @move
#raw 0x1

#org @move2
#raw 0x7
#raw 0x62

#org @move3
#raw 0x3
#raw 0x62
#raw 0x0

#org @move4
#raw 0x20

#org @move5
#raw 0x0

#org @before
= Haha! Bring it on, kid.

#org @after
= Y! Help!

#org @later
applymovement 0x04 @move7
msgbox @2 0x6
applymovement 0x05 @move8
trainerbattle 0x1 0x002 0x0 @before1 @after1 @later1

#org @move7
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x7

#org @move8
#raw 0x13

#org @2
= Hmph.\n You beat X.\lNo hard feat I suppose.\lBut, for that, I will beat\lyou!

#org @before1
= Now I'll show you!

#org @after1
= I went easy on you.

#org @later1
applymovement 0x05 @move9
msgbox @3 0x6
applymovement 0x05 @move10
msgbox @4 0x6
fadescreen 0x1
hidesprite 0x05
hidesprite 0x04
fadescreen 0x0
setflag 0x1200
release
end

#org @move9
#raw 0x12


#org @move10
#raw 0x3


#org @3
= Let's get going, X...

#org @4
= See ya around, kid.





If there is anything else that is required to find the error, please tell me!
__________________
My Fan-Fics:


Completed Challenges:
Legendary Trio: Crystal; Moltres, Lugia, Raikou
Username Challenge: FireRed