- 19
- Posts
- 10
- Years
- Seen Aug 28, 2014
Hey guys I need your help because i'm stuck on a script im trying to make. So I'm trying to make a script where when you step on a specific tile the script will activate only if a certain flag has been activated. Kind of like in fire red how if you try to leave pallet town without a pokemon you'll be confronted by a person which tells you not to go in wild grass without one. I'm not sure how I would set this up but I think I have it down. Pretty sure I'm just confused on where i'm supposed to place the script in A-map, but if something's wrong with my script please don't hesitate to tell me.
Thanks!
Code:
#dynamic 0x800000
#org @start
checkflag 0x601
if 0x1 goto @done
msgbox @brother 0x6
release
end
#org @done
msgbox @1 0x6
applymovement 0x06 @move
waitmovement 0x0
msgbox @2 0x6
closeonkeypress
trainerbattle 0x1 0x006 0x0 @before @after @later
end
#org @before
= Lets go!
#org @after
= Very nice!
#org @later
msgbox @3 0x6
msgbox @4 0x4
closeonkeypress
msgbox @5 0x6
givemoney 0x2710 0x00
fadescreen 0x1
setflag 0x610
hidesprite 0x6
fadescreen 0x0
release
end
#org @brother
= Hello passerby! Have a nice day.
#org @1
= ???: Hey! I saw you battle my\nbrother
#org @move
#raw 0x10
#raw 0x13
#raw 0xFE
#org @2
= Steve: Hey man I saw you over\nthere! You looked great but my\pbrother's a real jerk. He took\nyour money huh?\pI'm real sorry about that. I'll\ngive it back to you on one\pcondition... battle me for it!
#org @3
= What a great battle! You're good.\nHere's your money back. My bro is\psuch an embarrassment sometimes...
#org @4
= \v\h01 Got his money back!
#org @5
= Catch you later maybe, eh?
Thanks!