Advertisement
NRFB

traps.json

May 1st, 2023
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. "trap_ID":
  2. String
  3. REQUIRED
  4. A unique identifier for this trap type.
  5. "name":
  6. String
  7. REQUIRED
  8. What the name of this trap should look like in game.
  9. "health":
  10. int
  11. REQUIRED
  12. The maximum health stat of this trap.
  13. "attack":
  14. int
  15. REQUIRED
  16. The complexity stat of this trap.
  17. "accuracy":
  18. int
  19. REQUIRED
  20. The accuracy stat of this trap.
  21. "rearmable":
  22. bool
  23. REQUIRED
  24. Whether this trap will rearm itself after being triggered or not.
  25. "rearm_time":
  26. int
  27. Not required. Will default to 999.
  28. How many turns it takes this trap to rearm itself.
  29. "defend_stat":
  30. String, one of "Physique", "Reflex", "Willpower", "Health"
  31. Not required. Will default to "Willpower"
  32. The working stat that this trap compares its complexity counter against to determine if it scores a hit.
  33. "avoid_stat":
  34. String, one of "Physique", "Reflex", "Willpower", "Health"
  35. Not required. Will default to "Reflex"
  36. The working stat that this trap compares its accuracy stat against to determine if it scores a hit when first triggered.
  37. "rarity":
  38. int between 0-20
  39. Not required. Will default to 1.
  40. How relatively rarely this trap should be picked to spawn
  41. "chest_trap":
  42. bool
  43. Not required. Will default to false.
  44. If this trap should only spawn in treasure chests or not.
  45. "requirements":
  46. Requirements Dictionary OR Array of any number of Requirements Dictionaries
  47. REQUIRED
  48. The set of requirements that must be true for this trap to be considered spawnable. If multiple requirements dictionaries are supplied, the trap will be spawnable if any one of the requirements dictionaries evaluate to true.
  49. "allow_modifiers_on_spawn":
  50. bool
  51. Not required. Will default to true.
  52. If this trap is allowed to spawn with any permanent trap status effects.
  53. "trigger_hit_sound":
  54. String file location of a .ogg or .mp3 file
  55. Not required. Will default to a clicking sound.
  56. Sound file that will play when the trap is triggered and an ALLY_TRAP_TRIGGERED_HIT check is raised.
  57. "trigger_miss_sound":
  58. String file location of a .ogg or .mp3 file
  59. Not required. Will default to a wooshing sound.
  60. Sound file that will play when the trap is triggered and an ALLY_TRAP_TRIGGERED_MISS check is raised.
  61. "trigger_particle":
  62. String file location of a .tscn file
  63. Not required. Will default to a generic hit spark particle.
  64. Particle effect that will be displayed when the trap is triggered and an ALLY_TRAP_TRIGGERED check is raised.
  65. "disarm_success_sound":
  66. String file location of a .ogg or .mp3 file
  67. Not required. Will default to a clicking sound.
  68. Sound file that will play when the trap reaches 0 health and a TRAP_DISARMED_FROM_ROOM check is raised.
  69. "disarm_success_particle":
  70. String file location of a .tscn file
  71. Not required. Will default to a generic particle.
  72. Particle effect that will be displayed when the trap reaches 0 health and a TRAP_DISARMED_FROM_ROOM check is raised.
  73. "portrait":
  74. String file location of an image file
  75. Not required (technically, though it'll look a bit silly in the research notes for there to be no picture)
  76. The image file used in the research notes menu for this trap.
  77. "notes_event_list":
  78. Array of Strings
  79. Not required.
  80. A list of any dungeon event dungeon_event_IDs that should show as events for this trap in the research notes menu.
  81. "disallowed_spawn_modifiers":
  82. Array of Strings
  83. Not required. Will default to all modifiers being allowed.
  84. A list of any trap status effect effect_IDs that this trap should be specifically not allowed to spawn with. Unnecessary if allow_modifiers_on_spawn is set to false.
  85. "tags":
  86. Array of Strings
  87. Not required. Will default to no tags.
  88. A list of categorizations for this monster. These are currently just used for determining spawn modifier eligibility, but may be used more in the future. TODO: List of tags in the game.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement