- Joined
- Jun 9, 2013
- Messages
- 51
A problem, again. Basically I'm making a complex RPG game, with a lot of maps, like Rexxar's, but this one will be much more complex.
I have made an ability, Steal which is nothing more than what it means: steals gold from the citizens. However, I have decided to add "skill experiences" to the game, which means if you steal a lot, your skill will raise and the shance of success will raise as well. However, like IRL, if you don't practice this skill, it will slowly decrease. For this I've made a timer. This is, however, not as simple as it looks like: Every 120 seconds, the skill level will be lowered by 1, while a successful steal increases it by 3, an unsuccessful by 4. The problem is, when my hero does a successful steal again, I want the timer reset. Do I have to set the timer variable to a value or simply start it again?
I have made an ability, Steal which is nothing more than what it means: steals gold from the citizens. However, I have decided to add "skill experiences" to the game, which means if you steal a lot, your skill will raise and the shance of success will raise as well. However, like IRL, if you don't practice this skill, it will slowly decrease. For this I've made a timer. This is, however, not as simple as it looks like: Every 120 seconds, the skill level will be lowered by 1, while a successful steal increases it by 3, an unsuccessful by 4. The problem is, when my hero does a successful steal again, I want the timer reset. Do I have to set the timer variable to a value or simply start it again?