Jump to content

Help Charge weapon spell


Syfor

Recommended Posts

I'm working on some spells for Skyrim. Now I understand how to make a spell and how to edit magic effects but I can't seem to get one effect working.

 

I want make a magic effect which adds 50 points to the charge of the weapon the player has equiped in his other hand.

To do this I created this magic effect:

Effect Archetype: Value Modifier

Casting type: Concentration

Delivery: Self

Assoc. Item 1: LeftItemCharge

 

Then I uses this in a spell and set magnitude to 50.

When I cast this spell with right and hold a enchanted weapon Left, the charge of that weapon doesn't change.

 

In the console when I use player.modav LeftItemCharge 50, it does increase the charge of the weapon.

 

Can anyone tell me what I'm doing wrong? I suspect it may be just a broken effect in the creation kit.

 

Also I wonder that if it is indeed broken, how could I possibly get this effect by attaching a script to the magic effect. (I have no experience with Papyrus and there seem to be no turtorials about scripting a magic effect)

 

Help me please!

Link to comment
Share on other sites

Thanks for the reaction steve40, but changing it into a fire and forget spell doesn't work.

 

However, I did discover something interesting. When I use the enchanted weapon and THEN use

the spell to recharge it, it works up till the value it had when it was drawn. So if I use it on a

weapon which has no charge when drawn, the spell has no effect.

 

It seems the only way to solve this problem is by attaching a papyrus script, but I have no idea how

to do that because I have no experience with Papyrus. Can anyone please help me?

Link to comment
Share on other sites

Hmm...instead of using Archetype "Value Modifier" try using "PeakValueModifier".

 

Edit:

 

It the above doesn't work, try this

 

Scriptname ChargeWeapon extends ActiveMagicEffect  

;============================================================

float Property newValue = 50.0 auto

;============================================================

Event OnEffectStart(Actor akTarget, Actor akCaster)
akTarget.ModAV("LeftItemCharge", newValue)
EndEvent
;============================================================

 

EDIT: you might also find this thread helpful.

Edited by steve40
Link to comment
Share on other sites

  • Recently Browsing   0 members

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