Hime Choice Options

I am having a bit of trouble with hime choice options script. Trying to get it to read when the variable is set to a certain number that it disables all three options and only leave the player with one option left. When I interact with the npc, this error pops up:
1687395306308.png

1687395116603.png


what am I doing wrong in the setup? Script: https://himeworks.com/2013/03/choice-options/
Could you try it without the quotes?
Could you try it without the quotes?
Tried that, and it still didn't work.
That was my best guess. Sorry.
Please follow the instructions in the error message and give us the console output of the backtracer you installed. A backtracer can only help with bughunting if you really give its output, otherwise the rtegular error message would have been better.


EDIT:
And in this case your commands are wrong, you need to give a condition in the string - but = is an assignment and not a condition, == is the comparison operator
Or you could upload a demo as well. Sometimes the way you have configured it might be the root cause of your issues. Especially true for that part that you have not published on the main post as of yet.
without seeing the actual error message my best guess is that you are using a loop.
Take out the loop and use labels.
Put the label at the top above the script lines
then put the goto label where you had the loop end.
and use another label / goto label for when you want to get out of the loop
Here is the demo so y'all can see what I am working with atm:
Here is the demo
we doin't need the demo, we need the correct error message.
so go to the editor menu, open the console there, then playtest the game until you get the error message and instead of screenshotting the message with the instructions, give a screenshot of the console.

and did you see my edit to my first post?
because that is definately an error in your scriptlines that needs to be corrected, not matter what else
we doin't need the demo, we need the correct error message.
so go to the editor menu, open the console there, then playtest the game until you get the error message and instead of screenshotting the message with the instructions, give a screenshot of the console.

and did you see my edit to my first post?
because that is definately an error in your scriptlines that needs to be corrected, not matter what else
Fixed the part of the == part and this is the console message:
1687454189195.png

1687454213572.png
OK, it made me laugh a bit.
It seems your game variables have never been used. This means they're equal to 0. Then you're asking them to become an actor or anything else out of the blue. Game variables have no level method by default, thus they will fail.
So I put a branch in to see if when the variable becomes 3 it will disable it and it gave me the same console message. Before the variable was 3 it went through like it was supposed to, but when it got to 3 for the variable, the same console error message popped up.
The number 3 doesn't seem to be the problem here. It should the wrong condition or you replaced the value with anything that isn't a number.
OK, it made me laugh a bit.
It seems your game variables have never been used. This means they're equal to 0. Then you're asking them to become an actor or anything else out of the blue. Game variables have no level method by default, thus they will fail.
Ow. Wow... Hahaha. I didn't even notice that. And I even looked for flaws. 😛

@OP I guess you just should remove the ".level" ftom the formula.
It now actually says: "if Level of variable 1 = 3" and not "if variable 1 = 3"
@slickdeath97
OK, let's ask from the other side:
what do you want the condition to be?

Please describe the exact situation in which the option should be disabled, then we tell you how to write the condition correctly - because even I missed that that level thatz made no sense was there.
Ruby:
# * Fix for Hime Choice Options * #
#   Scripter : Kyonides Arkanthes
#   2023-06-22

class Game_Interpreter
  def hide_choice(choice_num, condition)
    $game_message.set_choice_option(:hidden, choice_num, condition)
  end

  def disable_choice(choice_num, condition)
    $game_message.set_choice_option(:condition, choice_num, condition)
  end
end
@slickdeath97
OK, let's ask from the other side:
what do you want the condition to be?

Please describe the exact situation in which the option should be disabled, then we tell you how to write the condition correctly - because even I missed that that level thatz made no sense was there.
Basically, I want the choices to all be disabled except for the forth choice when the others are all gone through, but I need the forth choice to be disabled first so the player gets the other info before choosing the forth choice. Hope that makes sense.
Ruby:
# * Fix for Hime Choice Options * #
#   Scripter : Kyonides Arkanthes
#   2023-06-22

class Game_Interpreter
  def hide_choice(choice_num, condition)
    $game_message.set_choice_option(:hidden, choice_num, condition)
  end

  def disable_choice(choice_num, condition)
    $game_message.set_choice_option(:condition, choice_num, condition)
  end
end
How exactly is this going to work?
So, what should I do? I am still getting the error and am still lost as of how to fix it. This is what I am aiming for:
Basically, I want the choices to all be disabled except for the forth choice when the others are all gone through, but I need the forth choice to be disabled first so the player gets the other info before choosing the forth choice. Hope that makes sense.
I already provided you with the only thing you needed to add there to solve it. Yet, you ignored it. Not gonna say anything else here.

Original thread: https://forums.rpgmakerweb.com/threads/hime-choice-options.158572/