Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed pallet vs palette

Encounters are special triggers which essentially spawn a group of creatures onto the map when stepped on by a player (or their associates, if the player only tickbox is unchecked).

They use the UTE filetype.

...

FieldValue TypeDefaultDescription
NameText
Human readable name of the encounter used in the pallet palette and DM in-game lists
TagText (32 characters)
Tag of the encounter (usually 32 characters maximum). How to get an object by GetObjectByTag.
DifficultyDropdown (encdifficulty.2da)Easy

An entry from encdifficulty.2da - see below. This alters the challenge of the creatures spawned. Can be get with GetEncounterDifficulty and set with SetEncounterDifficulty in a script.

Note all the Standard pallet palette encounters appear to use "Normal" (which adds 2). Very Easy is 0, Easy is 1, Normal is 2, Hard is 5 and Impossible is 8.

Maximum CreaturesNumber 1-88The absolute maximum amount of creatures to spawn.
Minimum CreaturesNumber 1-82The suggested minimum amount of creatures to spawn. Note the minimum may be decreased down to 1 if a suitable CR creature isn't found.
Spawn Option

Single Shot

Continuous

Single Shot

Single shot fires off once (unless re-enabled by a script).

Continuous will allow Advanced options to have the encounter respawn (needs further testing)

CategoryToolset Category
Category the blueprint lives in. Unavailable on placed triggers.

...

This provides a GUI to add creatures from the pallets palettes to the encounter. Each creature blueprint can only be in the encounter list once. You cannot for instance have both a "Unique" creature and a "Non-Unique" one of the same blueprint.

...

FieldValue TypeDefaultDescription
FactionFaction dropdown listHostileOne of the default or custom module-specific factions. It must be hostile to an entering creature to fire (even if the monsters spawned from it are not hostile).
ActiveTickboxTickedIf unticked it won't fire unless a script enables it using SetEncounterActive. Vice versa an already active encounter can be disabled with the same command later.
Encounter RespawnsTickboxUntickedOnly available if "Continuous" is selected for the Spawn Option. It allows a constantly repopulating encounter.
Respawn Time (Seconds)Integer 1 - 3200060In game seconds so pausing the game pauses this respawn timer. It is very likely to be affected by SetTime.
Number of Times To RespawnInteger 0 - 320000The number of times this encounter should respawn. You can get it in a script with GetEncounterSpawnsMax and set it in a script with SetEncounterSpawnsMax. You can also even get the current spawn counter with GetEncounterSpawnsCurrent and set it with  SetEncounterSpawnsCurrent.
Infinite RespawnTickboxUntickedIf ticked Number of Times To Respawn is greyed out. For some reason this isn't a findable property in a script - unknown how it affects the GetEncounterSpawnsMax function.
Player Triggered OnlyTickboxTicked

On by default. This means a player character (not DM) will trigger this only.

I don't think associates (eg; henchmen) would, but a possessed familiar might?If unticked then any creature can trigger it (henchmen, familiars etc.) but it needs a relevant PC nearby for the "encounter difficulty" to be correctly sorted so something spawns at all. It's assumed that only the PCs and their party members (henchmen, summons etc.) count.

Bluerpint ResrefText (16 characters)
The filename of the blueprint. Only editable if doing Edit Copy of an original. You'd use this field in CreateObject if it worked with encounters.
Update Instances-
Unavailable outside of blueprint instances. This will update all the matching resrefs placed in the module, overriding any changes made to the placed ones (which create a duplicate copy of all the settings on an encounter). Handy if the blueprint one is authoritative.
Variables-
Encounters can have variables (int, string, float) placed on them as per any other object.

...

At their simplest (one trigger and one spawn point) a create that is hostile to the encounter will make the encounter spawn. EG: You can have a "Defender" encounter which is actually triggered by a walking "Hostile" creature. Generally most encounters are set to Hostile and are triggered purely by PCs (see setting Player Triggered Only in the Advanced panel) although since a PC must be nearby anyway, the Player Triggered Only can be unticked in most cases, to account for henchmen or other NPCs wandering over it.

Generation of What Spawns

...

Calculating the "Party level" would be done (probably things in a certain distance) then it likely compares it to the monsters available and figures out a good fit for spawning with some randomness built in (for matching CR values).

Parties are likely assumed to be sized at 4 on average. So we go:

  • PCs and relevant associate NPC Levels / 4 = "Player party level".
    • eg; 5 members at level 10 = 50 / 4 = 12.5)
  • Monster list is sorted High → Low
  • Monsters are added to what is spawned if the CR is <= the required CR
    • If we haven't reached the minimum, we add more until the minimum is reached using a lower CR

Some examples from testing:

  • Player: Level 10
  • Undead All spawn (Normal difficulty, so +2, 3-5 creatures), randomly chooses these, seems to be CR total: 15 (CR 5 on average)
    • 1: Skeleton Chieftain (7), Wraith (5), Allip (3)
    • 2: Revenant: (7), Wraith (5), Shadow (3)
    • 3: Skeleton Chieftain (7), Ghoul Lord (5), Tyrantfog Zombie: 3
  • Player: Level 20
  • Undead All spawn again:
    • Lich (17), Vampire Rogue (13), Vampire Priest (13), Skeletal Devourer (13) = 56 CR total (CR 14 on average)
  • Player: Level 40:
    • Lich (28), Demilich (24), Lich (17), Vampire Mage (16) Vampire Priest (13) - probably maxed out at the maximum 5

So what maths is behind this? Time to figure it out another time, because I'm bored testing right now.

Note: How many creatures spawn? Tellingly in the GFF document it has this note: "Recommended number of creatures. Maps to "Min Creatures" field in toolset, but is not a true minimum, because it is actually possible for the encounter system to spawn fewer than this number of creatures if it cannot find enough creatures to fit the level of the encounter."

...