So I have developed a Morale System in which units gain/lose mana if they're attacking/getting attacked respectively. If a unit's mana reaches 0, the attacked and the attacking player gets a text stating that their unit/the enemy's unit has fled. They then promptly disappear from the map.
I want to revamp the system to work in a way such that the fleeing unit doesn't merely disappear, but rather they turn into uncontrollable NPCs that moves in a random direction for awhile before disappearing (so that they don't lag the game). This will add an extra layer of strategy in which you need to take care of your army's morale, otherwise they could turn into panicked obstacles during an ensuing battle and potentially hinder your attack/retreat. Could you guys help me with this?
I want to revamp the system to work in a way such that the fleeing unit doesn't merely disappear, but rather they turn into uncontrollable NPCs that moves in a random direction for awhile before disappearing (so that they don't lag the game). This will add an extra layer of strategy in which you need to take care of your army's morale, otherwise they could turn into panicked obstacles during an ensuing battle and potentially hinder your attack/retreat. Could you guys help me with this?
Last edited: