Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Reset "Values & Conditions" to default

  • #1, by Suro 12 years ago Zitieren
    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
  • #2, by afrlme 12 years ago Zitieren
    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.
  • #3, by Suro 12 years ago Zitieren
    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!
  • #4, by afrlme 12 years ago Zitieren
    no problem smile