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 22:54] 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 ======
  
-todo+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}}
 +
 +After you do this, right click the Craft - Area Settings placeable and go to Variables. The placeable already has the variables set with "null" values. You just adjust them.
 +
 +  * TRAP_ALLOW integer -1 - this variable tells the random trap system to never spawn a trap on the object
 +  * TRAP_NUM integer X - number of random traps to be created in the area
 +  * TRAP_DISARM_MIN integer X - minimal DC of the random traps for disarm
 +  * TRAP_DISARM_MAX integer X - maximum DC of the random traps for disarm
 +  * 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_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)
 +{{: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.
 +
 +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.1762988074.txt.gz · Last modified: 2025/11/12 22:54 by shadooow