Game definition jsons - Effect definition json

Learn the .json format
used to define characteristics of units and other game elements
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Game definition jsons - Effect definition json

Post by makazuwr32 »

Stratego (dev) wrote: Tue Sep 12, 2023 9:16 am new spec:

Code: Select all

UNIQUE_WITHIN_GROUP,            // If set it enables checking this: In its group only one can be "sticked" on a unit at the same time (all such effects needs this), do not set on Aura effects, only normal unit targeted sticky spells
Removed old message.

It will work next way:
Multiple effects with same group set for them will be given this spec.
When you try to apply effect with this group and spec it will check unit for having any other effects from same group and having this spec and remove it. After it will apply new effect.
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15748
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

from now these target setting on AURA effects is matter:
FRIENDLY,
FRIENDLY_BUT_NOT_ME,
ENEMY_OR_FRIENDLY,
ENEMY_OR_FRIENDLY_BUT_NOT_ME,


as till now no auras affected the caster itself,
but from now all FRIENDLY and ENEMY_OR_FRIENDLY will affect CASTER too!
so check what you have set on your auras.

now i have converted all of these projects
AOS (however Endru migt revise manually in his pack)
AOF (i owned the assets atm)
AOW (i owned the assets atm)
AOMW (i owned the assets atm)
AOG (emailed Midonik to update the changed files)
AOA (emailed Noad to update the changed files)
Stratego (dev)
Site Admin
Posts: 15748
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new transform option

SYSTEM_SPECIAL_EFFECT_TRANSFORM2 = 124; //[!!!OBSOLETE!!! use SYSTEM_SPECIAL_EFFECT_TRANSFORM_BY_GROUP]secondary transfom, dont use for abilities, executes transform definition, target unit id can ONLY be set on the "carrier" unit of this effect (use for eg. turn unit to this zombie unit)


public static final int SYSTEM_SPECIAL_EFFECT_TRANSFORM_BY_GROUP = 125; ////set the transform name in dataString, executes transform definition, target unit id can ONLY be defined via trnTransformToList. Alternate of SYSTEM_SPECIAL_EFFECT_TRANSFORM1. So a unit can have any number of transformations - each defined in trnTransformToGroups Array. An effect can execute a particular transform from this list.
Stratego (dev)
Site Admin
Posts: 15748
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new spec:

Code: Select all

CAN_CAST_FROM_CARRIER,         // if isCarrierLetCarriedUnitsToShoot=false on unit than basically no abilites can run, with this setting unit can use the ability.
Stratego (dev)
Site Admin
Posts: 15748
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

seems i forgot to document this spec option:

Code: Select all

IS_AURA_AFFECTS_ONLY_INSIDE,     //this aura is only for carriers, and this aura will affect only units inside
Stratego (dev)
Site Admin
Posts: 15748
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

2 new specs in effect:

Code: Select all

        CAN_CAST_INTO_CARRIER,         // if set than ignores the building setting if inner units are targetable or not - they will be targetable (eg. handgrenade in AOMW)
        CAN_AFFECT_ALL_IN_CARRIER,     // if targets a TC or combined with CAN_CAST_INTO_CARRIER the effect can affect all units inside (that is targetable with the effect) (eg. handgrenade in AOMW)
Stratego (dev)
Site Admin
Posts: 15748
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new spec:
GFX_USE_UNIT_IMAGE_AS_PROJECTILE, //in AOW the bomber plane's bombing ability should use the plane itself to move over target (like melee attacks do)
Stratego (dev)
Site Admin
Posts: 15748
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new options on effects:

Code: Select all

        CAN_CAST_FROM_ITS_BUILDER,     // The effect can only be used inside a factory this unit was/can be built.
        CAN_CAST_FROM_ITS_TRANSFORM_BUILDER, // Transform case: The transform effect can only be used inside a factory where the target unit type can be built.
Post Reply

Return to “Game Definition .JSON”