Jump to content

Photo

How to add a spell (script?) to an armor?

armor script

  • Please log in to reply
1 reply to this topic

#1
Gekoeko

Gekoeko

    Journeyman

  • Members
  • Pip
  • 24 posts

Hello. I am looking to add a "conjuration spell" to an armor. Think the 'Rat King' perk from 'Ordinator'. It summons three undead skeevers when combat is engaged. 

 

I would like to replicate that effect or something similar, with wolves, but placing it in an armor. As in, the effect will take place as long as your wearing the armor. Can anyone give me any directions/tips on how would I go about creating something like that? 


Edited by Gekoeko, 18 October 2021 - 03:09 AM.


#2
dylbill

dylbill

    Resident poster

  • Premium Member
  • 2,654 posts

Here's how I would do it. Put a custom enchantment on the armor. Make the enchantment's magic effect the script archetype. Put the condition IsInCombat == 1 on the enchantment spell in the Creation Kit. That way, the enchantment only becomes active when the wearer starts combat. Then you can put a simple script on the enchantment's magic effect. Something like this: 

 

Scriptname TM_MagicEffectScript extends ActiveMagicEffect 

ActorBase Property SummonedActor Auto

Event OnEffectStart(Actor akTarget, Actor akCaster) 
    akTarget.PlaceActorAtMe(SummonedActor, 3)
EndEvent

Change the script name to something else. You also might be able to just use the Summon archetype for the magic effect, but I'm not sure if that works for enchantments.







Also tagged with one or more of these keywords: armor, script

IPB skins by Skinbox
Page loaded in: 1.147 seconds