Is there a way to get the actor var set in a quest script fr

Post » Wed Jun 20, 2012 8:04 am

In Oblivion it was easy to grab variables from a quest script including actor reference like this:


set LocalActorRefVar to MyQuestScript.QuestActorRefVar


(er... I think I have the syntax right on that example, but you get the idea even if I do not.)

Can something like that be done in Skyrim?


I think this (from the Wiki in the Variables and Properties section) may be what I need but I am not exactly getting it. Will this work for an ACTOR REF?

Scriptname mySpellEffectScript extends activemagiceffectmyQuestNameScript Property myQuestRef autoEvent OnEffectStart(Actor akTarget, Actor akCaster)myQuestRef.PublicInt = 20	; This will change the damage for the DamageTargBasedonPublic FunctionmyQuestRef.DamageTargBasedOnPublic(akTarget)  ; You can manipulate this damage by changing PublicDamage Prior to calling itmyQuestRef.DamageTargBasedOnPrivate(akTarget)  ; This will always do 30 damage unless the quest changes the private variableEndEvent
User avatar
lucy chadwick
 
Posts: 3412
Joined: Mon Jul 10, 2006 2:43 am

Post » Tue Jun 19, 2012 10:28 pm

Never mind, I figured it out myself by trying a few random things until one worked. Thanks anyway!
User avatar
Sophh
 
Posts: 3381
Joined: Tue Aug 08, 2006 11:58 pm

Post » Wed Jun 20, 2012 12:09 am

Closed by request.
User avatar
Gaelle Courant
 
Posts: 3465
Joined: Fri Apr 06, 2007 11:06 pm


Return to V - Skyrim