Game definition jsons - Effect definition json

Learn the .json format
used to define characteristics of units and other game elements
User avatar
makazuwr32
Posts: 7838
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: 15814
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: 15814
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: 15814
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: 15814
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: 15814
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: 15814
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: 15814
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.
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new specs:

Code: Select all

        IS_EFFECT_HEAL,           //this is kinda replacement of the usage of SYSTEM_EFFECT_SPECIAL_HEAL and SYSTEM_EFFECT_SPECIAL_MEND. Now it does only use the heal/mendBonus of target unit to calculate with.
        IS_EFFECT_MEND,           //(same as above)
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

Code: Select all

        CHG_POWER_BY_HEAL_RATE_MULTIPLY,         // (beware on stickers* see on end)in case of property changer effect: multiply the effect (the changing numerical values) with healRate of caster unit
        // - If this spec is used on any sticker effect in chain of related effects - every other sticker related effect have to have it too
        // this value must be on same "values" as normal heal so like the real heal value to be set here (and on ability-affect multiplication only muliply that.) so healrate should be "big" value, and multiplier-affect the small so like
        // eg. heal rate = 10, on ability it can be multiplied by 1,2,3. (not the other way that heal rate 1,2,3 and multiplier is 10-20-30)
        CHG_POWER_BY_MEND_RATE_MULTIPLY,         // (beware on stickers* see on end)in case of property changer effect: multiply the effect (the changing numerical values) with mendRate of caster unit
        // - If this spec is used on any sticker effect in chain of related effects - every other sticker related effect have to have it too
        // on mend  rate value it is important to be same restriction as written on on CHG_POWER_BY_HEAL_RATE_MULTIPLY
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new spec:
CAN_TRAVEL_TRU_CASTER_TERRAIN, // is the effect or bullet can only go tru where the caster can.
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new spec:

Code: Select all

HIDE_BUTTON_IF_REQUIREMENTS_MISSING, //if set the button will not appear when the requires techs not yet invented
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new input in effects:

Code: Select all

         "trnRevokers":[],-----------------------------------------------------------------------tech "type"-s that if all invented than revokes the ability button
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new spec:

Code: Select all

GFX_ALTER_DEFAULT_ATTACK_VISUALS    //if set and used as "weapon modifier" effect, than the visuals and sounds will be altered to the ones set on effect
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new thingie:

Code: Select all

         "trnAddedAbilityButtons":["EFFECTX", "EFFEXTY"]  //enchantments can use it - in this list there are effects that are (extra ability buttons for the enchanted unit)
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new effect trigger:

Code: Select all

- ON_ABILITY_USE, "single" type : when unit (having this active effect) uses and ability / spell / effect cast
Stratego (dev)
Site Admin
Posts: 15814
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) »

new attribute:

Code: Select all

         "trnEffectDefIDsOnCaster[]";  ----------------- list of effects: these effects will get attached to the caster when it gets casted
Post Reply

Return to “Game Definition .JSON”