Page 5 of 5
Re: Game definition jsons - Effect definition json
Posted: Tue Sep 12, 2023 9:22 am
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.
Re: Game definition jsons - Effect definition json
Posted: Sun Sep 24, 2023 5:42 pm
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)
Re: Game definition jsons - Effect definition json
Posted: Mon Sep 25, 2023 4:57 am
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.
Re: Game definition jsons - Effect definition json
Posted: Wed Dec 13, 2023 12:38 pm
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.
Re: Game definition jsons - Effect definition json
Posted: Wed Dec 13, 2023 9:11 pm
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
Re: Game definition jsons - Effect definition json
Posted: Mon Dec 18, 2023 11:55 am
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)
Re: Game definition jsons - Effect definition json
Posted: Thu Feb 29, 2024 12:32 pm
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)
Re: Game definition jsons - Effect definition json
Posted: Fri Mar 22, 2024 10:51 am
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.
Re: Game definition jsons - Effect definition json
Posted: Fri Jan 17, 2025 8:48 pm
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)
Re: Game definition jsons - Effect definition json
Posted: Fri Jan 17, 2025 8:49 pm
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
Re: Game definition jsons - Effect definition json
Posted: Tue May 13, 2025 4:09 pm
by Stratego (dev)
new spec:
CAN_TRAVEL_TRU_CASTER_TERRAIN, // is the effect or bullet can only go tru where the caster can.
Re: Game definition jsons - Effect definition json
Posted: Sun May 25, 2025 6:27 pm
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
Re: Game definition jsons - Effect definition json
Posted: Sun May 25, 2025 6:29 pm
by Stratego (dev)
new input in effects:
Code: Select all
"trnRevokers":[],-----------------------------------------------------------------------tech "type"-s that if all invented than revokes the ability button
Re: Game definition jsons - Effect definition json
Posted: Tue Jun 10, 2025 8:56 am
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
Re: Game definition jsons - Effect definition json
Posted: Tue Jun 10, 2025 5:19 pm
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)
Re: Game definition jsons - Effect definition json
Posted: Tue Feb 24, 2026 4:15 pm
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
Re: Game definition jsons - Effect definition json
Posted: Tue Feb 24, 2026 6:31 pm
by Stratego (dev)
new attribute:
Code: Select all
"trnEffectDefIDsOnCaster[]"; ----------------- list of effects: these effects will get attached to the caster when it gets casted