Storing Variables?.. - by Zoro
Zoro on 9/3/2017 at 15:02
Greetings,
I have a question - is it possible to make so a variable would get stored to the next mission...
Say, like if "SheepsSaved" is 3 in miss21, then It's gonna be "SheepsSaved = 3" in miss22 as well.
How It can be done? If custom scriptsets, then what's certain scripts are used? (Thief 2 TMA 1.24)
Thank you...
Oh, and a side-question - did anybody try to make the "secret mission jump" (like instead of miss22 after miss21, you get to miss25). I was wondering if It's still possible to make somehow a non-linear campaigns, but probably not, since KDScript isn't compatible anymore (or I'm probably mistakening with another one?). :(
Nameless Voice on 9/3/2017 at 23:49
Campaign quest variables is what you want, they are carried over between missions.
Yandros on 10/3/2017 at 00:16
How do you write and read them, though? Do just regular QVTraps and QVTriggers work on campaign qvars?
Nameless Voice on 10/3/2017 at 01:06
IIRC, QVTriggers will work with either (it's probably a bad idea to create a variable in each database with the same name).
TrapSetQVar will only set variables in the mission database. You need to either use tnhScript (TrapSetCampaignQVar) or NVScript (NVTrapSetQVar with NVTrapSetQVarCampaign=1) to write to the campaign database.
Also, why <s>is</s> was that parameter not mentioned in my docs?!
Yandros on 10/3/2017 at 01:53
Well its absence is probably part of why I asked the question....
Zoro on 10/3/2017 at 12:31
Thank you for your responses! That should help :)