-
-
Notifications
You must be signed in to change notification settings - Fork 105
Divided by Zer0 edited this page Mar 9, 2022
·
63 revisions
Extends: ScriptProperties < Reference
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.
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.
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