Jump to content

How to Make an Effect That's Only On At Night?


NamelessFreak

Recommended Posts

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.

Link to comment

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

Link to comment

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

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use