Licence dès 75 €
DE EN FR ES IT CZ

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

Ce sujet date de quelques années. Certains détails peuvent concerner une ancienne version de Visionaire Studio. Tutoriels actuels

  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. Vous travaillez sur un jeu ?

    La version gratuite permet jusqu’à 25 scènes par projet. Pour plus de scènes et pour vendre votre jeu, il vous faut une licence. Les lecteurs du forum obtiennent l’Indie Bundle à 15 % de réduction avec le code FORUM15 : 84,15 € au lieu de 99 €, valable jusqu’au 31/12/2026.

    Profiter de 15 % de réduction Essayer gratuitement
  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.

Ce sujet est fermé, car personne n’a répondu depuis plus d’un an. N’hésitez pas à poser votre question dans un nouveau sujet.

Nouveau sujet

Supprimer vraiment ce message ?