Jump to content

possible to create an ability that increases speedmult on certain race


Deleted4621232User

Recommended Posts

i can get a spell that you cast to increase speed easily, that's fine

 

is there a way to create a magic effect or enchantment that you can then set as a default racial ability so that race A walks faster than race B

 

and if i need a script to do that, any help there would be great since i'm not big on scripting

Link to comment
Share on other sites

You could create a magicEffect of Archetype Script, then attach this script.

I haven't tested this particular script, but it's based on a working script of mine.

The default multiplier is 2.0 (double speed). You can change this value by right-clicking the script after it is attached to the MagicEffect, then choose "Properties", then change the value of "Multiplier". Hopefully the script will compile without errors.

 

 

Scriptname MultiplySpeed extends ActiveMagicEffect  
{Modifies the NPC's speedmult by a multiplier and restores it when the effect ends}

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

float origSpeedmult			; stores the original AV value.
float Property Multiplier = 2.0 auto		; the stat multiplier. Assign a value to this property in the CK.

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

Event OnEffectStart(Actor akTarget, Actor akCaster)
       origSpeedmult = akTarget.GetAV(speedmult)
akTarget.ForceAV(speedmult, origSpeedmult * Multiplier)
EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
       akTarget.ForceAV(speedmult, origSpeedmult)
EndEvent

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

 

Edited by steve40
Link to comment
Share on other sites

I've got it working for Khajiits. I'll upload it soon.

Feline Agility = +20 movement speed and jump height, and

Feline Reflexes= attack speed is raised 1.2 (120%? idk)

 

Sadly, unarmed attack speed is not counted for that.. =/

~ is currently playing an unarmed Khajiit... :l ~

Link to comment
Share on other sites

  • Recently Browsing   0 members

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