Plantation quest flags

Some12yearold

Member
Mar 6, 2017
23
0
74
i made the mistake of taking the amber idol, forcing the zil tribe to fight me and i forgot to backup a safe file before it happened.

i wonder if anyone knows the flags to reverse the whole quest so i can do a retry without having to create a new safe
 

DrunkZombie

Well-Known Member
Moderator
Apr 12, 2018
1,564
877
Minnesota, USA
Never used the editor so I don't know what the interface is like. Either deleting it or setting it to undefined should work
 

Karretch

Well-Known Member
Aug 26, 2015
2,063
301
You can't set it as undefined because flags in the game are based on numbers and "undefined" by the engine just checks if it exists at all with any number. You have to delete the flag to have it not exist for the game to reinitiate a scene.
 

DrunkZombie

Well-Known Member
Moderator
Apr 12, 2018
1,564
877
Minnesota, USA
A flag is undefined if it doesn't exist or exist but has not been assigned a value. You could write the code
Code:
flags["PQ_TOOK_AMBER"] = undefined;
and the flag would now be undefined.

I do it sometimes when I need a quick way to test code and don't have a test character with the needed flag undefined.