Scriptname PsiNecromancyQuestScript extends Quest Int Property PsiUpkeepcharge autoInt Property PsiHasHastenDead autoInt Property PsiHastenDeadHealthBonus autoQuest Property PsiNecroQuest AutoFloat CheckonceAEvent OnInit() PsiUpkeepcharge = 30 CheckonceA = 0 RegisterForUpdate(5) Debug.Messagebox("Registered")EndEventEvent Onupdate() If PsiNecroQuest.GetStage() == 150 If CheckonceA == 0 PsiHasHastenDead = 1 PsiHastenDeadHealthBonus = 40 Debug.Messagebox("Player Has Gained the Hasten Dead Bonus") CheckonceA = 1.0 Endif Endif If PsiNecroQuest.GetStage() == 10000 UnregisterForUpdate() ; when we're done with it, make sure to unregister Debug.Messagebox("Got what we needed, so stop polling!") EndifEndEventScriptname PsiSummonScript extends activemagiceffect PsiNecromancyQuestScript Property PsiNecroQuest Autofloat Checkonce1Event Oninit() Checkonce1 = 0 Actor target = GetTargetActor() Debug.Messagebox("Summon script is running")EndEventEvent OnEffectStart(Actor Target, Actor Caster) Debug.Messagebox("The Effect is starting") if Checkonce1 == 0 Checkonce1 = 1.0 Debug.Messagebox("Player Charged Magicka Upkeep!") if PsiNecroQuest.PsiHasHastenDead == 1 Target.ModActorValue("Health", PsiNecroQuest.PsiHastenDeadHealthBonus) Debug.Messagebox("The Summon Has been buffed!") Endif Endif Game.GetPlayer().ModActorValue("Magicka", - PsiNecroQuest.PsiUpkeepcharge)EndEventEvent OnEffectFinish(Actor Target, Actor Caster) Checkonce1 = 0 Debug.Messagebox("Player No longer Charged Magicka Upkeep!") if PsiNecroQuest.PsiHasHastenDead == 1 Target.ModActorValue("Health", - PsiNecroQuest.PsiHastenDeadHealthBonus) Endif Game.GetPlayer().ModActorValue("Magicka", PsiNecroQuest.PsiUpkeepcharge)EndEvent Is it possible that I just cannot mod both the player and the target in the same event? or is there a way to declare the target that I have not done. Ive tried several different ways but it either does nothing or gives me a compile error. Ive been working on this for 3 days now with no luck. The only other thing I know to try is maybe put a script on the summon itself which I may do to see if that works But I think it gives me a script that extends objectreference and I don't think you can do ModActorValue in an objectreference script so I need an Actor script... But I'm hoping someone with more experience can just spot my problem here a little more easily.
