Game definition jsons - Transformation definitions

Learn the .json format
used to define characteristics of units and other game elements
Post Reply
Stratego (dev)
Site Admin
Posts: 8762
Joined: Fri Apr 25, 2014 9:28 pm

Game definition jsons - Transformation definitions

Post by Stratego (dev) » Wed Sep 13, 2017 8:31 pm

in tarnsforms.json you can define how transformations should behave (eg. centaur ranged/melee form transition)

also there are options how the transformed units should keep the enchants it had prior, or keep the hp - or starting as new unit and so on, here are the options:
// KEEP_HP = needHPTransfer;
// KEEP_NAME = needNameTransfer
// KEEP_ENCHANTS = needEnchantTransfer
// TO_GAIA = needChangePlayerToGaia
// RESET_ACTION_MOVEMENT reinitializeActionAndMovement
// DROP_ID = needDropID


json content:

Code: Select all

[
{"name": "TO_TREASURE_SHIP",     "units": ["UNIT_UND_TREASURE_SHIP"],              "needs": []},
{"name": "SPECTRAL_REAPER",      "units": ["UNIT_UND_SPECTRAL_RIDER_UNM"],         "needs": ["KEEP_ENCHANTS"]},
{"name": "TO_UNDEAD_ARCHER",     "units": ["UNIT_UND_SKELETON_ARCHER"],            "needs": ["KEEP_ENCHANTS"]},
{"name": "TO_UNDEAD_SPEARMAN",   "units": ["UNIT_UND_SKELETON_SPEARMAN"],          "needs": ["KEEP_ENCHANTS"]},
{"name": "TO_UNDEAD_SWORDMAN",   "units": ["UNIT_UND_SKELETON"],                   "needs": ["KEEP_ENCHANTS"]},
{"name": "TO_CORPSE_HUMAN",      "units": ["UNIT_DEAD_HUMAN1"],                    "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_MOUNTED",    "units": ["UNIT_DEAD_MOUNTED1"],                  "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_SPEARMAN",   "units": ["UNIT_DEAD_SPEARMAN1"],                 "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_ARCHER",     "units": ["UNIT_DEAD_ARCHER1"],                   "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_SHIP",       "units": ["UNIT_DEAD_SHIP"],                      "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CENTAUR_MELEE",     "units": ["UNIT_ELF_CENTAUR_MELEE"],              "needs": ["KEEP_HP", "KEEP_NAME", "KEEP_ENCHANTS"]},
{"name": "TO_CENTAUR_RANGER",    "units": ["UNIT_ELF_CENTAUR_RANGED"],             "needs": ["KEEP_HP", "KEEP_NAME", "KEEP_ENCHANTS"]},
{"name": "TO_FRODO",             "units": ["UNIT_HOBBIT_FRODO"],                   "needs": ["KEEP_HP", "KEEP_NAME", "KEEP_ENCHANTS"]},
{"name": "TO_FRODO_RINGED",      "units": ["UNIT_FARAMIR_RANGED"],                 "needs": ["KEEP_HP", "KEEP_NAME", "KEEP_ENCHANTS"]},
{"name": "TO_FARAMIR_RANGED",    "units": ["UNIT_UND_TREASURE_SHIP"],              "needs": ["KEEP_HP", "KEEP_NAME", "KEEP_ENCHANTS"]},
{"name": "TO_FARAMIR_MELEE",     "units": ["UNIT_FARAMIR"],                        "needs": ["KEEP_HP", "KEEP_NAME", "KEEP_ENCHANTS"]},
{"name": "VAMPIRE_BAT",          "units": ["UNIT_UND_VAMPIRE_BAT_FORM"],           "needs": ["KEEP_HP", "KEEP_NAME", "KEEP_ENCHANTS"]}
]

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

Re: Game definition jsons - Transformation definitions

Post by Stratego (dev) » Mon Nov 27, 2017 8:57 pm

new transformations in aof for the dying units turning to corpse
{"name": "TO_CORPSE_HUMAN", "units": ["UNIT_DEAD_HUMAN1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_MOUNTED", "units": ["UNIT_DEAD_MOUNTED1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_SPEARMAN", "units": ["UNIT_DEAD_SPEARMAN1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_ARCHER", "units": ["UNIT_DEAD_ARCHER1"], "needs": ["TO_GAIA", "DROP_ID"]},
{"name": "TO_CORPSE_SHIP", "units": ["UNIT_DEAD_SHIP"], "needs": ["TO_GAIA", "DROP_ID"]},

Post Reply

Return to “Game Definition .JSON”