Perk Spell Question

Post » Mon Jun 18, 2012 2:02 am

Seems like I'm inches away from getting this to work, but still a bit lost. I'm adding a shield bleed bash damage. Right now I have this script attached to the shield...

Scriptname BleedScript extends ObjectReferencePerk Property ShieldPerk autoEvent OnEquipped(Actor akActor)akActor.AddPerk(ShieldPerk)EndEventEvent OnUnEquipped(Actor akActor)akActor.RemovePerk(ShieldPerk)EndEvent

The script references to the perk, the perk is set to "Apply Bashing Spell". (with no additional conditions). The spell points to the magic effect (with no additional conditions), and the magic spell was based off the spiked shields effect... It seems right but just doesn't work.

Also, next to my script in the Armor editor is a plus (+) icon, and I noticed the default script icons have a smaller (+) with a pencil, does this mean anything?

Thanks for any help.
User avatar
Angela Woods
 
Posts: 3336
Joined: Fri Feb 09, 2007 2:15 pm

Post » Mon Jun 18, 2012 2:06 am

Try this
Scriptname BleedScript extends ObjectReferencePerk Property ShieldPerk AutoEvent OnEquipped(Actor akActor)Game.GetPlayer().AddPerk(ShieldPerk)End EventEvent OnEquipped(Actor akActor)Game.GetPlayer().RemovePerk(ShieldPerk)End Event
User avatar
Tammie Flint
 
Posts: 3336
Joined: Mon Aug 14, 2006 12:12 am

Post » Mon Jun 18, 2012 12:21 pm

Yes either that or have a look at how "dunTargeOfTheBlooded" does it.
User avatar
Robert DeLarosa
 
Posts: 3415
Joined: Tue Sep 04, 2007 3:43 pm


Return to V - Skyrim