View Single Post
  #2510    
Old November 23rd, 2009 (12:22 PM).
Larvitar170's Avatar
Larvitar170
Noobie hacker
 
Join Date: Jul 2009
Location: Kentucky.
Gender: Male
Nature: Modest
Fire Red
xse
applymovement\giveitem\pokedex script
Spoiler:
#dynamic 0x802BEC

#org @start
checkflag 0x829
if 0x0 goto @done
msgbox @1 0x6
applymovement 0xFF @moveplayer
waitmovement 0x0
applymovement 0x1 @moveGreen
waitmovement 0x1
msgbox @2 0x6
trainerbattle 0x1 0x01E 0x0 @before @after @later
release
end

#org @1
= Hey [Player]!

#org @moveplayer
#raw 0x63
#raw 0x52
#raw 0xFE

#org @moveGreen
#raw 0x61
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @2
= Daniel: I forgot to give you some stuff.\pHere you go...\nWait...you...\lYou've never had a battle, have you?\lWell, that won't do!\pHere I come!

#org @before
= I will take it easy, don't worry about winning.

#org @after
= Great battle! You are a natural.

#org @later
msgbox @3 0x6
setflag 0x829
special 0x16F
giveitem 0x04 0x5 MSG_OBTAIN
applymovement 0x1 @moveGreen2
release
end

#org @3
= You battle like your brother...\nYou should take the gym challenge and\lbecome better than your brother.\pWhile you are at it, take this Pokédex and Pokéballs.\pI'm sure someone out there cares about\nfilling the Pokédex.\pCome back and see me if you need me.

#org @moveGreen2
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x60

#org @done
release
end


The actual script runs fine until the end. However, before the actual event, Oak stand out in the middle of the area, just hanging out. After you get a pokemon, he disappears, and the event runs to his battle. However, after his battle, the text runs fine, but the applymovement doesn't happen, as he just disappears instantly. But he still blocks the way, as you can't move onto where he had just been standing afterwards.
__________________
Current project: Pokemon Mud Brown (Working Title, will be changed.)
No link because I haven't made a page for it yet.
Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.