The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Need help with script events in AdvanceMap 1.92

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 21st, 2015 (4:41 PM).
joeytheleo's Avatar
joeytheleo joeytheleo is offline
 
Join Date: May 2015
Gender: Male
Posts: 44
I'm trying to have it so once you step onto this tile this event will trigger.

Here is my script after compiling it


Spoiler:

'---------------
#org 0x2C9128
checkflag 0x1
if 0x1 goto 0x82C9169
applymovement 0x1 0x82C9170
waitmovement 0x0
msgbox 0x82C917F MSG_NORMAL '"???: Hi! You must be [player]\nMy ..."
applymovement MOVE_PLAYER 0x82C91EA
applymovement 0x1 0x82C91FB
waitmovement 0x0
msgbox 0x82C920F MSG_NORMAL '"Jen:Your room is the first one ins..."
setflag 0x1
release
end

'---------------
#org 0x2C9169
hidesprite 0x1
end


'---------
' Strings
'---------
#org 0x2C917F
= ???: Hi! You must be [player]\nMy name is Jen.\nI will be your Resident Advisor.\nCome on I'll show you our room.

#org 0x2C920F
= Jen:Your room is the first one inside\nDavid, your roomate, should be inside.


'-----------
' Movements
'-----------
#org 0x2C9170
#raw 0x15 'Slide Down
#raw 0x15 'Slide Down
#raw 0x15 'Slide Down
#raw 0x15 'Slide Down
#raw 0x2 'Face Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x17 'Slide Left
#raw 0x56 'Exclamation Mark (!)

#org 0x2C91EA
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x1 'Face Up
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)

#org 0x2C91FB
#raw 0x3 'Face Right
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x1 'Face Up
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x2 'Face Left
#raw 0xA 'Step Left (Normal)
#raw 0x3 'Face Right


So basically once you step on this tile I want the person sprite I have on my map to walk over, say something to the player, lead them somewhere, say something else to the player, then release them. The problem right now is once you step on the script tile your movement becomes locked like the script is starting but the other person never walks over and you become stuck on this tile. Any reason why this happens?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 21st, 2015 (5:41 PM).
azurile13 azurile13 is offline
 
Join Date: Mar 2015
Posts: 417
http://www.pokecommunity.com/showthread.php?t=349122
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 21st, 2015 (5:47 PM).
joeytheleo's Avatar
joeytheleo joeytheleo is offline
 
Join Date: May 2015
Gender: Male
Posts: 44
Thanks, does anyone happen to have the list of safe variables in emerald?
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old May 21st, 2015 (6:53 PM). Edited May 21st, 2015 by joeytheleo.
joeytheleo's Avatar
joeytheleo joeytheleo is offline
 
Join Date: May 2015
Gender: Male
Posts: 44
Follow up question. With the addition of the variables it works that the script starts and the other person runs over to you, but once they arrive the dialogue never starts. Any reason why?

Figured it out
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:11 AM.