Reset "Values & Conditions" to default

  • #1, by SuroTuesday, 22. April 2014, 08:55 10 years ago
    I have been wondering if there is a function, that eresets all values and all conditions to their "default" value/setting. Meaning, to the setting I set as default when making them.
    Yeah, that's all grin

    Newbie

    36 Posts


  • #2, by afrlmeTuesday, 22. April 2014, 12:26 10 years ago
    Are you talking about resetting them for when the player clicks on new game? or just in general, for debugging purposes?

    If it's in general then you could create called by other actions which contain set condition/value to x when called or you could use Lua & create 2 tables. One containing the name & default state of each condition & same again for each value. Then you would use a for loop & iterate through each entry to set it back to default value.

    * technically I believe it would be possible to have it automatically create the tables on game launch... but it's way too early for me to wrap my head around that *

    If it's for a new game then I have already posted multiple threads on how to go about doing that. check this thread: http://www.visionaire-studio.net/forum/thread/reset-conditio... - you need to add a small pause, which is the same amount of ms as fade in value for the scene (or scenes) before executing the autosave.

    Imperator

    7278 Posts

  • #3, by SuroTuesday, 22. April 2014, 14:33 10 years ago
    Yeah, I was looking for an elegant way to bring a Demo back to the start screen. With the possibility to reset conditions and values.
    The quick save function is actually pretty genius! grin
    Thanks for that!

    Newbie

    36 Posts

  • #4, by afrlmeTuesday, 22. April 2014, 14:38 10 years ago
    no problem smile

    Imperator

    7278 Posts