Skip to content
Divided by Zer0 edited this page Mar 9, 2022 · 63 revisions

SP

Extends: ScriptProperties < Reference

Description

SP stands for "ScriptProperties".

This dummy class exists to allow games to extend the core ScriptProperties class provided by CGF, with their own requirements.

This is particularly useful when needing to adjust filters for the game's needs.

Constants Descriptions

FILTER_DEMONSTRATION

const FILTER_DEMONSTRATION: String = "is_demonstration"

A demonstration filter setup. If you specify this value in your card script definition for a filter, then it will look for the same key in the trigger dictionary. If it does not, or the value does not match then it will consider this trigger invalid for execution.

Method Descriptions

filter_trigger (static)

func filter_trigger(card_scripts, trigger_card, owner_card, trigger_details) -> bool

This call has been setup to call the original, and allow futher extension simply create new filter

Clone this wiki locally