Difference between revisions of "List of bonus limiters"

From VCMI Project Wiki
Jump to: navigation, search
(Replaced content with "{{Template:MovedToWebpage|https://vcmi.eu/modders/Bonus/Bonus_Limiters/}}")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Predefined Limiters==
+
{{Template:MovedToWebpage|https://vcmi.eu/modders/Bonus/Bonus_Limiters/}}
The limiters take no parameters:
 
* SHOOTER_ONLY
 
* DRAGON_NATURE
 
* IS_UNDEAD
 
 
 
Example:
 
<syntaxhighlight lang="javascript">
 
"limiters" : [ "SHOOTER_ONLY" ]
 
</syntaxhighlight>
 
==Customizable Limiters==
 
* HAS_ANOTHER_BONUS_LIMITER
 
Parameters:
 
** Bonus type
 
** (optional) bonus subtype
 
* CREATURE_TYPE_LIMITER
 
Parameters:
 
** Creature id (string)
 
** (optional) include upgrades - default is false
 
 
 
Example:
 
<syntaxhighlight lang="javascript">
 
"limiters": [ {
 
"type":"CREATURE_TYPE_LIMITER",
 
"parameters": [ "angel", true ]
 
} ],
 
</syntaxhighlight>
 
==Aggregate Limiters==
 
The following limiters must be specified as the first element of a list, and operate on the remaining limiters in that list:
 
* allOf (default when no aggregate limiter is specified)
 
* anyOf
 
* noneOf
 
 
 
Example:
 
<syntaxhighlight lang="javascript">
 
"limiters" : [
 
    "noneOf",
 
    "IS_UNDEAD",
 
    {
 
        "type" : "HAS_ANOTHER_BONUS_LIMITER",
 
        "parameters" : [ "SIEGE_WEAPON" ]
 
    }
 
]
 
</syntaxhighlight>
 
{{Bonuses}}
 

Latest revision as of 16:22, 16 July 2024

Logo256.png    Page moved to VCMI-Homepage