Let's say I want to create some random characters. One way to do this, in my twisted imagination, is making a $namecreate variable that creates one name, then I would make it dump that name in another variable specific for that character (let's say it created a bartender, and dumped his name to a variable with the name of the character)
Is there a way for a story to generate, or at least rename, variables along the way?
Or is there another way to create this effect for the player?
Comments
eg. rename the $namecreate variable to now be $bartender.
If that is the case then the simple answer is: No.
Although you could use a (datamap:) to simulate the effect: Both the namecreate and bartender properties of the $npcs Object have the same value.
But there is a problem with what you want to do, how will you (the Author) use the $bartender variable within your story if you don't know what the variable's name is when you are writing the story!
Instead you could just use two generic variables like $playerName and $playerJob to store the Reader's chosen name and job.