Jump to content

Spell: Script effect question


Oblis

Recommended Posts

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 Target

set Target to GetSelf

 

and i want to set the Spellcaster too (the guy who casts the spell on target)

I tried for this:

 

ref Caster

set Caster to Target.GetBaseObject

 

ref Caster

set 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 NPC

ref Caster

 

Begin ScriptEffectStart

set NPC to GetSelf

set Caster to NPC.GetBaseObject

end

 

 

Begin ScriptEffectFinish

NPC.additem NPCDancingObject1 1

NPC.AddScriptPackage NPCDancing01CurrentLocation

Caster.RemoveScriptPackage NPCDancing01PartnerCurrentLocation

Caster.AddScriptPackage NPCDancing01CurrentLocation

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...