adventure ![code/modules/explorer_drone/adventure.dm 160](git.png)
text adventure instance, holds data about nodes/choices/etc and of current play state.
Vars | |
band_modifiers | Modifiers to band scan values |
---|---|
current_node | Current active adventure node |
deep_scan_description | Opional description shown after site deep scan |
delayed_action | Delayed state properties. If not null, means adventure is in delayed action state and will contain list(delay_time,delay_message) |
loot_categories | Loot table ids used as reward for finishing the adventure successfully. |
name | Adventure name, this organization only, not visible to users |
nodes | Nodes for this adventure, represent single scene. |
previous_node_id | Last other node than this one. Used by GO_BACK_NODE |
qualities | Assoc list of quality name = value |
required_site_traits | Required site traits for the adventure to appear |
starting_node | Node the adventure will start at |
starting_qualities | List of starting quality values, these will be set before first node is encountered. |
trigger_loop_safety | Keeps track firing of triggers until stop state to prevent loops |
triggers | Triggers for this adventure, checked after quality changes to cause instantenous results |
Procs | |
apply_adventure_effect | Applies changes encoded in effect data and processes triggers, returns TRUE if the change forced node change. |
check_requirement_group | Recursively validates group requirements. |
check_requirements | Checks if current qualities satisfy passed in requirements |
end_adventure | Finish adventure |
handle_special_nodes | Handles special node ID's |
process_adventure_value | Extracts raw value from special value objects |
validate | Basic sanity checks to ensure broken adventures are not used. |
Var Details
band_modifiers ![code/modules/explorer_drone/adventure.dm 168](git.png)
Modifiers to band scan values
current_node ![code/modules/explorer_drone/adventure.dm 184](git.png)
Current active adventure node
deep_scan_description ![code/modules/explorer_drone/adventure.dm 180](git.png)
Opional description shown after site deep scan
delayed_action ![code/modules/explorer_drone/adventure.dm 192](git.png)
Delayed state properties. If not null, means adventure is in delayed action state and will contain list(delay_time,delay_message)
loot_categories ![code/modules/explorer_drone/adventure.dm 170](git.png)
Loot table ids used as reward for finishing the adventure successfully.
name ![code/modules/explorer_drone/adventure.dm 162](git.png)
Adventure name, this organization only, not visible to users
nodes ![code/modules/explorer_drone/adventure.dm 172](git.png)
Nodes for this adventure, represent single scene.
previous_node_id ![code/modules/explorer_drone/adventure.dm 186](git.png)
Last other node than this one. Used by GO_BACK_NODE
qualities ![code/modules/explorer_drone/adventure.dm 188](git.png)
Assoc list of quality name = value
required_site_traits ![code/modules/explorer_drone/adventure.dm 166](git.png)
Required site traits for the adventure to appear
starting_node ![code/modules/explorer_drone/adventure.dm 164](git.png)
Node the adventure will start at
starting_qualities ![code/modules/explorer_drone/adventure.dm 176](git.png)
List of starting quality values, these will be set before first node is encountered.
trigger_loop_safety ![code/modules/explorer_drone/adventure.dm 178](git.png)
Keeps track firing of triggers until stop state to prevent loops
triggers ![code/modules/explorer_drone/adventure.dm 174](git.png)
Triggers for this adventure, checked after quality changes to cause instantenous results
Proc Details
apply_adventure_effect
Applies changes encoded in effect data and processes triggers, returns TRUE if the change forced node change.
check_requirement_group
Recursively validates group requirements.
check_requirements
Checks if current qualities satisfy passed in requirements
end_adventure
Finish adventure
handle_special_nodes
Handles special node ID's
process_adventure_value
Extracts raw value from special value objects
validate
Basic sanity checks to ensure broken adventures are not used.