So I'm following Slip into Ruby to try to create a window that will work like a character database, giving information on the characters that the player will encounter in my game. This is primarily so I can make it look how I envision it, rather than fighting with other scripts.
However, I've run into a small snag. I want the player to be able to customize their character a bit (their name, gender, etc.), so I've left the name of the first actor blank. When the game starts up, the player inputs a name for the character. However, in the database, I can't figure out how to get the first entry to no longer be blank. Do I need to set a variable that holds the new name? And how would I call that?
I included a couple of screenshots to illustrate what I mean. I have a quickstart set up that creates a "default" character with a proper name and whatnot, but it doesn't reflect in the database. The only thing I can think is that the value isn't changed in $data_actors. Is there a script call to set that?
Note, I'm an absolute novice with Ruby. I'm basically customizing the Bestiary script from Slip Into Ruby.
However, I've run into a small snag. I want the player to be able to customize their character a bit (their name, gender, etc.), so I've left the name of the first actor blank. When the game starts up, the player inputs a name for the character. However, in the database, I can't figure out how to get the first entry to no longer be blank. Do I need to set a variable that holds the new name? And how would I call that?
I included a couple of screenshots to illustrate what I mean. I have a quickstart set up that creates a "default" character with a proper name and whatnot, but it doesn't reflect in the database. The only thing I can think is that the value isn't changed in $data_actors. Is there a script call to set that?
Note, I'm an absolute novice with Ruby. I'm basically customizing the Bestiary script from Slip Into Ruby.