19-11-2008, 07:45 AM
This is easy to do.
Add a variable to the spells to hold the length. Then in the cast spell stuff, check for that spell type, target, and then get the time if it's proper. Then in the gameloop, just check that, if the time is still not run out, then the player's stats are enhanced.
Simple.
Add a variable to the spells to hold the length. Then in the cast spell stuff, check for that spell type, target, and then get the time if it's proper. Then in the gameloop, just check that, if the time is still not run out, then the player's stats are enhanced.
Simple.