- Joined
- Jan 25, 2011
- Messages
- 2,289
Hey folks
I am using a turn based combat system in a map of mine.
The turn rotation and actions are working properly but I am having problems with the movement system.
The base idea is that mana works as action points and is consumed when attacking, using item, accessing the inventory and so on.
But I also need it to work for movement.
An example:
A unit has 10 mana points when it becomes his turn. In case of movement he can move 100 units per mana point, which equals to 1000 units if all mana points are to used on movement alone.
But I somehow need to detect when a 100 unit breakpoint has been reached, and at the same time not let the unit stop at odd numbers like 140 units.
I hope you get what I mean.
For now I just need some ideas, so if you have any please share.
I am using a turn based combat system in a map of mine.
The turn rotation and actions are working properly but I am having problems with the movement system.
The base idea is that mana works as action points and is consumed when attacking, using item, accessing the inventory and so on.
But I also need it to work for movement.
An example:
A unit has 10 mana points when it becomes his turn. In case of movement he can move 100 units per mana point, which equals to 1000 units if all mana points are to used on movement alone.
But I somehow need to detect when a 100 unit breakpoint has been reached, and at the same time not let the unit stop at odd numbers like 140 units.
I hope you get what I mean.
For now I just need some ideas, so if you have any please share.