Time of day limitations isn't something that you can setup with a standard encounter trigger. There's a couple of options for getting it to work, though.
A) Use a trigger/waypoint combination with a custom OnEnter script instead
B) Add an OnEnter or OnHeatbeat script to the area that runs through and sets the encounter to active/inactive depending on the time of day.
The first one is probably the better option. The script would look something like:
Code: Select all
void main()
{
if (!GetIsPC(GetEnteringObject()))
return;
if (GetLocalInt(OBJECT_SELF, "TTimeout"))
return;
if (!GetIsNight())
return;
string sTag = GetTag(OBJECT_SELF);
//Insert Values here
string sResRef1 = "xxxx"
string sResRef2 = "yyyy"
string sResRef3 = "zzzz"
int iNo1 = #;
int iNo2 = #;
int iNo3 = #;
int i;
object oWP = GetNearestObjectByTag("WP_" + sTag);
object oNew;
location lWP = GetLocation(oWP);
if (sResRef1 != "")
{
while (i < iNo1 && i < 10)
{
oNew = CreateObject(OBJECT_TYPE_CREATURE, sResRef1, lWP, TRUE);
SetLocalInt(oNew, "despawn", TRUE);
i++;
}
}
i = 0;
if (sResRef2 != "")
{
while (i < iNo2 && i < 10)
{
oNew = CreateObject(OBJECT_TYPE_CREATURE, sResRef2, lWP, TRUE);
SetLocalInt(oNew, "despawn", TRUE);
i++;
}
}
i = 0;
if (sResRef3 != "")
{
while (i < iNo3 && i < 10)
{
oNew = CreateObject(OBJECT_TYPE_CREATURE, sResRef3, lWP, TRUE);
SetLocalInt(oNew, "despawn", TRUE);
i++;
}
}
SetLocalInt(OBJECT_SELF, "TTimeout", TRUE);
DelayCommand(1800.0, DeleteLocalInt(OBJECT_SELF, "TTimeout"));
}
WARNING: Untested code
Basically, you need a trigger with a unique tag. You also have a waypoint with tag 'WP_<trigger tag>'. Fill out the blanks for creature resrefs and numbers in the script there, and put it in the OnEnter event of the trigger. Then, it'll function like an encounter, firing when it's stepped on and creating creatures at the waypoint, but only when it's night time. It's set to a respawn timer of 30 RL minutes, is capped at 10 of each creature, and can have 3 different creature types. Creatures will despawn with the avlis despawner. You can get much more complicated than this if you want, but it should do basically what you need.