Like it is pretty common when creating new .dlg lines, I find myself in need of having some replies appear only once and cannot use the "k_con_talkedto"/"k_act_talktrue" combo.
This seems to be ideal for local booleans so this is what I did. I created two simple scripts. The first a conditional:
int StartingConditional() {
if (GetLocalBoolean(OBJECT_SELF, 53) == 0) {
return 1;
}
else {
return 0;
}
}
The second a variable set:
void main() {
SetLocalBoolean(OBJECT_SELF, 53, 1);
}
When I tested it, it did work but I am not sure I am not doing anything wrong.
First question is: where am I actually storing the variable?
Second question: is 53 a good choice? I am not sure I understood how some numbers are "reserved" by the game and shouldn't be used?
If someone could shed some lights, it'd be great.
Thanks!