View Single Post
  #1324    
Old June 9th, 2009, 09:12 PM
PlatniumPiano's Avatar
PlatniumPiano
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
I'm redesining the script for my first Pokemon in my hack... The problem is when the flag has been set. If the flag is not set, the script works fine, but when the flag is set, it automatically goes to the script in which it was not set.

Is this because the flag was set on a different map? Or something else (yes I set person id to 950)?

Ruby Version AXVE Script:

Code:
 
#dynamic 0x800000
 
#org @start
checkflag 0x950
if 0x1 goto @done
lock
faceplayer
msgbox @whatsup 0x6
release
end
 
#org @ponyta
msgbox @give 0x6
givepokemon 0x4D 0xF 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @obtain 0x6
waitfanfare
msgbox @would 0x5
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @call 0x6
setflag 0x800
release
end
 
#org @done
lock
faceplayer
msgbox @hey 0x5
compare LASTRESULT 0x1
if 0x1 goto @ponyta
msgbox @sorry 0x6
release
end
 
#org @name
fadescreen 0x1
special 0x9E
waitstate
return
 
#org @hey
= Hey, [player], what brings you\nhere on my day off?\p... ... ...\n... .... ...\l... ... ...\l... ... ...\pYou can't be serious...\n...Mew?\pWell, if this is true, then\nI guess you will need a POKéMON.
 
#org @give
= That's a wise choice.\pIt's not often you have\nan encounter with Mew.
 
#org @obtain
= You got a Ponyta!
 
#org @would
= Would you like to give a\nnickname to this POKéMON?
 
#org @call
= Well... we got you a\nPOKéMON.\lNow what?\p... ... ...\n... ... ...\lLord Aspen, eh?\pListen, Aspen is a seasoned POKéMON\nveteran, so with that guy there,\lI doubt you could win.\pHowever.\pIf you must, there is a cavern\nwhere you can train that\lhorse, located in the caves, one level above Aspens.
 
#org @whatsup
= Hey, [player], what's up?
 
#org @sorry
= Oh...\nWell, I'm sorry to hear that.