View Single Post
  #1470    
Old June 21st, 2009 (4:16 AM).
Diegoisawesome's Avatar
Diegoisawesome Diegoisawesome is offline
Oh god the bees
 
Join Date: Dec 2007
Location: :noitacoL
Age: 21
Gender: Male
Nature: Naive
Posts: 1,046
Quote:
Originally Posted by Spherical Ice View Post
Script Type: Trainerbattle, Applymovement, Giveitem
Script:
Spoiler:
'---------------
#org 0x8041A8
lock
checkflag 0x835
if 0x1 goto 0x880468D
msgbox 0x880426B MSG_NORMAL '"[green_fr]???: Hey! You! Wait up!"
applymovement 0xFE 0x880464B
waitmovement 0x0
showsprite 0x1
applymovement 0x1 0x880464E
waitmovement 0x0
trainerbattle 0x0 0x1 0x0 0x8804293 0x88043A8
applymovement 0x1 0x8804659
waitmovement 0x0
msgbox 0x88043C9 MSG_NORMAL '"[green_fr]CLOVIS: You're good...\n..."
applymovement 0x1 0x880465C
waitmovement 0x0
hidesprite 0x1
showsprite 0x0
applymovement 0x0 0x8804669
waitmovement 0x0
checkgender
if 0x0 goto 0x8804404
if 0x1 goto 0x88044DD
applymovement 0xFE 0x8804676
waitmovement 0x0
msgbox 0x88045B6 MSG_NORMAL '"[blue_fr][rival]: Goodbye!"
applymovement 0x0 0x880467D
waitmovement 0x0
hidesprite 0x0
msgbox 0x88045C8 MSG_NORMAL '"[black_fr][player] opened the pack..."
giveitem 0x4 0x5 MSG_OBTAIN
giveitem 0xD 0xA MSG_OBTAIN
setflag 0x82F
setflag 0x829
msgbox 0x88045E6 MSG_NORMAL '"[black_fr][player] received a pair..."
setflag 0x835
release
end

'---------------
#org 0x80468D
release
end

'---------------
#org 0x804404
'---------------
#org 0x8044DD

'---------
' Strings
'---------
#org 0x80426B
= [green_fr]???: Hey! You! Wait up!

#org 0x804293
= [green_fr]CLOVIS: Hi. My name is Clovis. I saw\nyou come\nout from the Copihue Woodlands\pearlier.\pYou're from Camp Copihue, aren't\nyou?\pMy grandad taught the Scout Master\neverything that he knows.\pWell, lemme see how well the Scout\nMaster's taught you in the\part of Pokémon Battling!

#org 0x8043A8
= Wow... He's taught you well...

#org 0x8043C9
= [green_fr]CLOVIS: You're good...\nVery good indeed...

#org 0x8045B6
= [blue_fr][rival]: Goodbye!

#org 0x8045C8
= [black_fr][player] opened the package...

#org 0x8045E6
= [black_fr][player] received a pair\nof Running Shoes!\p[player] received a Pokémon\nEncyclopedia - the renowned Pokédex!


'-----------
' Movements
'-----------
#org 0x80464B
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x80464E
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xFE 'End of Movements

#org 0x804659
#raw 0x1 'Face Up
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x80465C
#raw 0x1 'Face Up
#raw 0x9 'Step Up (Very Slow)
#raw 0x0 'Face Down
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x804669
#raw 0xA 'Step Left (Very Slow)
#raw 0x0 'Face Down
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xFE 'End of Movements

#org 0x804676
#raw 0x0 'Face Down
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x3 'Face Right
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements

#org 0x80467D
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x2 'Face Left
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x0 'Face Down
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

Program: XSE
ROM: FireRed

What's meant to happen:
Walk on script tile.
Player's locked. Check if the flag is set. If it is, end the script.
Text.
Player has exclamation mark above head. Faces Up.
Person No. 0 approaches player.
Text.
Person No. 0 battles player.
If player wins, text a is shown, if they lose, text b is shown
Person No. 0 walks off screen.
Person No. 1 approaches player.
Person No. 1 talks.
Gives 5 Pokéballs, 10 Potions, Pokedex and Running Shoes.
Person No. 1 talks again.
Player moves.
Player No. 1 walks off screen.
Set the flag.
Release player.
End script.

What Actually Happens:
Walk on script tile.
Player's locked. Check if the flag is set. If it is, end the script.
Text.
Person No. 0 approaches player.
Text.
Person No. 0 battles player.
I begin playing as Person No. 0, not the player.
Glitched tiles appear, OWs mess up.

Please Help!
Either change person #0's Movement type to No movement in A-Map, or set the Movement byte under it to 11.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Diego's Miscellaneous Patches
GBA Intro Manager
The Secret Sauce: Triple-Layer Tiles