Talus 2:Script Systems:Standard Treasure System

From Talus Wiki

Jump to: navigation, search

You are reading Talus 2 - Script Systems - Standard Treasure System

To use this system, you must place at least two chests (or any other placeable container). One will be the source and the other(s) will populate their inventories randomly from this chest upon opening.

Properties for inaccessible Source Chests:

  • 1: Provide this chest with a tag unique to the module. Use the tag naming rules.
  • 2: Clear out all scripts from this object.
  • 3: Put items you want to generate in the treasure chests into this source chest.
  • 4: Set the object variables as follows:
NameTypeDescription
iFiniteItemsint0 to never run out, 1 to eventually result in no more treasure for chests linked to this source.


Properties for accessible Treasure Chests:

  • 1: Set the OnOpen script to use: ld_std_chest
  • 2: Set the object variables as follows:
NameTypeDescription
iGoldMinintMinimum amount of gold to generate
iGoldMaxintMaximum amount of gold to generate
iMaxItemsintMaximum number of items to copy from source chest
iResetWhenAreaEmptyintIf set to 1, delays the reset of the chest if the area has players in it when the timer runs out. Set to 0 otherwise.
iTimerintNumber of seconds between resets of the chest.
sSourceCheststringTag of the source chest holding the items to copy
Personal tools