![]() ![]() "num_rolls": same possible values than explained above.Įxample from entling.If "weight" is omitted, defaults to 1.If unique string name is "none" or "uri" is an empty string, no drop is created if it is rolled. ![]() "bag" is a uri for another list of items/bags (another loot_table just like this one)."item" is a uri for an item (a chair, a bed, a weapon)."items" : dictionary mapping of unique string name (make something up!) to entries with keys "type", "uri", "weight", and "num_rolls". When the type "each_of" is used, this value applies to all # of drops per item within it.Can be omitted (which will default to 1).Can be a table with keys "min" and "max"."some_of" will cause either single or multiple random entries or items listed in the entry to be added to a list to give to the player as loot based on the "num_rolls" value."each_of" will cause all entries and items below this point to be added to a list to give to the player as loot. Stonehearth: The Massive Update - (Community Expansion Mod: ACE) part 2 Nookrium 157K subscribers Subscribe 2.8K 12K views 2 years ago nookrium indiegame Stonehearth on Steam."roll_type" : either "each_of" or "some_of". "entries" - a dictionary of one or more loot table entries (the entry names can be any string). It will only work if the drops have the correct player_id. "force_auto_loot": true - optional field that will mark the drop for auto loot regardless of the auto loot option from the game settings. The loot_drops component has these fields: Loot tables work based on something called a weight. The chance of getting anything when you kill, harvest or mine something is given by a loot table. When editing copied files from the stonehearth mod always make sure you're using the correct type of value for each field. To represent an amount of realtime milliseconds (notice that this one is not a string). ![]() There are properties that will define times in a different way, such as: "time" : "6:00" This way, events and encounters don't need to happen always at the same hour, which also helps with performance, since they're more distributed over time. We use this kind of expressions to add more randomness to the game. This means 'choose a random amount of time between "3 days" and "3 days and 40 hours"'. We can append extra time expressions to these times using "+", like this: "delay" : "3d+40h" Stands for 3 days plus 40 hours, 15 minutes and 1 second. These time expressions are strings representing in-game time, which will be parsed by the code. These are explanations about some expressions we can find for certain properties and components in the JSON files:Īlong many of the guides you will encounter properties that will have time expressions as their value. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |