-
-
Notifications
You must be signed in to change notification settings - Fork 102
ScriptTask
Divided by Zer0 edited this page Mar 9, 2022
·
36 revisions
Extends: ScriptObject < Reference
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
var trigger_details: Dictionary
Stores the details arg passed the signal to use for filtering
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)
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)
var is_cost: bool
var is_else: bool
var needs_subject: bool
func _init(owner, script: Dictionary, _trigger_object, _trigger_details) -> void
prepares the script_definition needed by the task to function.
func prime(_prev_subjects: Array, run_type: int, sceng_stored_int: int) -> var
func check_confirm() -> var
print_debug("skipped: " + str(is_skipped) + " valid: " + str(is_valid))