[Ace] Hime's choice options script

AoSapphire

Noob - Sage
Veteran
Joined
Oct 23, 2017
Messages
48
Reaction score
38
First Language
English
Primarily Uses
RMVXA
So... I've been looking for some script that would enable me to make more choices or options and found Hime's choice options script and I got to say, it really works well when I use variables. But I have a question.

What do you type in the script call if you were to use switches?

Sure, I can type in;
disable_choice(1,"$game_variables[121] == 0") to disable one of the choices or type;
hide_choice(2,"$game_variables[123] == 0") to hide choices.

But, I would like to know how to script call to hide or disable choices when one of the choice's switch is not on.
Maybe I'm doing it wrong, I'm not really sure.
I used switches, a lot actually. I heard about having two conditions in one script call or something...
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,661
Reaction score
563
First Language
English
Primarily Uses
RMVXA
I don't know if it will work (not setting up a demo to test) but,

You could try a couple of variations and see if they work.

hide_choice(1, "$game_actors[1].level < 5", "$game_variables[121] == 0")
or
hide_choice(1, "$game_actors[1].level < 5"; "$game_variables[121] == 0")
or
hide_choice(1, "$game_actors[1].level < 5" && "$game_variables[121] == 0")
or
hide_choice(1, ("$game_actors[1].level < 5", "$game_variables[121] == 0"))
or
hide_choice(1, ("$game_actors[1].level < 5" && "$game_variables[121] == 0"))
 

AoSapphire

Noob - Sage
Veteran
Joined
Oct 23, 2017
Messages
48
Reaction score
38
First Language
English
Primarily Uses
RMVXA
I don't know if it will work (not setting up a demo to test) but,

You could try a couple of variations and see if they work.

hide_choice(1, "$game_actors[1].level < 5", "$game_variables[121] == 0")
or
hide_choice(1, "$game_actors[1].level < 5"; "$game_variables[121] == 0")
or
hide_choice(1, "$game_actors[1].level < 5" && "$game_variables[121] == 0")
or
hide_choice(1, ("$game_actors[1].level < 5", "$game_variables[121] == 0"))
or
hide_choice(1, ("$game_actors[1].level < 5" && "$game_variables[121] == 0"))
Does those apply when a switch is off? Cause I thought if you want to hide or disable a choice, you would type in $game_switches in the script call...
And I tried those and hide_choice(1, "$game_actors[1].level < 5" && "$game_variables[121] == 0") works fine but it only unhide or able the choice if the conditions are met. Like the character is lv5 and the variable 121 is += 1 or == 1. I want the choice to be hidden or disable when the the switch is off.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,661
Reaction score
563
First Language
English
Primarily Uses
RMVXA
So you want the opposite of what the script does for the condition?
Maybe...
hide_choice(1, "$game_switches[1] == false")
 

AoSapphire

Noob - Sage
Veteran
Joined
Oct 23, 2017
Messages
48
Reaction score
38
First Language
English
Primarily Uses
RMVXA
So you want the opposite of what the script does for the condition?
Maybe...
hide_choice(1, "$game_switches[1] == false")
Oh, I forgot to include those lol. It never crossed my mind...

Anyways, it worked now. Thank you!

Edit: Uh, now I got to figure how to hide the switch when both the switch and variable conditions are met...

You see I'm trying to make a simple quest journal where you can see the active, acceptable and completed lists.

It would be like this:
After accepting the quest from the npc, the choice, let's say "The magic staff " quest, in the acceptable list will be hidden while the choice/quest in the active list will show.

When the quest is done and have reported it to the npc, the choice/ quest will be hidden from the active list while the choice/quest will show in the completed list.

The problem is that the choice/ quest still remains in the active list. I want it be be hidden once more after completing the quest.

I tried adding another script but the quest in the active list shows up even though the conditions have not met yet... I also tried editing the first script where it hides the choice when the switch condition is off but then, it will need to meet to meet the other condition before it shows up in the active list...

Edit again: Nvm! I found the way to make it work!:kaojoy:

I've gone to the "Acceptable list" and changed the script call to:
Code:
hide_choice(1,"$game_variables[121] > 0")
Then set:
Code:
Switch Operation: [0121: q1 on] = ON
Variable Operation: [0121: q1 ms] += 1
On the npc once the quest has been accepted/received.

Then, once the quest is done and had been reported to the npc, set:
Code:
Switch Operation: [0121: q1 on] = OFF
And it worked! The quest in the active list had been hidden once more while the quest in the acceptable list still remains hidden! :kaoblush:
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,242
Members
137,609
Latest member
shododdydoddy
Top