Equip Added Leveled Items?

Post » Tue Mar 15, 2011 2:04 am

Hello there. I am trying to make a "sparring partner" mod that's a bit more specific then the Battlehorn Castle orc one - namely, in that you can control what combonation of armor, weapons, spells, and potions he uses with activators. In the example script (for the heavy helmet leveled list) CombatBud is the RefID of the sparring partner and TCLCBHelmHeavy is the leveled list for what type of heavy armor helmets he gets (Iron at 1, steel at 3, Dwarven at 6, etc).

scriptname HelmCombatbegin OnActivateCombatBud.additem TCLCBHelmHeavy 1end


So I tested this script in-game with the activator, and it seems to look just fine... except that my CombatBud doesn't equip his helmet. Not even if I attack him does he put it on. There's nothing in his inventory beforehand, so nothing is taking priority.

Can someone help me out with a script that makes him equip his item? I've tried using EquipItem TCLCBHelmHeavy 1, but that doesn't work. The only possible thing I can think of is adding

CombatBud.equipitem IronHelmet 1CombatBud.equipitem SteelHelmet 1CombatBud.equipitem DwarvenHelmet 1CombatBud.equipitem OrcishHelmet 1CombatBud.equipitem EbonyHelmet 1CombatBud.equipitem DaedricHelmet 1


before the end block. Can somone help me out?
User avatar
jenny goodwin
 
Posts: 3461
Joined: Wed Sep 13, 2006 4:57 am

Post » Tue Mar 15, 2011 3:39 am

Have you tried giving him all the equipment while his current AI package is "Armor unequipped" and then changing to an "equipped" one and using EvaluatePackage?
User avatar
Richard Thompson
 
Posts: 3302
Joined: Mon Jun 04, 2007 3:49 am

Post » Mon Mar 14, 2011 3:32 pm

Have you tried giving him all the equipment while his current AI package is "Armor unequipped" and then changing to an "equipped" one and using EvaluatePackage?



Come to think of it I haven't given him any AI packages. How would I go about using this script?
User avatar
Vivien
 
Posts: 3530
Joined: Fri Apr 13, 2007 2:47 pm


Return to IV - Oblivion