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.

Map Number of spots Monster types
MAP01 Hub 1: Winnowing Hall 4 (252—255) Ettins
MAP02 Hub 1: Seven Portals 11 (245—255) Ettins
MAP03 Hub 1: Guardian of Ice 8 (248—255) Afrits×2, ettins×5, wendigos×1
MAP04 Hub 1: Guardian of Fire 5 (251—255) Ettins
MAP05 Hub 1: Guardian of Steel 5 (251—255) Centaurs×1, ettins×3, wendigos×1
MAP06 Hub 1: Bright Crucible 6 (250—255) Ettins
MAP08 Hub 2: Darkmere 5 (251—255) Ettins
MAP09 Hub 2: Caves of Circe 5 (251—255) Ettins
MAP10 Hub 2: Wastelands 5 (251—255) Ettins
MAP11 Hub 2: Sacred Grove 5 (251—255) Ettins
MAP12 Hub 2: Hypostyle 5 (251—255) Ettins
MAP13 Hub 2: Shadow Wood 5 (251—255) Ettins
MAP21 Hub 4: Forsaken Outpost 5 (251—255) Ettins
MAP22 Hub 4: Castle of Grief 5 (251—255) Ettins
MAP23 Hub 4: Gibbet 5 (251—255) Ettins
MAP24 Hub 4: Effluvium 5 (251—255) Ettins
MAP25 Hub 4: Dungeons 5 (251—255) Ettins
MAP26 Hub 4: Desolate Garden 5 (251—255) Ettins
MAP27 Hub 3: Heresiarch's Seminary 5 (251—255) Ettins
MAP28 Hub 3: Dragon Chapel 5 (251—255) Ettins
MAP30 Hub 3: Griffin Chapel 5 (251—255) Ettins
MAP31 Hub 3: Deathwind Chapel 5 (251—255) Ettins
MAP32 Hub 3: Orchard of Lamentations 5 (251—255) Ettins
MAP33 Hub 3: Silent Refectory 5 (251—255) No script 255, although there are five map spots for it
MAP34 Hub 3: Wolf Chapel 5 (251—255) Ettins
MAP35 Hub 5: Necropolis 5 (251—255) Ettins
MAP36 Hub 5: Zedek's Tomb 5 (251—255) Ettins
MAP37 Hub 5: Menelkir's Tomb 5 (251—255) Ettins
MAP38 Hub 5: Traductus' Tomb 5 (251—255) Ettins
MAP39 Hub 5: Vivarium 5 (251—255) Ettins
MAP40 Hub 5: Dark Crucible 0 Korax fight scripts instead

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.

Map Number of spots Monster types
MAP33 Hub 4: Transit 0 Deathmatch map
MAP34 Hub 4: Over N Under 0 Deathmatch map
MAP35 Hub 4: Deathfog 0 Deathmatch map
MAP36 Hub 4: Castle of Pain 0 Deathmatch map
MAP37 Hub 4: Sewer Pit 0 Deathmatch map
MAP38 Hub 4: The Rose 0 Deathmatch map
MAP41 Hub 1: Ruined Village 6 (250—255) Afrits 60%, ettins 30%, green chaos serpents 10%
MAP42 Hub 1: Blight 6+1 (250—255; 241) Afrits 30%, ettins 60%, green chaos serpents 10%; stalkers×1
MAP43 Hub 1: Sump 6+1 (250—255; 241) Ettins 30%, stalkers 60%, stalker bosses 10%; stalkers×1
MAP44 Hub 1: Catacomb 6 (250—255) Afrits 60%, ettins 30%, wendigos 10%
MAP45 Hub 1: Badlands 6+1 (250—255; 241) Centaurs 60%, slaughtaurs 30%, green chaos serpents 10; stalkers×1
MAP46 Hub 1: Brackenwood 6+1 (250—255; 241) Ettins 70%, dark bishops 20%, green chaos serpents 10%; stalkers×1
MAP47 Hub 1: Pyre 6 (250—255) Afrits 60%, dark bishops 30%, slaughtaurs 10%
MAP48 Hub 2: Constable's Gate 5+1 (250—251+253—255; 252) Centaurs 70%, green chaos serpents 20%, slaughtaurs 10%; stalkers×1
MAP49 Hub 2: Treasury 5+2 (251—255; 241+250) Afrits 60%, ettins 30%, green chaos serpents 10%, stalkers×1; stalker bosses×1
MAP50 Hub 2: Market Place 6 (250—255) Centaurs 20%, ettins 70%, slaughtaurs 10%
MAP51 Hub 2: Locus Requiescat†◊ 5 (251—255) Dark bishops×1, reivers×4
MAP52 Hub 2: Ordeal 6+1 (250—255; 30) Afrits 10%, dark bishops 60%, ettins 30%, stalkers×1
MAP53 Hub 2: Armory 6 (250—255) Afrits 60%, dark bishops 30%, green chaos serpents 10%
MAP54 Hub 3: Nave 6 (250—255) Dark bishops 10%, centaurs 30%, ettins 60%
MAP55 Hub 3: Chantry 6 (250—255) Afrits 30%, dark bishops 10%, ettins 60%
MAP56 Hub 3: Abattoir 5+1 (251—255; 250) Afrits 10%, centaurs 30%, ettins 60%, stalkers×1
MAP57 Hub 3: Dark Watch 5+1 (251—255; 250) Afrits 30%, centaurs 60%, slaughtaurs 10%, stalker bosses×1
MAP58 Hub 3: Cloaca 4+2 (250—253; 254—255) Afrits 30%, ettins 60%, reivers 10%, stalkers×1, stalker bosses×1
MAP59 Hub 3: Ice Hold 6 (250—255) Wendigos
MAP60 Hub 3: Dark Citadel 0 No script 255, Deathkings fight scripts instead

† 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:
Utilities:
Hexen usage:
Other: