The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Emerald help with movement after multiple choice script

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 December 17th, 2017 (9:46 AM).
Ferelheart Ferelheart is offline
 
Join Date: Dec 2015
Gender: Male
Posts: 3
Hello, I am new to scripting with XSE and am having a tough time figuring out how to make a NPC move after asking a yes no question. everything except the movement seems to go off without a problem.

Script:
'---------------
#org 0xE7FBA5
lock
faceplayer
checkflag 0x195
if 0x1 goto 0x8E82E62
msgbox 0x8E83B3D MSG_YESNO '"Do you wish to challange the\nLege..."
compare LASTRESULT 0x1
if 0x1 goto 0x8E82E01
if 0x0 goto 0x8E82E62
'---------------
#org 0xE82E62
msgbox 0x8E82FB2 MSG_NORMAL '"Safe travels."
release
end

'---------------
#org 0xE82E01
msgbox 0x8E82E6D MSG_NORMAL '"Good luck."
setflag 0x195
applymovement 0x17 0x8E83BA1
waitmovement 0x0
release
end


'---------
' Strings
'---------
#org 0xE83B3D
= Do you wish to challange the\nLegendary Trial? Once you enter\lyou cannot escape till its\lcomplete.

#org 0xE82FB2
= Safe travels.

#org 0xE82E6D
= Good luck.


'-----------
' Movements
'-----------
#org 0xE83BA1
#raw 0xA 'Step Left (Normal)
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old December 17th, 2017 (4:14 PM). Edited December 17th, 2017 by Avara.
Avara's Avatar
Avara Avara is offline
 
Join Date: Dec 2011
Gender: Female
Nature: Relaxed
Posts: 1,305
Is the "person event number" for your OW #17 in A-map? If so, you'll want to change this to 11 in your script - you need to convert it from decimal to hex. Using 17 would make the OW with a person event number of 23 move. XSE has a handy built in dec/hex converter if you get stuck!
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old December 17th, 2017 (4:55 PM).
Ferelheart Ferelheart is offline
 
Join Date: Dec 2015
Gender: Male
Posts: 3
Thank you for the quick reply,
it worked and your explanation makes sense.
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:15 AM.