Aschbourne_PRC8/_module/nss/_rest_wild.nss

22 lines
630 B
Plaintext
Raw Normal View History

2024-06-14 10:48:20 -04:00
// this script should be placed in the OnEnter event of any exterior
// areas (rural or forest) you want the pc to be able to sleep in.
//
// it will cause the pc to see a specific message when he
// tries to sleep.
#include "vamp_friends"
#include "vamp_sunsystem"
void main()
{
if(GetIsPC(GetEnteringObject()))
{
SetLocalInt(GetEnteringObject(),"restcycle",0);
}
object oPC = GetEnteringObject();
vamp_friends(oPC);
if(GetSubRace(oPC)=="Vampire" && GetIsPC(oPC))
{
//Init sunsystem for entering vampire. If area is underground you dont need this.
vamp_sunsystem(oPC);
}
}