Jump to content

Need help in the CK


lagarst

Recommended Posts

I'm trying to create a power with the speedmult association, yet every time i try and cast the power, nothing happens, if i set it as an a ability then it works but i don't want it to be on all the time. Now what am i doing wrong? can someone please help me? thank you

Link to comment
Share on other sites

If you add an effect to a character that alters speedmult, the character will continue to move at the normal speed until something triggers the game to recalculate the character's speed. Two examples are drawing/sheathing weapons or adding/removing items from inventory. Basically you need to add a script to your spell that places a small, non-zero weight item into the character's inventory for the duration of the spell, then removes it when the effect ends.

Link to comment
Share on other sites

Scriptname FrostSlowFixScript extends activemagiceffect  
{Tweaks the target's carry weight slightly to ensure the slow effect occurs.}

MiscObject property FrostSlowFixItem auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

	utility.wait(0.1)
	akTarget.AddItem(FrostSlowFixItem, 1, true)

endEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)

	utility.wait(0.1)
	akTarget.RemoveItem(FrostSlowFixItem, 999, true)

endEvent

You have to promise to come back and tell me if it works. Do you know how to get it into the CK?

Edited by lofgren
Link to comment
Share on other sites

  • Recently Browsing   0 members

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