yungnine Posted December 3, 2012 Share Posted December 3, 2012 I am trying to create a mod that fits into an RPG immersion style mod for a Vampire that is aligned with Serana's faction. I was impressed with the we're outside put the hood up that Serana does and began investigating with the CK on how bethesda scripted this. Now my problem is I'm really good at tracking this kind of stuff down, but my scripting knowledge is limited. The following is the section of the script that writes Serana's behavior of putting the hood up, if anyone could help me with adapting this to fit with a player who is a vampire and wearing the vampire royal robes, and how to set it up as data file for a valid mod it would be greatly appreciated. FormList Property SunDamageExceptionList auto Armor Property VampArmor auto Armor Property Hoodie auto Function CheckOutfit() Actor rnpcActor = RNPC.GetActorReference() bool shouldWearHood = false if (rnpcActor.IsInInterior()) shouldWearHood = false ; redundant line is redundant else WorldSpace currentSpace = RNPC.GetReference().GetWorldSpace() if (SunDamageExceptionList.Find(currentSpace) < 0) shouldWearHood = true else shouldWearHood = false endif endif ; put on hood if we're outside if (!shouldWearHood) if (rnpcActor.IsEquipped(VampArmor) && rnpcActor.IsEquipped(Hoodie)) Debug.Trace("RNPC: Inside, taking off hood.") ; rnpcActor.UnEquipItem(Hoodie) ; Ricky says this is no longer needed rnpcActor.RemoveItem(Hoodie) endif else if (rnpcActor.IsEquipped(VampArmor) && !rnpcActor.IsEquipped(Hoodie)) Debug.Trace("RNPC: Outside, putting on hood.") rnpcActor.AddItem(Hoodie) rnpcActor.EquipItem(Hoodie) endif endif EndFunction Link to comment Share on other sites More sharing options...
yungnine Posted December 3, 2012 Author Share Posted December 3, 2012 *bump* Link to comment Share on other sites More sharing options...
yungnine Posted December 4, 2012 Author Share Posted December 4, 2012 bump Link to comment Share on other sites More sharing options...
Recommended Posts