HUD Maker – MV Plugin variable conditionals

Discussion in 'Javascript/Plugin Support' started by ravielsk, Jan 1, 2019.

  1. ravielsk

    ravielsk Villager Member

    Messages:
    17
    Likes Received:
    2
    First Language:
    Slovak
    Hello, I just wanted to ask whether its possible to use variable conditionals for HUD elements in http://sumrndm.site/hud-maker/ plugin. More specifically, is it possible to make a certain HUD element appear/change when a variable reaches a specific value? For example a day and night cycle would have a variable with values 1,2,3 and based on the value of the variable it would show a different icon.

    The tutorial here shows how its done with switches:

    But I was unable to find how to do it with specific variable values.

    Thanks in advance for any help.
     
    #1
  2. Silva

    Silva Scoobityboo Veteran

    Messages:
    197
    Likes Received:
    83
    First Language:
    English
    Primarily Uses:
    RMMV
    I don't have the plugin to check this but the syntax is:

    $gameVariables.value(Id) === x
     
    #2
  3. Kes

    Kes Global Moderators Global Mod

    Messages:
    19,401
    Likes Received:
    9,942
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #3

Share This Page