Jun 22 2012, 07:37 AM
I was wondering if it is possible to modify the vocabulary section mid game via script or eventing? Specifically I would like to be able to change the name of currency from "Gold" to "Skill Points," and back from "Skill Points" to "Gold." during certain events mid game (ie: when the player goes to the skill shop)
Is this possible? I feel like it must be, but I do not lack the scripting skills to make it happen.
Jun 22 2012, 04:56 PM
Unrelated, but why would you want to spend gold as skill points? Wouldn't that create confusion as to what is skill points and what is gold? If you wanted to have separate entities for both skill points and gold, you could create another window in the menu screen displaying your skill points as separate to gold... but otherwise I would suggest using gold to buy skills? (if they are equal)
Jun 22 2012, 08:42 PM
The player is technically not spending gold as skill points. I have "skill points" stored as a variable, which I swap out with the gold when I use the skill shop. The player's gold gets stored in a variable temporarily and their "money" becomes equal to the skill points variable for the sake of using the skill shop script that I have, which calls for "spending gold to buy skills." Once the script ends, your remaining skill points are stored in a variable again and the player's money is restored. They are two separate entities, but because of the script that I am using, they both call for occasional use of the "Gold" slot. Therefore, I want to be able to change the word "Gold" to "Skill Points" so the player isn't confused.
Money -> Gold Variable
Skill Points Variable -> Money
Open Skill Shop
Money -> Skill Points Variable
Gold Variable -> Money
I've done something similar to this before, with the casinos in my games. There was an Item called game tokens in Ikode 1 and a variable called casino points in Ikode 3 and I had shops which exclusively used those currencies. However, those shops also called those currencies "Gold." I never figured out how to fix that, I really want to do so.
It might not make sense, but it is tested and it works. The only thing that's missing is the ability to call gold "Skill Points" at certain times.
Jun 23 2012, 03:56 AM
This should work.
$data_system.words.gold = "Skill Points" # put in whatever text you want here
Jun 23 2012, 07:14 AM
Fantastic. Thank you very much