Skip to content

CustomScripts

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

CustomScripts

Extends: Reference

Description

This class contains very custom scripts definitionsa for objects that need them

The definition happens via object name

Property Descriptions

costs_dry_run

var costs_dry_run: bool

Method Descriptions

_init

func _init(_dry_run) -> void

custom_script

func custom_script(script: ScriptTask) -> void

This fuction executes custom scripts

It relies on the definition of each script being based the object's name Therefore the only thing we need, is the object itself to grab its name And to have a self-reference in case it affects itself

You can pass a predefined subject, but it's optional.

custom_alterants

func custom_alterants(script: ScriptAlter) -> int

warning-ignore:unused_argument

Clone this wiki locally