Skip to content

perMessage

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

perMessage

Extends: Reference

Description

Contains details about the way to seek through the game for the Requested things to count. This is sent to ScriptPer to initiate it.

Property Descriptions

per_seek

var per_seek: String

script_owner

var script_owner

Card type, but cannot type to avoid cyclic dependency

per_definitions

var per_definitions: Dictionary

trigger_object

var trigger_object

subjects

var subjects: Array

This is the subject selected by the task from which this per message originates

prev_subjects

var prev_subjects: Array

This is the subject selected by the task from which this per message originates These are the prev_subject which were sent to the task from which this per message originates

found_things

var found_things: int
  • Getter: count_found_things

This is the subject selected by the task from which this per message originates These are the prev_subject which were sent to the task from which this per message originates

Method Descriptions

_init

func _init(_per_seek: String, _script_owner, _per_definitions: Dictionary, _trigger_object = null, _subjects: Array, _prev_subjects: Array) -> void

Why do we send each element isolated, instead of just sending the ScriptTask object from which we extract them directly, I hear you ask? Because this class can also be generated as part of a ScriptObject's subject methods, which does not utilize a ScriptTask object

count_found_things

func count_found_things() -> int

Returns the amount of things the calling script is trying to count.