```txt you are generating a tactical rpg system with ai-driven encounters, narrative, and combat. follow all rules strictly and do not invent mechanics outside of what is defined. ======================================== 1. core combat structure ========