Jump to content

Photo

Adding Speed Boost to Vampire Lord (Floating)

vampire lord speed magic effect active effect

  • Please log in to reply
No replies to this topic

#1
Durza101

Durza101

    Journeyman

  • Members
  • Pip
  • 40 posts

Hello!

As the title describes, I am trying to apply a speed boost to the Vampire Lord, but only when floating!
I am looking at dlc1vampirechangescript, and the way I figured it would work is add a spell (ability) that is a constant effect modifier (Added the spell via console and verified that the spell itself is not the problem!)

So I figured adding the spell when it adds and equips spells when levitating would be the answer!
 

If akEventName == Levitate
		Debug.Trace("VAMPIRE: Handle LevitateStart")
		DCL1VampireLevitateStateGlobal.SetValue(2)

;		Always equip a Vampire Drain in the right hand.
		PlayerActor.EquipSpell( LeveledDrainSpell, 1 )

And remove it when it goes to ground:
 

 
 		If akEventName == Ground
			Debug.Trace("VAMPIRE: Handle GroundStart")
			DCL1VampireLevitateStateGlobal.SetValue(1)
			
;			Save off the spell currently equipped in the left hand.
			CurrentEquippedLeftSpell = PlayerActor.GetEquippedSpell(0)
			debug.trace("VAMPIRE: saving equipped left spell " + CurrentEquippedLeftSpell)
			if ( CurrentEquippedLeftSpell != None )
				PlayerActor.UnequipSpell( CurrentEquippedLeftSpell, 0 )
				
			endif
 
 

But its not adding the spell or removing it if I add it manually, and I am at a bit of a loss.
Anyone able to help me with this?


Edited by Durza101, 04 February 2021 - 12:25 PM.






Also tagged with one or more of these keywords: vampire lord, speed, magic effect, active effect

IPB skins by Skinbox
Page loaded in: 0.914 seconds