Skip to content

ScriptTask

Divided by Zer0 edited this page Mar 9, 2022 · 36 revisions

ScriptTask

Extends: ScriptObject < Reference

Description

This contains information about one specific task requested by the card automation

It also contains methods to return properties of the task and to find the required objects in the game

Property Descriptions

trigger_details

var trigger_details: Dictionary

Stores the details arg passed the signal to use for filtering

is_accepted

var is_accepted: bool

Stores the details arg passed the signal to use for filtering If true if this task has been confirmed to run by the player Only relevant for optional tasks (see SP.KEY_IS_OPTIONAL)

is_skipped

var is_skipped: bool

Stores the details arg passed the signal to use for filtering If true if this task has been confirmed to run by the player Only relevant for optional tasks (see SP.KEY_IS_OPTIONAL)

is_cost

var is_cost: bool

is_else

var is_else: bool

needs_subject

var needs_subject: bool

Method Descriptions

_init

func _init(owner, script: Dictionary, _trigger_object, _trigger_details) -> void

prepares the script_definition needed by the task to function.

prime

func prime(_prev_subjects: Array, run_type: int, sceng_stored_int: int) -> var

check_confirm

func check_confirm() -> var
print_debug("skipped: " + str(is_skipped) +  " valid: " + str(is_valid))
Clone this wiki locally