Assign Spells to Combat Roles
Understanding Spell Roles
Your wizard companion needs to know how to use each spell effectively. The mod provides several spell roles that determine when and how your companion casts:
- Enemy: Ranged damage spells cast from distance
- Enemy Close: Short-range spells for nearby threats
- Buff: Supportive spells that help you during combat
Configuring Spells with Commands
Use the command system to assign roles to specific spells:
`
/wizardcompanion <mod> <spell> <type>
`
Replace <mod> with the mod namespace, <spell> with the spell's ID, and <type> with the desired role (Enemy, Enemy Close, or Buff).
For example, assign a fireball spell as an Enemy-type spell so your companion uses it for ranged attacks. Assign a healing spell as Buff-type so they cast it when you're taking damage.
Testing Your Setup
After assigning roles, engage some mobs to see your companion in action. Watch whether they're casting at the right distances and using support spells appropriately. Adjust role assignments if needed to optimize their combat effectiveness.