Hey everyone,
So I am trying to log the player's actions and allow one-time activation of an achievement system I am using.
The system I have in mind is split into the
input script, and the
function that triggers the achievement.
What I stumbled upon is inside the function.
I want to make a string list that takes the parameter given by the input script, checks if the entry exists and if not it creates it and activates the achievement.
That way, each input script has a unique ID and it only triggers once.
I tried using lists and dictionaries but I couldn't get it to work.
I would appreciate if anyone shares a way to do this.
EDIT: the functions ListContains or DictionaryContains always return false for some reason when I check:
gameTracker = NewStringList()
if (ListContains (gameTracker, "chen") ) {
msg ("Entry Exists")
}
else {
msg ("Added")
list add (gameTracker, "chen")
}
msg (gameTracker)