I'm having a little trouble getting this to work, and I'm sure I'm just not calling this right.
Basically, I want a variable to determine what to name my actors.
I have both versions of the names stored in arrays from constants set at the start of the script (in order of the ids they appear in the database from 0-11)
NAMES1 = ["Name1", "Name2", "Name3", "Name4", "Name5"]
NEWNAMES = ["NewName1", "NewName2", "NewName3", "NewName4", "NewName5"]
It's set up just like that for the arrays.
What I need is a call in the script (and where exactly I should place this call) that will read a variable, and based on whether it's 0 (original names) or 1 (new names), or a switch can be used with ON and OFF, change the actor's names to what is set in the array and vice versa.
I know this is easily achieved with events, but for me, this has to be done within a script (it's part of an options menu).
Basically, I want a variable to determine what to name my actors.
I have both versions of the names stored in arrays from constants set at the start of the script (in order of the ids they appear in the database from 0-11)
NAMES1 = ["Name1", "Name2", "Name3", "Name4", "Name5"]
NEWNAMES = ["NewName1", "NewName2", "NewName3", "NewName4", "NewName5"]
It's set up just like that for the arrays.
What I need is a call in the script (and where exactly I should place this call) that will read a variable, and based on whether it's 0 (original names) or 1 (new names), or a switch can be used with ON and OFF, change the actor's names to what is set in the array and vice versa.
I know this is easily achieved with events, but for me, this has to be done within a script (it's part of an options menu).