Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

jquinn914

Allies
  • Posts

    1
  • Joined

  • Last visited

Posts posted by jquinn914

  1. Scriptname spellscostingstamina extends Actor

    {Causes spells to cost stamina}
     
    FormList Property SpellForm Auto
    VisualEffect Property FX Auto
    Perk Property drainperk Auto
     
    Event OnSpellCast(Form akSpell)
     
    If (Game.GetPlayer().HasPerk(drainperk))
        
        If(SpellForm.hasForm(akspell))
     
            Game.GetPlayer().DamageActorValue("stamina",(game.getplayer().getbaseactorvalue("Magicka")) - (game.getplayer().getactorvalue("Magicka")))           
     
    FX.Play(game.getPlayer())
     
            EndIf
     
    Endif
            
    EndEvent
×
×
  • Create New...