hankmoody89 Posted July 14, 2013 Share Posted July 14, 2013 in dawnguard,when you enter the soul carin, youre only allowed if soul traped or vampirei wanna add a variable that will allow me to enter if infected with sanguine vampirishere is the script that pertains to the even not sure what to write please help Scriptname DLC1VQ04QuestScript extends Quest ObjectReference Property pDLC1VQ04PortalAreaEffectTriggerRef AutoObjectReference Property pDLC1VQ04VampireToggle AutoGlobalVariable Property pDLC1VQ04BecameVamp AutoGlobalVariable Property pDLC1VQ04SafeToEnter AutoDLC1_NPCMentalModelScript Property MM AutoGlobalVariable Property pDLC1VQ04Ingredient AutoGlobalVariable Property pDLC1VQ04SoulTrapped AutoReferenceAlias Property pDLC1VQ04RNPCAlias AutoDLC1VampireTurnScript Property pDLC1VampireTurn AutoSpell Property pDLC1VQSoulDamage AutoQuest Property pDLC1VQ05SoulGemHandler AutoGlobalVariable Property pDLC1VQ04VampireSolution AutoKeyword Property Vampire Auto Event OnUpdate() if GetStage() == 100if Game.GetPlayer().HasKeyword(Vampire) == 1pDLC1VQ04VampireSolution.SetValue(1)SetStage(111)endifelseRegisterForSingleUpdate(15)endif endEvent Function CheckIngreds() if GetStage() == 60if GetStageDone(70) == 0if pDLC1VQ04Ingredient.GetValue() >= 3SetStage(70)endifendifendif endFunction Function VampireEarly() pDLC1VQ04SafeToEnter.SetValue(1)pDLC1VQ04VampireToggle.Disable() endFunction Function SeranaBite() pDLC1VampireTurn.ReceiveSeranasGift(pDLC1VQ04RNPCAlias.GetActorRef())pDLC1VQ04BecameVamp.SetValue(1)pDLC1VQ04SafeToEnter.SetValue(1)pDLC1VQ04VampireToggle.Disable()pDLC1VQ04PortalAreaEffectTriggerRef.Disable()MM.IsWillingToWait = falseMM.EngageFollowBehavior()pDLC1VQ04RNPCAlias.GetActorRef().EvaluatePackage()Game.EnablePlayerControls()SetObjectiveCompleted(100,1)SetObjectiveDisplayed(120,1) endFunction Function TurnedByOther() pDLC1VQ04SafeToEnter.SetValue(1)pDLC1VQ04PortalAreaEffectTriggerRef.Disable()pDLC1VQ04VampireToggle.Disable()pDLC1VQ04BecameVamp.SetValue(1)MM.IsWillingToWait = falseMM.EngageFollowBehavior()pDLC1VQ04RNPCAlias.GetActorRef().EvaluatePackage()SetObjectiveCompleted(100,1)SetObjectiveDisplayed(120,1) endFunction Function SoulTrapped() pDLC1VQ04SafeToEnter.SetValue(1)pDLC1VQ04VampireToggle.Disable()pDLC1VQ04PortalAreaEffectTriggerRef.Disable()MM.IsWillingToWait = falseMM.EngageFollowBehavior()pDLC1VQ04RNPCAlias.GetActorRef().EvaluatePackage()pDLC1VQ04SoulTrapped.SetValue(1)Game.GetPlayer().AddSpell(pDLC1VQSoulDamage)pDLC1VQ05SoulGemHandler.SetStage(10)Game.EnablePlayerControls()SetObjectiveCompleted(110,1)SetObjectiveDisplayed(120,1) endFunction Function NoLongerAVamp() pDLC1VQ04SafeToEnter.SetValue(0)pDLC1VQ04PortalAreaEffectTriggerRef.Enable()pDLC1VQ04VampireToggle.Enable()pDLC1VQ04RNPCAlias.GetActorRef().EvaluatePackage() endFunction Function IAmVampAgain() pDLC1VQ04SafeToEnter.SetValue(1)pDLC1VQ04PortalAreaEffectTriggerRef.Disable()pDLC1VQ04VampireToggle.Disable()pDLC1VQ04RNPCAlias.GetActorRef().EvaluatePackage() endFunction Link to comment Share on other sites More sharing options...
Recommended Posts