- Joined
- Apr 26, 2014
- Messages
- 211
- Reaction score
- 39
- First Language
- English
- Primarily Uses
I've finally fixed the bugs in my game that have been giving me fits, so it's time to take on a new one (and maybe learn a little more about some of the functions I haven't used yet).
Much of the magic in my game relies heavily on environmental effects (vegetation, stone, sand, heat level, amount of snow, above/below ground, humidity, ect.) These are all handled by variables that determine the strength of the spell and whether or not it's available.
THAT part is more or less done
----------------------------------------------
What I need now are weather events (possibly several common events, based on the climate in the area). This will be primarily for the Bolt spells (which will deal more damage during a storm).
What I THINK I'd like to do is use a timer. Every 10 minutes, it will set a variable to a number between 1 and 100. If that number is between c & d, it will be sunny. If it's between e & f, it will be rainy (with variations on intensity based on how high the number is).
Problem is, I have no idea how to use the timer properly, nor have I figured out how to get it to loop.
Some ideas would be appreciated.
Much of the magic in my game relies heavily on environmental effects (vegetation, stone, sand, heat level, amount of snow, above/below ground, humidity, ect.) These are all handled by variables that determine the strength of the spell and whether or not it's available.
THAT part is more or less done
----------------------------------------------
What I need now are weather events (possibly several common events, based on the climate in the area). This will be primarily for the Bolt spells (which will deal more damage during a storm).
What I THINK I'd like to do is use a timer. Every 10 minutes, it will set a variable to a number between 1 and 100. If that number is between c & d, it will be sunny. If it's between e & f, it will be rainy (with variations on intensity based on how high the number is).
Problem is, I have no idea how to use the timer properly, nor have I figured out how to get it to loop.
Some ideas would be appreciated.



