License from €75
DE EN FR ES IT CZ

Automatically play of a script when a condition was set to true?

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 14 years ago
    Would it be possible to automatically play a script when a condition was set to true?

    In my case i have different values for the underground - like "wood", "gras", "stone" and so on. When i set the condition of wood to "true" automatically all other values should be set to "false".

    How could this be done?
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.

    Get 15 % off Try it for free
  3. · 14 years ago
    for me I would have a "call by other action" with all of the values set as false ... then after calling this add a very short "pause" for 10ms or something quick & then change value/condition to new one.

    Ideally, if you are only needing one value at a time, then I would recommend using a single value & changing the integer value to determine what should happen.
  4. · 14 years ago
    This is what i do right now. But its not the best solution because i could misinterpret the value wink The name of the condition would be much clearer
  5. · 14 years ago
    You can use LUA to set & retrieve string values ...
    In essence you could use a single value & set the string value for it with LUA & then with LUA retrieve the value in a function to determine which floor type you are currently standing on ...

    of which you could have it perform the required actions with LUA or execute a "called by other action" action part.

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?