Game definition jsons - Effect definition json

Learn the .json format
used to define characteristics of units and other game elements
User avatar
DoomsdayDragonfire
Posts: 796
Joined: Tue Sep 06, 2016 6:20 am
Location: Terra - Brasil

Re: Game definition jsons - Effect definition json

Post by DoomsdayDragonfire » Wed Aug 28, 2019 6:10 am

Ok it is here:

https://www.androidutils.com/forum/view ... 53f94d96f7

If you have any questions, you can leave there and i will answer later... (currently is +3AM, i made the post while the idea was fresh, but i need to sleep 😅)
Stay Awesome!
(ノಠ益ಠ)ノ彡┻━┻

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Fri Aug 30, 2019 6:42 pm

new opions under the specs part

Code: Select all

        RESISTED_BY_DODGE_MELEE,  // probability is calculated as dodge melee is calculated
        RESISTED_BY_DODGE_RANGED, // probability is calculated as dodge ranged is calculated
        RESISTED_BY_HP,           // probability is calculated based on DEFINE_UNIT_BIG_HP_VALUE and unit hp
        RESISTED_BY_POWER,        // probability is calculated based on DEFINE_UNIT_BIG_POWER_VALUE and unit hp

User avatar
Endru1241
Posts: 610
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Game definition jsons - Effect definition json

Post by Endru1241 » Sun Sep 15, 2019 4:23 pm

There is no list of "effectTriggers", that's set when "effectBehaviour":"TRIGGERED_EFFECT".
That would be helpful.

Applicable effects ids put in "trnSystemSpecialEffectID" could also help.
Age of Strategy design leader

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Sun Sep 15, 2019 5:14 pm

updated:
"effectTriggers":["ON_DAMAGED"], ----------------------------------------------------------------------- what event triggers the effect: ON_DAMAGED, ON_DAMAGED_AMOUNT, ON_DIED, ON_KILL_ENEMY, ON_DAMAGES, ON_DAMAGES_AMOUNT



system special effects are under "system special effects"

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Tue Dec 10, 2019 4:35 pm

IS_TERRAIN_SOURCE, // this effect is from a terrain affection (like in woods foot units can have +1 defense)

(first steps of making terrain put some effect on units)

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Tue Dec 10, 2019 11:46 pm

i made a little differntly - so IS_TERRAIN_SOURCE is removed.

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Sun Jan 19, 2020 6:01 pm

New feature:

"chancePercent":1.0,----------------------------------------------------------------chance of casting the spell, here use 1=100% if you want to be always
// Also on WEAPON_SLOT_1,WEAPON_EFFECT_SLOT_HEAL the probability to take effect on targeted/damaged unit (eg. is weapon fire effect sticks on enemy or not)

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Sun Jan 19, 2020 10:53 pm

new kind of effects:
public static final int SYSTEM_SPECIAL_EFFECT_RELOCATE = 118; // used to "teleport" the caster unit to the target location, target is read by the green environmental floating action.
public static final int SYSTEM_SPECIAL_EFFECT_REVEAL = 119; // used to reveal a spot on target location, target is read by the green environmental floating action.

User avatar
Alexander82
Posts: 6922
Joined: Thu Feb 26, 2015 8:18 pm

Re: Game definition jsons - Effect definition json

Post by Alexander82 » Mon Jan 20, 2020 3:26 am

You are great!
Age of Fantasy design leader

User avatar
Alexander82
Posts: 6922
Joined: Thu Feb 26, 2015 8:18 pm

Re: Game definition jsons - Effect definition json

Post by Alexander82 » Mon Jan 20, 2020 3:29 am

Stratego (dev) wrote:
Sun Jan 19, 2020 10:53 pm
new kind of effects:
public static final int SYSTEM_SPECIAL_EFFECT_RELOCATE = 118; // used to "teleport" the caster unit to the target location, target is read by the green environmental floating action.
public static final int SYSTEM_SPECIAL_EFFECT_REVEAL = 119; // used to reveal a spot on target location, target is read by the green environmental floating action.
btw can the caster also teleport others?
Age of Fantasy design leader

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Mon Jan 20, 2020 5:55 am

no, he can not.

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Mon Jan 20, 2020 5:59 am

also never forget that the AI will not use these ever.
(until i implement it)

User avatar
Alexander82
Posts: 6922
Joined: Thu Feb 26, 2015 8:18 pm

Re: Game definition jsons - Effect definition json

Post by Alexander82 » Wed Jan 22, 2020 12:36 pm

Ok, thanks!
Age of Fantasy design leader

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Fri Jan 24, 2020 2:33 pm

new effect special settings:
IS_TERRAIN_SOURCE, // this effect is from a terrain affection (like in woods foot units can have +1 defense)
WEARS_OFF_AFTER_MOVE, // the effect (if on unit as a enchantment) will wears off after unit moves
WEARS_OFF_AFTER_ATTACK, // the effect (if on unit as a enchantment) will wears off after unit attacs
WEARS_OFF_AFTER_ABILITY_USE, // the effect (if on unit as a enchantment) will wears off after unit uses spell or ability

Jasondunkel
Posts: 19
Joined: Wed Oct 16, 2019 2:52 pm

Re: Game definition jsons - Effect definition json

Post by Jasondunkel » Fri Jan 24, 2020 4:49 pm

Sounds good and very intresting

User avatar
Alexander82
Posts: 6922
Joined: Thu Feb 26, 2015 8:18 pm

Re: Game definition jsons - Effect definition json

Post by Alexander82 » Fri Jan 24, 2020 6:06 pm

Stratego (dev) wrote:
Fri Jan 24, 2020 2:33 pm
new effect special settings:
IS_TERRAIN_SOURCE, // this effect is from a terrain affection (like in woods foot units can have +1 defense)
WEARS_OFF_AFTER_MOVE, // the effect (if on unit as a enchantment) will wears off after unit moves
WEARS_OFF_AFTER_ATTACK, // the effect (if on unit as a enchantment) will wears off after unit attacs
WEARS_OFF_AFTER_ABILITY_USE, // the effect (if on unit as a enchantment) will wears off after unit uses spell or ability
Thanks! You've bben really fast!
Hiding spells coming!
Age of Fantasy design leader

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Sun Feb 02, 2020 9:42 pm

New:
"groups":["GROUP1", "GROUP2"], -------------------------------------------------- the group(s) of this effect (used in eg. removesEffectGroups), you can configure any string value here
"removesEffectGroups":["GROUP1", "GROUP2"], ----------------------------------- list of effect groups that effects will be removed when this effect applied, combines with removesBuffs! "NONE" considered as "ALL"

changed:
"removesBuffs":"ENEMYSPELLS", --------------------------------------------------- removes buffs debuffs or all (eg. poison/slowing etc) ENEMYSPELLS/ALL/NONE Beware! removesEffectGroups relies on this!

User avatar
Alexander82
Posts: 6922
Joined: Thu Feb 26, 2015 8:18 pm

Re: Game definition jsons - Effect definition json

Post by Alexander82 » Sun Feb 02, 2020 10:04 pm

Grat job!
Age of Fantasy design leader

Stratego (dev)
Site Admin
Posts: 9925
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Effect definition json

Post by Stratego (dev) » Fri Feb 21, 2020 6:18 pm

new spec option:
IS_EFFECT_RANGE_ABSOLUTE, // if set than effect has absolute range - independent from caster spell range.

Post Reply

Return to “Game Definition .JSON”