Skip to content

ScriptAlter

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

ScriptAlter

Extends: ScriptObject < Reference

Description

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

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)

Method Descriptions

_init

func _init(alteration_script: Dictionary, trigger_object: Card, alterant_object, task_details: Dictionary) -> var

Prepares the script_definition needed by the alteration to function and checks the ongoing task and its owner_card against defined filters.