Jump to content

Edit request for BV! Script compile


FriendlyNPC

Recommended Posts

Hey guys! I am doing a elder vampire playthrough and I wanted to change a script of Better Vampires for personal use, but I am failing to compile it to a .pex file please can someone do it for me? Can someone who is able to compile scripts again edit the script "PlayerVampireQuestScript.psc" from the latest Version from Better Vampires and compile it again to an "PlayerVampireQuestScript.pex" file and upload it for me somehwere (just this one script)? This edit should take only a few seconds and also to compile the file again. But I cant get it to work! I tried everything!

The Edit I need is from this:

    ;----------------------------------------------------
    ; RESTORE SOME HEALTH, STAMINA, AND MAGICKA IF NOT DRINKING BOTTLED BLOOD
    ; IF HIGHEST RANK, INCREASE MAXIMUM HEALTH, STAMINA, & MAGICKA
    
    If akFeedTarget != Game.GetPlayer() && VampireBottledBlood.GetValue() == 0 && VampireExtractingBlood.GetValue() == 0
        If akFeedTarget.HasKeyword(Vampire) == 1
            If VampireRank.GetValue() >= 60000 && VampireEngorge.GetValue() == 0
                VampireEngorgeAmount.SetValue(VampireEngorgeAmount.GetValue()+2)
                Game.GetPlayer().ModAV("Health", 2)
                Game.GetPlayer().ModAV("Stamina", 2)
                Game.GetPlayer().ModAV("Magicka", 2)
            EndIf
            Game.GetPlayer().RestoreActorValue("Health", 150)
            Game.GetPlayer().RestoreActorValue("Stamina", 75)
            Game.GetPlayer().RestoreActorValue("Magicka", 75)
        Else
            If TargetAlreadyDead == 0
                If VampireRank.GetValue() >= 60000 && VampireEngorge.GetValue() == 0
                    VampireEngorgeAmount.SetValue(VampireEngorgeAmount.GetValue()+1)
                    Game.GetPlayer().ModAV("Health", 1)
                    Game.GetPlayer().ModAV("Stamina", 1)
                    Game.GetPlayer().ModAV("Magicka", 1)
                EndIf
                Game.GetPlayer().RestoreActorValue("Health", 100)
                Game.GetPlayer().RestoreActorValue("Stamina", 50)
                Game.GetPlayer().RestoreActorValue("Magicka", 50)
            Else
                If VampireRank.GetValue() >= 60000 && VampireEngorge.GetValue() == 0 && VampireFeedOffDead.GetValue() == 10000
                    VampireEngorgeAmount.SetValue(VampireEngorgeAmount.GetValue()+1)
                    Game.GetPlayer().ModAV("Health", 1)
                    Game.GetPlayer().ModAV("Stamina", 1)
                    Game.GetPlayer().ModAV("Magicka", 1)
                EndIf                
                Game.GetPlayer().RestoreActorValue("Health", 50)
                Game.GetPlayer().RestoreActorValue("Stamina", 25)
                Game.GetPlayer().RestoreActorValue("Magicka", 25)    
            EndIf
        EndIf        
    EndIf    

    ;----------------------------------------------------
    ; IF NOT DRINKING BOTTLED BLOOD

to this:

    ;----------------------------------------------------
    ; RESTORE SOME HEALTH, STAMINA, AND MAGICKA IF NOT DRINKING BOTTLED BLOOD
    ; IF HIGHEST RANK, INCREASE MAXIMUM HEALTH, STAMINA, & MAGICKA
    
    If akFeedTarget != Game.GetPlayer() && VampireBottledBlood.GetValue() == 0 && VampireExtractingBlood.GetValue() == 0
        If akFeedTarget.HasKeyword(Vampire) == 1
            If VampireRank.GetValue() >= 10000 && VampireEngorge.GetValue() == 0
                VampireEngorgeAmount.SetValue(VampireEngorgeAmount.GetValue()+2)
                Game.GetPlayer().ModAV("Health", 2)
                Game.GetPlayer().ModAV("Stamina", 2)
                Game.GetPlayer().ModAV("Magicka", 2)
                Game.GetPlayer().ModAV("Attackdamagemult", 0.02)
                Game.GetPlayer().ModAV("Destructionpowermod", 2)
                Game.GetPlayer().ModAV("Illusionpowermo", 2)
                Game.GetPlayer().ModAV("Alterationpowermod", 2)
            EndIf
            Game.GetPlayer().RestoreActorValue("Health", 150)
            Game.GetPlayer().RestoreActorValue("Stamina", 75)
            Game.GetPlayer().RestoreActorValue("Magicka", 75)
        Else
            If TargetAlreadyDead == 0
                If VampireRank.GetValue() >= 60000 && VampireEngorge.GetValue() == 0
                    VampireEngorgeAmount.SetValue(VampireEngorgeAmount.GetValue()+1)
                    Game.GetPlayer().ModAV("Health", 1)
                    Game.GetPlayer().ModAV("Stamina", 1)
                    Game.GetPlayer().ModAV("Magicka", 1)
                    Game.GetPlayer().ModAV("Attackdamagemult", 0.01)
                    Game.GetPlayer().ModAV("Destructionpowermod", 1)
                    Game.GetPlayer().ModAV("Illusionpowermo", 1)
                    Game.GetPlayer().ModAV("Alterationpowermod", 1)
                EndIf
                Game.GetPlayer().RestoreActorValue("Health", 100)
                Game.GetPlayer().RestoreActorValue("Stamina", 50)
                Game.GetPlayer().RestoreActorValue("Magicka", 50)
            Else
                If VampireRank.GetValue() >= 60000 && VampireEngorge.GetValue() == 0 && VampireFeedOffDead.GetValue() == 10000
                    VampireEngorgeAmount.SetValue(VampireEngorgeAmount.GetValue()+1)
                    Game.GetPlayer().ModAV("Health", 1)
                    Game.GetPlayer().ModAV("Stamina", 1)
                    Game.GetPlayer().ModAV("Magicka", 1)
                    Game.GetPlayer().ModAV("Attackdamagemult", 0.01)
                    Game.GetPlayer().ModAV("Destructionpowermod", 1)
                    Game.GetPlayer().ModAV("Illusionpowermo", 1)
                    Game.GetPlayer().ModAV("Alterationpowermod", 1)
                EndIf                
                Game.GetPlayer().RestoreActorValue("Health", 50)
                Game.GetPlayer().RestoreActorValue("Stamina", 25)
                Game.GetPlayer().RestoreActorValue("Magicka", 25)    
            EndIf
        EndIf        
    EndIf    

    ;----------------------------------------------------
    ; IF NOT DRINKING BOTTLED BLOOD

The lines start from 3767 in the original file. much appreciate it!

EDIT: here is the edited version of the script, I just need someone who can compile it into a .pex file

http://www.mediafire.com/file/t6q6xl30w1y2nc1/PlayerVampireQuestScript.7z/file

Edited by FriendlyNPC
Link to comment
Share on other sites

If you need to compile scripts, try Skyrim Script Compiler Pro Final: https://www.nexusmods.com/skyrimspecialedition/mods/31700/

To compile scripts, you need the vanilla source scripts, which you get when installing the creation kit. You may have to extract them from the .zip file.

 

Also, try copying all of the source scripts from Data/Source/Scripts to Date/Scripts/Source.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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