- 4
- Posts
- 6
- Years
- Seen Mar 21, 2019
Ok thanks to koople i understand it now its simple heres my working test script
This is for anyone else having trouble. sorry for the dumb question
Things of the past
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
#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)
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
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
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.
(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
#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
#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
#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.
Last edited: