NamelessFreak Posted September 2, 2018 Posted September 2, 2018 Okay, so I'm gonna assume this needs scripts of some sort, but I can't script my way out of a paper bag. What I want to do is make a separate vampire strain for Lamae Bal's line, where you only get bonuses during the night, but I've no idea how to go about it, and google's turned up nothing. I was wondering if some kind soul could give me an example script for what I need to do.
TDA Posted September 5, 2018 Posted September 5, 2018 scn aaaVampireQuestScript begin gamemode ;;VampireRef - persistent ref if GameHour >= 0 && GameHour < 6 if VampireRef. HasSpell bonuses==0 ; Spell or somthing VampireRef.addspell bonuses endif else if VampireRef. HasSpell bonuses==1 ; Spell or somthing VampireRef.Removespell bonuses endif endif end
fejeena Posted September 5, 2018 Posted September 5, 2018 If you first want to check if the player/NPC is a vampire if Player.hasmagiceffect VAMP == 1 or if you want different bonuses in the Vamp levels, check the spells. If Player.HasSpell Vampirism25 == 1 or If Player.HasSpell Vampirism50 == 1 ; If Player.HasSpell Vampirism75 == 1 ; If Player.HasSpell Vampirism100 == 1 If you want it for NPCs replace Player with the NPC ref ID
NamelessFreak Posted September 7, 2018 Author Posted September 7, 2018 Thank you, both! This is very helpful. :]
Recommended Posts
Archived
This topic is now archived and is closed to further replies.