Jump to content

Creating an Enchantment through script


RedNinja029

Recommended Posts

Hello everyone,

 

I am fairly new to modding but have some experiences mainly in creation kit through skyrim.

 

Today I want to create an enchantment for a sword that drains health for a couple of seconds per hit for say 1 HP a second

I wish to use this for my vampire character and want this enchantment to reflect a never ending/not necessary to recharge enchantment through script (so other enchantments may be added still)

 

So far I have my sword ready,

 

-Temper recipe created

-magic effect is copy pasted from the drain health and just renamed with a base cost of 0 incase (thats all ive changed)

-an enchantment linking the magic effect

 

I have also added in the magic effects the scripts for for example (If race = orc /elf /breton blah blah) it will drain health

 

purpose being I don't want to drain blood from skeletons (immersion)

 

so going back to my sword... the bottom right corner is a script box

how do I set it up bit by bit so I can attach it all to my sword?

 

any tutorials by advise links etc will be much appreciated. I have no idea how to scipt this in. Im not familiar and nor could i find any videos as well.

 

thanks all

Link to comment
Share on other sites

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

The only real option is to add a cloak ability to the character that detects when an npc gets hit by the sword wielder. You could do it with a perk if you don't mind it being player-only, but then it would also conflict with many perk mods. Either will work but which is preferable is a matter of judgment.
Link to comment
Share on other sites

UPDATE:

 

I have created a condition identical to Harkons in the magic effect CONDITION that check if i am a vampire.

 

Target function name comp value

T keyword: 'vampire' ==== 1.0000

 

I have applied this and also copied ysgramors (wuuthrad) conditions and added the other playable races, trolls and giants (only take blood from humanoids)

 

Target function name function info comp value

 

S GetIsRace Race Highelf == 1.00 or

" " next race etc " " or

 

and so on

 

well I can see there is a perk thats enabled when the weapon is activated for the ysgramor

what I am missing is the concept between linking the perk to the weapon/actor while equipped

 

the perk of ysgramor adds the weapon +20% and maybe I could make "A" perk to enable the enchantment???

 

but how do i link equipping the blood omen sword to actually enabling the (not yet made) perk which enables the "WnchWeaponBloodOmen" enchantment. which wouldenable the "EnchBloodOmenFFContact" magic effect

 

I can't see any script on Ysgramor weapon other than this (see below) which i dont understand anyway really. even if i could where does it say in the perk or script to activate the enchantment.

 

its baffling (papyrus n00blet)

-------------------------------------------

 

Scriptname WuuthradScript extends ObjectReference
Perk Property WuuthradPerk auto
Event OnEquipped(Actor akActor)
akActor.AddPerk(WuuthradPerk)
EndEvent
Event OnUnEquipped(Actor akActor)
akActor.RemovePerk(WuuthradPerk)
EndEvent

 

------------------------

 

thats on wuuthrad (ysgramor)

I really am trying to understand this, I would be very appreciative if someone could help. This is maybe my 3rd attempt at this now

 

ideas anyone?

Edited by RedNinja029
Link to comment
Share on other sites

im trying to absorb the health of certain enemies which means as i hit them as well as base damage etc ithe effect will drain health every time i strike fromtheir HP to mine.

 

Going through different channels on youtube dark fox and T.A.P mainly but I've found other half helpful sources hidden well away but nothing apparent. Spent maybe 8 hours+ today figuring it out along with a few days on top with the same sort of time. I cant find what I need anywhere if its even possible

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...