User Tools

Site Tools


en:modulebuilding:randomtraps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:modulebuilding:randomtraps [2025/11/13 00:52] shadooowen:modulebuilding:randomtraps [2025/11/13 00:55] (current) – [Random and Respawning Traps] shadooow
Line 13: Line 13:
   * TRAP_SEARCH_MIN integer X - minimal DC of the random traps for search   * TRAP_SEARCH_MIN integer X - minimal DC of the random traps for search
   * TRAP_SEARCH_MAX integer X - maximum DC of the random traps for search   * TRAP_SEARCH_MAX integer X - maximum DC of the random traps for search
-  * TRAP_OBJECTS integer 0/1 - by default random traps will be only spawned on floor, by setting this to 1 you enable traps to be spawned on objects such as doors and placeables+  * TRAP_OBJECTS integer 1 - if set to 1 it changes the default behavior of random trap placement and instead will only select object if it has variable TRAP_ALLOW equal to 1
   * TRAP_UNLIMITED integer X - percentual chance for the traps to be unlimited (ie. not disappearing after triggering)   * TRAP_UNLIMITED integer X - percentual chance for the traps to be unlimited (ie. not disappearing after triggering)
 {{:en:modulebuilding:trapvariables.png?400|}} {{:en:modulebuilding:trapvariables.png?400|}}
  
 And lastly, set TRAP_ALLOW variable to -1 on every non-invisible door and useable placeable that you don't want the random trap to be ever spawned. And lastly, set TRAP_ALLOW variable to -1 on every non-invisible door and useable placeable that you don't want the random trap to be ever spawned.
 +
 +85% traps will be spawned on the floor unless there are no, or not enough, objects to spawn trap at. Traps will respawn automatically when disarmed, recovered or triggered.
 ===== Static Traps On Objects ===== ===== Static Traps On Objects =====
  
en/modulebuilding/randomtraps.txt · Last modified: 2025/11/13 00:55 by shadooow