The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Jpan MultiChoice help

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 October 2nd, 2018 (8:45 AM). Edited October 2nd, 2018 by arandomtrainer.
arandomtrainer arandomtrainer is offline
 
Join Date: Sep 2018
Posts: 4
Ok thanks to koople i understand it now its simple heres my working test script

Spoiler:
#dynamic 0x9AF290
#org @start
lock
setvar 0x8006 0x0
loadpointer 0x0 @1
special 0x25
setvar 0x8006 0x1
loadpointer 0x0 @2
special 0x25
setvar 0x8006 0x2
loadpointer 0x0 @3
special 0x25
preparemsg @msg
waitmsg
multichoice 0x0 0x0 0x21 0x0
compare lastresult 0x0
if 0x1 goto @first
compare lastresult 0x1
if 0x1 goto @second
compare lastresult 0x2
if 0x1 goto @third
release
end

#org @1
= 1

#org @2
= 2

#org @3
= 3

#org @msg
= old man: ok this is gunna work\nhopefully.

#org @first
warp 0x5 0x0 0xFF 0x09 0x03
release
end

#org @second
warp 0x5 0x0 0xFF 0x09 0x03
release
end


#org @third
warp 0x5 0x0 0xFF 0x09 0x03
release
end

This is for anyone else having trouble. sorry for the dumb question






Things of the past
Spoiler:
ok i just dont understand how to use this Multi choice script in Jpans hacked engine.

(Script works as it shows the choices like it should)
Spoiler:
#dynamic 0x9AF290
#org @start
lock
setvar 0x8006 0x0
loadpointer 0x0 @1
special 0x25
setvar 0x8006 0x1
loadpointer 0x0 @2
special 0x25
setvar 0x8006 0x2
loadpointer 0x0 @3
special 0x25
multichoice 0x0 0x0 0x21 0x0
release
end

#org @1
= Spot 1

#org @2
= spot 2

#org @3
= spot 3

Now this script ^ works like it should it shows all three options and you can select them and nothing happens.

the delima im having is adding functions to them it just dosent make sense to me i have read the Jpan firered hacked engine for dummies thread here many times and the doc file idk im just stuck.

its definetly because im not the best at this.

heres some example scripts if it helps in seeing what i want to achieve and what im doing wrong.

example broken script 1
Spoiler:
#dynamic 0x9AF290
#org @start
lock
setvar 0x8006 0x0
loadpointer 0xBB10B9 @1 <--------------i tried to do like a repoint method (warp script offset: 9B01BB)
special 0x25 (^ already compiled script)
setvar 0x8006 0x1
loadpointer 0x0 @2 <--------------------------------- (left the next two alone was just testing it)
special 0x25
setvar 0x8006 0x2
loadpointer 0x0 @3
special 0x25
multichoice 0x0 0x0 0x21 0x0
release
end

#org @1
= K1

#org @2
= J2

#org @3
= H3

now anyone that knows how this works is prob laughing because they know i couldent even compile it.
Loadpointer Command can only take values 0x0-0xFF (From what i learned idk what this is at all really)
[the script is a warp script BTW] dont think that matters


example broken script 2
Spoiler:
#dynamic 0x9AF290
#org @start
lock
setvar 0x8006 0x0
loadpointer 0x0 @1
special 0x25
setvar 0x8006 0x1
loadpointer 0x0 @2
special 0x25
setvar 0x8006 0x2
loadpointer 0x0 @3
special 0x25
multichoice 0x0 0x0 0x21 0x0
release
end

#org @1
= K1
warp 0x5 0x0 0xFF 0x09 0x03
release
end

#org @2
= J2

#org @3
= H3

I knew this wouldnt work but you miss all the shots you dont take. ive never put commands in a raw text field before so i figured it was broken. That warp command is what i want K1 to do.

should i be using special 0x24?
is it the loadpointer command?
[^Probably the thing like 80% sure because im so uninformed on how it works]
i just cant find anything on loadpointer and multi choice if anyone could help would be appreciated.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 2nd, 2018 (8:57 AM). Edited October 2nd, 2018 by Koople.
Koople's Avatar
Koople Koople is offline
 
Join Date: Nov 2016
Nature: Relaxed
Posts: 88
Quote:
Originally Posted by arandomtrainer View Post
----
You need:
Code:
<setvar/loadpointer/special 0x25>
preparemsg @msg
waitmsg
multichoice 0x0 0x0 0x2x 0x0
compare lastresult 0x0  // first choice selected
if 0x1 goto @first
etc...
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 2nd, 2018 (9:02 AM). Edited October 2nd, 2018 by arandomtrainer.
arandomtrainer arandomtrainer is offline
 
Join Date: Sep 2018
Posts: 4
thanks for the quick reply i see compare last result in there wow i feel so dumb thank you idk why i didnt think to try that ty.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old October 2nd, 2018 (9:22 AM). Edited October 2nd, 2018 by arandomtrainer.
arandomtrainer arandomtrainer is offline
 
Join Date: Sep 2018
Posts: 4
Solved
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:17 AM.