• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script✓] Multichoice box (more than 7 options)(JPAN)

Shogun

I'll be back
527
Posts
10
Years
Here is my script to have more than 7 options (JPAN). I'm using it in my game cloud white 2 to replace fly.
However, it doesn't work very well. For example I can't go the the second page. If someone as already created a working script for more than 7 options. Is it possible to explain why mien doesn't work
Spoiler:
 
Last edited:

Shogun

I'll be back
527
Posts
10
Years
I believe you need to do a
Code:
compare LASTRESULT 0xX
if 0x1 goto @snip_x
for every single option.

An alternative would be to use this scrolling multichoice option

#org @YESS
setvar 0x8006 0x0
loadpointer 0x0 @1
special 0x25
setvar 0x8006 0x1
loadpointer 0x0 @2
special 0x25
setvar 0x8006 0x2
loadpointer 0x0 @3
special 0x25
setvar 0x8006 0x3
loadpointer 0x0 @4
special 0x25
setvar 0x8006 0x4
loadpointer 0x0 @5
special 0x25
setvar 0x8006 0x5
loadpointer 0x0 @6
special 0x25
setvar 0x8006 0x6
loadpointer 0x0 @7
special 0x25
multichoice 0x0 0x0 0x25 0x0
compare 0x800D 0x0
if 0x0 goto @CANALAVE
compare 0x800D 0x1
if 0x1 goto @FLOAROMA
compare 0x800D 0x2
if 0x2 goto @JUBILIFE
compare 0x800D 0x3
if 0x3 goto @OREBURGH
compare 0x800D 0x4
if 0x4 goto @SANDGEM
compare 0x800D 0x5
if 0x5 goto @PAGE2
compare 0x800D 0x6
if 0x6 goto @BYE
end

but not working...
 
88
Posts
7
Years
  • Age 34
  • Seen Jan 16, 2020
#org @YESS

The if 0xX is not related to the value you are trying to compare to. It is an inequality, using these values
Code:
Lower Than (0x0)
Equals (0x1)
Greater Than (0x2)
Lower than or Equal to (0x3)
Greater than or Equal to (0x4)
Not exactly equal to (0x5)

So you want to do:
Code:
compare 0x800d 0x0
if 0x1 goto @first
compare 0x800d 0x1
if 0x1 goto @second
etc...
 

Shogun

I'll be back
527
Posts
10
Years
The if 0xX is not related to the value you are trying to compare to. It is an inequality, using these values
Code:
Lower Than (0x0)
Equals (0x1)
Greater Than (0x2)
Lower than or Equal to (0x3)
Greater than or Equal to (0x4)
Not exactly equal to (0x5)

So you want to do:
Code:
compare 0x800d 0x0
if 0x1 goto @first
compare 0x800d 0x1
if 0x1 goto @second
etc...

Thanks a lot ! It works perfectly now.
 
Back
Top