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
Next revision
Previous revision
en:modulebuilding:randomtraps [2025/11/12 23:57] – [Random and Respawning Traps] shadooowen:modulebuilding:randomtraps [2025/11/13 00:55] (current) – [Random and Respawning Traps] shadooow
Line 1: Line 1:
 ====== Random and Respawning Traps ====== ====== Random and Respawning Traps ======
  
-First, find a Craft - Area Settings placeable in custom placeable palette, and place it into area. Then open its inventory and put inside trap kits of traps you want to be spawned in the area. Adding same trap multiple times will increase chances of that trap to be spawned.+First, find a Craft - Area Settings placeable in custom placeable palette, and place it into area. Then open its inventory and put inside trap kits of traps you want to be spawned in the area. You will find them in custom item palette - Miscellaniouis - Kit. Adding same trap multiple times will increase chances of that trap to be spawned.
  
 {{:en:modulebuilding:randomtraps.png?400}} {{:en:modulebuilding:randomtraps.png?400}}
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.1762991875.txt.gz · Last modified: 2025/11/12 23:57 by shadooow