"threshold" - when net worth is higher than the threshold, the out edge will be triggered. Normally used with "repeatable" : true.Īn encounter that waits for the player to reach a specified net worth before triggering its out edges. If true, and "source" refers to multiple entities, triggers the out edge when any entry has the event triggered, instead of when all sources have had the event triggered. If true, continues to listen and trigger out edges until this node is destroyed. in a previous encounter we create a random number of skeletons and store a reference to each of them in "spawn_enemy_entities.skeletons"). Notice that these entries can also refer to more than one entity too (e.g. Release date: 2016Genre:,Developer: Iron Lore Entertainment, THQ NordicPublishing: THQ NordicType of publication: RePackInterface language: RUS ENGSpeech. The out edge will trigger once the event has been triggered for all of the sources. This property can also be an array, e.g.: [ Usually an entity from a previous encounter that has been registered in the shared context. "source" - object where the event will be listened to. "5:00+1h30m" means 'between 5:00 AM and 6:30 AM'.Īn encounter that waits for an event on an entity (or entitites) before triggering its out edges.
"time" - the in-game time of day with an optional random element."encounter_type" : "wait_for_time_of_day" It's false by default (pauses this encounter / timer and resumes it once the player reconnects).Īn encounter that waits until a given game time of day before triggering its out edges. A boolean for continuing to run this node when a player (client) disconnects from a multiplayer game. "continue_on_disconnect" - optional field.A boolean to destroy this node after the out edge is triggered. "destroy_on_trigger" - optional field.In this case, the modifier would be applied when the player chooses hard mode. You can check an example in the "encounter_tuning_overrides" section from stonehearth/data/game_mode/hard/hard.json (the field is called `"delay" there). A boolean for enabling tuning overrides for the "duration" parameter of this encounter. "duration" - a time expression representing how much in-game time we want to wait.Their controllers can be found in stonehearth/services/server/game_master/controllers/encounters.Īn encounter that waits for the specified length of game time before triggering its out edges. Let's take a look at the available encounter types and their associated properties.