I have the bones of a text-based RPG - the player can progress through a branching storyline and activate some simple events (recieivng/giving/trading items).
As I am designing the battle system (turn-based obviously) I decided it would be nice to have the player be able to "move" during battle - i.e. a heavy armour clad warrior would charge straight up to the foe but the ranger should pick his foes off from a distance and try to move to a better vantage point as the enemy approaches.
Rather than just giving the fleet of foot character a higher probability to dodge an attack (to compensate their lower defence) I wanted to give them the option to move to different points within the area of battle (jump on top of a rock, climb into that tree, etc) to make it more tactical but have become stumped.
Can anyone suggest a way to approach this (pseudo code would be nice)?
I am using C++ to write the program, if anyone wants to know.