SephDragoon Posted October 19, 2012 Share Posted October 19, 2012 Alright, so a little background on this. I made a dwemer sphere as a follower. It's working well, except two things. First, I can't get the sphere to use only dwarven armor and weapons, and two, I can't get the special equipment upgrades you can make for him to not be equippable by other people. Here's what I have. Scriptname TheForceHKScript extends ObjectReference Keyword Property ArmorMaterialDwarven Auto Keyword Property WeapMaterialDwarven Auto Actor Property MySelf Auto Ammo Property Arrows Auto Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) If akBaseObject.HasKeyword(ArmorMaterialDwarven) == false && akBaseObject.HasKeyword(WeapMaterialDwarven) == false MySelf.UnequipItem(akBaseObject) EndIf If akBaseObject != Arrows RegisterForUpdate(60.0) MySelf.AddItem(Arrows, 1000 - MySelf.GetItemCount(Arrows)) MySelf.EquipItem(Arrows) EndIf EndEvent Event OnUpdate() MySelf.AddItem(Arrows, 1000 - MySelf.GetItemCount(Arrows)) MySelf.EquipItem(Arrows) EndEventMySelf is the reference to the dwarven sphere, and the materials are self explanatory. Ignore the arrows part. That seems to be working, sort of. Scriptname HKOnlyEquipment extends ObjectReference Actor Property HeichKai Auto Armor Property ArmorItem Auto Weapon Property WeaponItem Auto Event OnEquipped(Actor akActor) If akActor != HeichKai akActor.UnequipItem(ArmorItem) akActor.UnequipItem(WeaponItem) If akActor == Game.GetPlayer() Debug.Notification("Only Heich Kai can equip this.") EndIf EndIf EndEventHeichKai is the reference to the dwarven sphere, and only either armoritem or weaponitem are set, as a reference to the specific piece that you are equipping. I get the message in that one, but the object is still equipped to me. Link to comment Share on other sites More sharing options...
Recommended Posts