Hexen scripted monster spawning
From DoomWiki.org
Hexen and its expansions, Hexen: Deathkings of the Dark Citadel and Hexen: Vestiges of Grandeur, all feature levels that must be visited several times and a gameplay focused on searching for multiple keys and switches. To prevent a map from becoming too empty in a latter visit, as well as to incite the player to move forward and progress, most maps feature a monster repopulation script in slot 255.
Hexen[edit]
The repopulation scripts in Hexen are run every 8400 tics (four minutes). Each spot has a 50% chance of spawning its associated monster.
Deathkings of the Dark Citadel[edit]
The repopulation scripts in Deathkings are more advanced. In cooperative mode, they only delay by 4200 tics (two minutes). Usually, they choose one monster type randomly in a first step (usually from three types with a 60%/30%/10% distribution), and then each spot has a 50% chance of spawning this monster. However, some maps spots are still exclusive to one type of monsters; if so they are listed separately.
† The single-player delay is only 6300 tics (three minutes) in this level, instead of 8400 tics as usual. Cooperative delay is still 4200 tics.
‡ The single-player delay is 10500 tics (five minutes) in this level. Cooperative delay is 6300 tics.
◊ This level uses Thing_SpawnNoFog instead of Thing_Spawn.
Vestiges of Grandeur[edit]
The repopulation scripts in Vestiges of Grandeur are not run in very easy difficulty or in deathmatch mode and are only found in three of the maps in the hub. When they are run, the scripts are repeated every 10000 tics (4 minutes and ~46 seconds) in easy mode, 8200 tics (3 minutes and ~54 seconds) in medium mode, and 6400 tics (3 minutes and ~3 seconds) in hard or very hard mode. Each spot has a 50% chance of spawning its associated monster.
| Map | Number of spots | Monster types | |
|---|---|---|---|
| MAP01 | Temple Outskirts | 0 | No script 255 |
| MAP02 | Serpent Temple | 0 | No script 255 |
| MAP03 | Swamp of the Forgotten | 9 (74—82) | Ettins×4, stalker bosses×5 |
| MAP04 | Glade of the Fallen | 10 (45—54) | Ettins×6, green chaos serpents×4 |
| MAP05 | Volcano Chapel | 0 | No script 255 |
| MAP06 | Frozen Sanctum | 7 (32—38) | Dark bishops×3, wendigos×4 |
| MAP07 | Elemental Temple | 0 | No script 255 |
| MAP08 | Korax's Domain | 0 | Korax fight scripts instead |
| MAP09 | Garden of Medea | 0 | No script 255 |
Sources[edit]
The information above was obtained by using Descript on each map of both IWADs, hexen.wad and hexdd.wad, both in their 1.1 versions. For Vestiges of Grandeur, the script sources were preserved in hexen_vog.wad and read directly.
| ACS | |
|---|---|
| Fundamentals: | ACS • ACS0 instruction set • BEHAVIOR |
| Utilities: | ACC • DEACC • Descript • listacs |
| Hexen usage: | Hexen scripted ambient sounds • Hexen scripted monster spawning • Mash monsters |
| Other: | ACS mini game |
