Saltar al contenido principal

Búsqueda

How do I get a persisting on/off or yes/no variable?

  • mmdev3 - Pablo and Rich

    Could you use a "0" for a no and a "1" for a yes?
    Pablo

  • Bella_Iris

    I'm not really sure.... How would I use gadgets in a way that would translate the 0 to a no and 1 for a yes? I need to get it to where dialogue prompts only appear after the player completes an event in another scene. The reason I am trying to use variables is because I know of no other gadget that persists in dreams between scenes.

  • mmdev5 - Liam

    Hey,

    As Pablo says, the way to do this is to use the number value.

    It starts at 0, so this would be your "no" state. When the variable is zero, the player hasn't completed the event in the other scene. If you plug the value of this variable into the power of your dialogue prompts, it will set their power to zero, so they'll be disabled.

    Then, when the player completes the event, you set it to 1. Now, anything that variable is wired into will get a positive signal -- if you wire it into the power of your dialogue logic then it will turn on, because the player completed the event.

    Hope that helps :)

    - Liam

Iniciar sesión para dejar un comentario.