Additional information:
-The NPC's are supposed to cast their spell all day long, like 24/7.
-I've tried different package flags and none of them made it work.
-The unique spells cost no magicka to cast.
=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=
Original topic "NPC's training magic" and the only response I got:
"I have a bit of a problem with three NPC's I created. They are supposed to cast magic at a target but somehow they simply won't do that. I tried lots of different things with the AI packages but I can't get it to work.
About the spells:
Frost damage spell - Range: Target
Fire damage spell - Range: Target
Shock damage spell - Range: Target
Each NPC casts a different spell, either frost, fire or shock damage. The spell itself has been created for the individual NPC so no other actors make use of it.
The NPC's are supposed to cast their own unique spell at a target specifically asigned to them. However, the base ID of the targets is the same: TargetHeavy01
The NPC's are supposed to walk to their own xMarkerHeading before they will cast their spell at their target.
I've tried all different options in te AI Packages "Cast Magic" and "Use item at" of which the last one is used by some apprentices at the Arcane University.
All in all, it comes down to this: How can I create a properly working AI package for NPC's to cast a spell at a target?"
- - - - - - - - - - - - - - - - - -
"They don't even need a unique spell. You can use the standard ones.
Steps:
1. Add a spell to the NPC's SpellList. You might have done this already.
2. Make your targets persistent references. Since you have more than one of the same type, it will be easier if you give them reference editor ID's.
3. Place an xMarkerHeading in front of each target. Give each a reference editor ID.
4. For each xMarkerHeading, set the XTarget data to the target it should be linked with (the one it's pointing at).
5. Define the NPC's AI package. It's a Use Item At package. Define the schedule as you like. The location is Near Reference and the reference is the xMarkerHeading. The target is the spell. You can define an Object ID that uses a standard spell like StandardFireDamageTarget3Journeyman or your custom spell. OR you can simply select a Object Type and set it to Spells: Range Target or Spells: School Destruction. Lots of options. Have a look at the various NPC's that practice spells like Mraaj Dar or the Mages
Guild apprentices."
=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=