Oblis Posted September 9, 2012 Share Posted September 9, 2012 Hello,I have created a spell (Touch / script effect) that an Actor will cast to an other (the player has nothing to do) So I made the target: ref Targetset Target to GetSelf and i want to set the Spellcaster too (the guy who casts the spell on target)I tried for this: ref Casterset Caster to Target.GetBaseObject ref Casterset Caster to Target.GetActionRef but none is working properly. I want to ask how i shall get the caster ref to be used in spell too? Here is my script too: scriptname NPCDancingSpellScript ref NPCref Caster Begin ScriptEffectStartset NPC to GetSelfset Caster to NPC.GetBaseObjectend Begin ScriptEffectFinishNPC.additem NPCDancingObject1 1NPC.AddScriptPackage NPCDancing01CurrentLocationCaster.RemoveScriptPackage NPCDancing01PartnerCurrentLocationCaster.AddScriptPackage NPCDancing01CurrentLocationEnd Link to comment Share on other sites More sharing options...
cfh85 Posted September 10, 2012 Share Posted September 10, 2012 why do you want to reference the caster? it helps to give as much info into what you're trying to do as possible. Depending on your aims, maybe you could add an script to a separate effect in the spell that is set to self? Link to comment Share on other sites More sharing options...
cfh85 Posted September 11, 2012 Share Posted September 11, 2012 what are you using to force the NPC to cast the spell? also, given what it looks like you're do it should be a simple case of creating two scripts and having two effects within your spell.One, on touch and on on self... Link to comment Share on other sites More sharing options...
Recommended Posts