View Single Post
Old February 4th, 2013 (3:29 PM).
FBI's Avatar
FBI FBI is offline
Free supporter
  • Silver Tier
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,794
Originally Posted by Zanny77 View Post
Hey everyone!
I started scripting 4 years ago(!) when I was working on a hack, but ended up leaving it because of other issues.
I'm back and trying to work on a new hack with my girlfriend, and I'm trying to remember how to script.
Here is my script:

#dynamic 0x2D538A
#org @start
checkflag 0x888
if 0x1 goto @done
msgbox @1 0x6

#org @1
= Vivian's House. \p...What's this?
givepokemon 0x25 0x5D 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
setflag 0x888
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 call @name

#org @name
call 0x1A74EB <- What's this? :O

#org @3
= [blue_fr]IT'S A\nHAUNTER!

#org @4
= [blue_fr]Give this dood\na name?

#org @done
msgbox @2 0x6

#org @2
= Vivian's House.

and I think it looks good, and I think I compiled it right, but when I go in game I get nothing when I click on the mailbox. I don't know if there was a problem compiling it or putting the offset in AdvanceMap (the dynamic offset in the script and the AdvanceMap script are the same). Can someone help me out? I also am not sure about how to properly compile, I just batch compile each time and it says it gets saved. Help!
The part of your script I bolded goes after the green part, and the orange stuff are things that I think is wrong. Red are changes I made. Look at the spoiler in the quote for the script.