Hi all - I've been trying to figure this out for awhile now:
I've done away with exp and would like my character to earn stats by buying them with gold. I plan on having six npcs, each devoted to upgrading a specific stat.
I have this so far: player speaks to npc, "would you like to upgrade HP?," answer yes, event checks if there is enough gold, if there is, HP is upgraded (we'll say, 100 HP per time), then a variable for how many times the player has upgraded HP counts up one.
The problem: how do I make it more expensive each time to upgrade both a single stat, and all stats in general, a la Dark Souls?
Something like this: HP upgrade=price of HP upgrade + (variable x 0.25) is what I'm thinking, but I have no idea how to implement this...
Also, and I'm sure it's possible, just tough to understand, to have all the stats become more expensive, when you buy one:
if player upgrades HP, then HP becomes 0.25 more expensive for the next upgrade, and all other stats become 0.05 more expensive to upgrade. More complicated and not entirely necessary, but it would be cool.
I'm pretty new to actually going into the scripts, so I was hoping to do this with just events...& I appreciate any help or suggestions! : )
I've done away with exp and would like my character to earn stats by buying them with gold. I plan on having six npcs, each devoted to upgrading a specific stat.
I have this so far: player speaks to npc, "would you like to upgrade HP?," answer yes, event checks if there is enough gold, if there is, HP is upgraded (we'll say, 100 HP per time), then a variable for how many times the player has upgraded HP counts up one.
The problem: how do I make it more expensive each time to upgrade both a single stat, and all stats in general, a la Dark Souls?
Something like this: HP upgrade=price of HP upgrade + (variable x 0.25) is what I'm thinking, but I have no idea how to implement this...
Also, and I'm sure it's possible, just tough to understand, to have all the stats become more expensive, when you buy one:
if player upgrades HP, then HP becomes 0.25 more expensive for the next upgrade, and all other stats become 0.05 more expensive to upgrade. More complicated and not entirely necessary, but it would be cool.
I'm pretty new to actually going into the scripts, so I was hoping to do this with just events...& I appreciate any help or suggestions! : )
