Game definition file - Unit relations (eg. upgrading)

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

Game definition file - Unit relations (eg. upgrading)

Post by Stratego (dev) » Wed Dec 29, 2021 4:58 pm

In this file you can set 4 things
1. tech lines (whic unit upgrades to what unit after incenting which tech - one line is a whole upgrade tree tru all levels of that unit)
2. grantor techs (here you can set unlocker techs, that unlock one or more units or techs after being invented)
3. revoker techs (rare case, you can revoke a unit or tech to be buildable if this tech is invented)
4. instead of types (the old RndProd): you can set if one or two units when produced/summoned what other unit types should randomly (by weight) produced instead (like Auxiliary production in AOS)
x. features:
- you can have a line to be totally empty
- or you can start a remark by writing #REM: but dont forget to close the remark line with ;

1. tech lines

the format is little like the obsolete buildlist.techLines part, here is a few line example:
- one line represent one unit level up from starter unit type to most leveled up one
- there is option to put mutiple techs as requirement to level up separated by commas (common in AOF).

Code: Select all

#REM:tech lines - lines;
#Units;
#Flesh and blood Ranged;
UNIT_SKIRMISHER->[TECH_UPGRADE_UNIT_ELITE_SKIRMISHER]->UNIT_ELITE_SKIRMISHER->[TECH_UPGRADE_UNIT_SKIRMISHER_MASTER]->UNIT_SKIRMISHER_MASTER;
2. grantor techs

Code: Select all

##;
#REM:unlocker tech line;
[TECH_WRITING]->UNIT_DISBAND_KNIGHT,UNIT_GENOESE_CROSSBOWMAN,UNIT_MERCENARY_BILLMAN,UNIT_ROUTIER,UNIT_VARANGIAN,UNIT_CONDOTIERO,UNIT_CRETAN_ARCHER,UNIT_ENGLISH_LONGBOW,UNIT_MERCENARY_FOOT_KNIGHT,UNIT_CORSAIR_SHIP,UNIT_CORSAIR_CAPTAIN,UNIT_STRADIOT,UNIT_BALEARIC_SLINGER,UNIT_MERC_SHIELDER,UNIT_MERCENARY_RONIN;
3. revoker techs

Code: Select all

##;
#REM:obsoletizer tech line;
[TECH_ELF_JUMP_2]->TECH_ELF_JUMP;
4. instead of types

Code: Select all

##;
#REM:The new way of setting RND_PROD settings: production, transform and summoning randomizers;
#REM:Format: <assignment type PRODUCTION, SUMMON, ALL>:[<unit from 1>,<unit from 1>]->[<unit to 1>(<weight>),<unit to 2>(<weight>)];
#REM:where "from" units if eg. trained then instead of that unit the "to" ones will be randomized - based on weight;
ALL:[UNIT_MINING]->[UNIT_CART_GEMS(25),UNIT_CART_GEMS_TWO_THIRDS(25)];
PRODUCTION:[UNIT_ROMAN_AUX]->[UNIT_ROMAN_AUX_ARCHER(25),UNIT_DROMEDARII(20),UNIT_ROMAN_AUX_KNIGHT(20),UNIT_ROMAN_AUX_SKIRMISHER(20),UNIT_ROMAN_AUX_SPEAR(20),UNIT_ROMAN_AUX_SWORD(20)];

here is a whole AOS file:

Code: Select all

#REM:tech lines - lines;
#Units;
#Flesh and blood Ranged;
UNIT_SKIRMISHER->[TECH_UPGRADE_UNIT_ELITE_SKIRMISHER]->UNIT_ELITE_SKIRMISHER->[TECH_UPGRADE_UNIT_SKIRMISHER_MASTER]->UNIT_SKIRMISHER_MASTER;
UNIT_ARCHER->[TECH_UPGRADE_UNIT_CROSSBOWMAN]->UNIT_CROSSBOWMAN->[TECH_UPGRADE_UNIT_ARCHER_E]->UNIT_ARCHER_E;
UNIT_SLINGER->[TECH_SLINGER_MASTER]->UNIT_SLINGER_MASTER;
UNIT_LONGBOWMAN->[TECH_UPGRADE_LONGBOWMAN_UPG]->UNIT_LONGBOWMAN_UPG;
UNIT_CHARIOT_ARCHER->[TECH_UPGRADE_UNIT_CHARIOT_ARCHER_H]->UNIT_CHARIOT_ARCHER_H;
UNIT_HORSE_ARCHER->[TECH_UPGRADE_UNIT_HEAVY_HORSE_ARCHER]->UNIT_HEAVY_HORSE_ARCHER->[TECH_UPGRADE_UNIT_HORSE_ARCHER_UPG2]->UNIT_HEAVY_HORSE_ARCHER_UPG;
UNIT_ELEPHANT_ARCHER->[TECH_UPGRADE_UNIT_ELEPHANT_ARCHER_H]->UNIT_ELEPHANT_ARCHER_H;
UNIT_HORSE_CROSSBOWMAN->[TECH_UPGRADE_UNIT_HORSE_CROSSBOWMAN_UPG1]->UNIT_HORSE_CROSSBOWMAN_UPG;
UNIT_SKIRMISHER_HORSEMAN->[TECH_UPGRADE_UNIT_SKIRMISHER_HORSE_UPG1]->UNIT_SKIRMISHER_HORSE_UPG1;
#Melee Infantry;
UNIT_PIKEMAN->[TECH_UPGRADE_UNIT_GISARMEMAN]->UNIT_GISARMEMAN->[TECH_UPGRADE_UNIT_HALBERDIER]->UNIT_HALBERDIER;
UNIT_PIKEMAN_REAL->[TECH_UPGRADE_UNIT_PIKEMAN_REAL_UPG1]->UNIT_PIKEMAN_REAL_UPG1;
UNIT_VOULGIER->[TECH_UPGRADE_UNIT_VOULGIER_H]->UNIT_VOULGIER_H;
UNIT_SWORDMAN->[TECH_UPGRADE_UNIT_BROAD_SWORDSMAN]->UNIT_BROAD_SWORDMAN->[TECH_UPGRADE_UNIT_MAN_AT_ARMS]->UNIT_MAN_AT_ARMS;
UNIT_KNIGHT_FOOT->[TECH_UPGRADE_UNIT_KNIGHT_FOOT_UPG1]->UNIT_KNIGHT_FOOT_UPG1->[TECH_UPGRADE_UNIT_KNIGHT_FOOT_UPG2]->UNIT_KNIGHT_FOOT_UPG2;
UNIT_MACE->[TECH_UPGRADE_UNIT_MACEMAN_UPG1]->UNIT_MACE_UPG;
UNIT_FLAIL->[TECH_UPGRADE_UNIT_FLAIL_UPG1]->UNIT_FLAIL_UPG1;
UNIT_CELT->[TECH_UPGRADE_UNIT_CELT_UPG1]->UNIT_CELT_UPG1;
UNIT_AZTEC_SWORD->[TECH_UPGRADE_UNIT_AZTEC_SWORD_UPG1]->UNIT_AZTEC_SWORD_UPG1;
UNIT_ARMORED_SPEARMAN->[TECH_UPGRADE_ARMORED_SPEARMAN_UPG1]->UNIT_ARMORED_SPEARMAN_UPG1->[TECH_UPGRADE_ARMORED_SPEARMAN_UPG2]->UNIT_ARMORED_SPEARMAN_UPG2;
UNIT_GUERILLA->[TECH_UPGRADE_GUERILLA_UPG1]->UNIT_GUERILLA_UPG1->[TECH_UPGRADE_GUERILLA_UPG2]->UNIT_GUERILLA_UPG2;
UNIT_SAMURAI->[TECH_UPGRADE_UNIT_HATAMOTO]->UNIT_HATAMOTO;
UNIT_AXE_THROWER->[TECH_UPGRADE_UNIT_AXE_THROWER_UPG]->UNIT_AXE_THROWER_UPG;
UNIT_SHIELDER->[TECH_UPGRADE_DEFENDER]->UNIT_DEFENDER->[TECH_UPGRADE_UNIT_GUARDIAN]->UNIT_GUARDIAN;
UNIT_ZWEIHANDER->[TECH_UPGRADE_ZWEIHANDER_H]->UNIT_ZWEIHANDER_H;
#Mounted melee;
UNIT_CHARIOT->[TECH_UPGRADE_UNIT_CHARIOT_UPGRADE]->UNIT_CHARIOT_UPGRADE;
UNIT_KNIGHT->[TECH_UPGRADE_UNIT_HEAVY_KNIGHT]->UNIT_HEAVY_KNIGHT->[TECH_UPGRADE_UNIT_HEAVY_KNIGHT_CAVALIER]->UNIT_HEAVY_KNIGHT_CAVALIER;
UNIT_WAR_ELEPHANT->[TECH_UPGRADE_UNIT_WAR_ELEPHANT]->UNIT_HEAVY_WAR_ELEPHANT;
UNIT_HUSSAR->[TECH_UPGRADE_UNIT_HUSSAR_UPG1]->UNIT_HUSSAR_UPG1;
UNIT_LANCER->[TECH_UPGRADE_UNIT_LANCER_UPG]->UNIT_LANCER_UPG->[TECH_UPGRADE_UNIT_HEAVY_LANCER]->UNIT_HEAVY_LANCER;
UNIT_LIGHT_CAVALRY->[TECH_UPGRADE_UNIT_LIGHT_CAVALRY_ELITE]->UNIT_LIGHT_CAVALRY_ELITE;
UNIT_HUN_HUSSAR->[TECH_UPGRADE_UNIT_HUN_HUSSAR_UPG1]->UNIT_HUN_HUSSAR_UPG1;
UNIT_AXE_KNIGHT->[TECH_UPGRADE_UNIT_AXE_KNIGHT_UPG1]->UNIT_AXE_KNIGHT_UPG1;
UNIT_SHIELD_KNIGHT->[TECH_UPGRADE_UNIT_SHIELD_KNIGHT_H]->UNIT_SHIELD_KNIGHT_H->[TECH_UPGRADE_UNIT_SHIELD_KNIGHT_V]->UNIT_SHIELD_KNIGHT_V;
#Religious military;
UNIT_TEMPLAR->[TECH_UPGRADE_TEMPLAR_UPGRADE]->UNIT_TEMPLAR_UPGRADE;
UNIT_TEMPLAR_KNIGHT->[TECH_UPGRADE_TEMPLAR_UPGRADE]->UNIT_TEMPLAR_KNIGHT_UPGRADE;
UNIT_HOSPITALLER->[TECH_UPGRADE_UNIT_HOSPITALLER_UPG]->UNIT_HOSPITALLER_UPG;
UNIT_HOSPITALLER_HALBERD->[TECH_UPGRADE_UNIT_HOSPITALLER_UPG]->UNIT_HOSPITALLER_HALBERD_UPG1;
#Supportive;
UNIT_WORKER->[TECH_UPGRADE_UNIT_WORKER_UPG1]->UNIT_WORKER_UPG1;
UNIT_PRIEST->[TECH_UPGRADE_UNIT_HIGH_PRIEST]->UNIT_HIGH_PRIEST;
UNIT_MISSIONARY->[TECH_UPGRADE_UNIT_HIGH_PRIEST]->UNIT_MISSIONARY_UPG;
UNIT_SCOUT->[TECH_UPGRADE_UNIT_SCOUT_H]->UNIT_SCOUT_UPG1;

#Siege;
UNIT_MANTLET->[TECH_UPGRADE_UNIT_MANTLET_UPG1]->UNIT_MANTLET_UPG1;
UNIT_BATTERING_RAM_UNBURDENED->[TECH_UPGRADE_UNIT_BATTERING_RAM_H]->UNIT_BATTERING_RAM_UNBURDENED_UPG1->[TECH_UPGRADE_UNIT_BATTERING_RAM_M]->UNIT_BATTERING_RAM_UNBURDENED_UPG2;
UNIT_SIEGE_TOWER->[TECH_UPGRADE_UNIT_SIEGE_TOWER_UPG1]->UNIT_SIEGE_TOWER_UPG1;
UNIT_SIEGE_TOWER_PACKED->[TECH_UPGRADE_UNIT_SIEGE_TOWER_UPG1]->UNIT_SIEGE_TOWER_PACKED_UPG1;
UNIT_CATAPULT->[TECH_UPGRADE_UNIT_HEAVY_CATAPULT]->UNIT_HEAVY_CATAPULT;
UNIT_CATAPULT_PACKED->[TECH_UPGRADE_UNIT_HEAVY_CATAPULT]->UNIT_CATAPULT_PACKED_UPG1;
UNIT_CATAPULT_STAND->[TECH_UPGRADE_UNIT_HEAVY_CATAPULT]->UNIT_CATAPULT_STAND_UPG1;
UNIT_BALLISTA->[TECH_UPGRADE_UNIT_BALLISTA]->UNIT_HEAVY_BALLISTA;
UNIT_BALLISTA_STAND->[TECH_UPGRADE_UNIT_BALLISTA]->UNIT_BALLISTA_STAND_UPG1;
UNIT_BALLISTA_SIEGE->[TECH_UPGRADE_UNIT_BALLISTA]->UNIT_BALLISTA_SIEGE_UPG1;
UNIT_TREBUCHET->[TECH_UPGRADE_UNIT_TREBUCHET_E]->UNIT_TREBUCHET_E;
UNIT_TREBUCHET_PACKED->[TECH_UPGRADE_UNIT_TREBUCHET_E]->UNIT_TREBUCHET_PACKED_UPG1;
UNIT_TREBUCHET_STAND->[TECH_UPGRADE_UNIT_TREBUCHET_E]->UNIT_TREBUCHET_STAND_E;
UNIT_CANNONEER->[TECH_UPGRADE_UNIT_CANNONEER_1]->UNIT_CANNONEER_1;

#Ships;
UNIT_GREAT_TRANSPORT->[TECH_UPGRADE_TRANSPORTSHIP_E]->UNIT_GREAT_TRANSPORT_UPG1;
UNIT_SHIP_PRE_CARAVEL_BARCHA_LONGA->[TECH_UPGRADE_UNIT_SHIP_CARAVEL]->UNIT_SHIP_CARAVEL;
UNIT_CANNON_SHIP->[TECH_UPGRADE_UNIT_CANNON_SHIP_1]->UNIT_CANNON_SHIP_1->[TECH_UPGRADE_UNIT_CANNON_SHIP_2]->UNIT_CANNON_SHIP_2;
UNIT_DEMOLITION_SHIP->[TECH_UPGRADE_UNIT_DEMOLITION_SHIP_E]->UNIT_DEMOLITION_SHIP_E;
UNIT_SHIP_BATTLESHIP->[TECH_UPGRADE_UNIT_SHIP_BATTLESHIP_E]->UNIT_SHIP_BATTLESHIP_E;
UNIT_TRANSPORTSHIP->[TECH_UPGRADE_TRANSPORTSHIP_E]->UNIT_TRANSPORTSHIP_E;
UNIT_WARSHIP->[TECH_UPGRADE_UNIT_ADV_WARSHIP]->UNIT_ADV_WARSHIP->[TECH_UPGRADE_UNIT_WARSHIP_UPG2]->UNIT_WARSHIP_UPG2;
UNIT_CATAPULT_SHIP->[TECH_UPGRADE_UNIT_SHIP_SIEGE_UPG1+TECH_UPGRADE_UNIT_HEAVY_CATAPULT]->UNIT_CATAPULT_SHIP_UPG1;
UNIT_CATAPULT_SHIP_FIRE->[TECH_UPGRADE_UNIT_SHIP_SIEGE_UPG1+TECH_UPGRADE_UNIT_HEAVY_CATAPULT]->UNIT_CATAPULT_SHIP_FIRE_UPG1;
UNIT_SHIP_BALLISTA->[TECH_UPGRADE_UNIT_SHIP_SIEGE_UPG1+TECH_UPGRADE_UNIT_BALLISTA]->UNIT_SHIP_BALLISTA_UPG1;
UNIT_SHIP_BALLISTA_AREA->[TECH_UPGRADE_UNIT_SHIP_SIEGE_UPG1+TECH_UPGRADE_UNIT_BALLISTA]->UNIT_SHIP_BALLISTA_AREA_UPG1;
UNIT_SHIP_GREEKFIRE->[TECH_UPGRADE_UNIT_SHIP_GREEKFIRE_UPG1]->UNIT_SHIP_GREEKFIRE_UPG1;
UNIT_MEND_SHIP->[TECH_UPGRADE_UNIT_SHIP_MEND_UPG1]->UNIT_MEND_SHIP_UPG1;
UNIT_TURTLE_SHIP->[TECH_UPGRADE_UNIT_SHIP_TURTLE_UPG1]->UNIT_TURTLE_SHIP_UPG1;
UNIT_FIRESHIP->[TECH_QUADRIREME]->UNIT_QUADRIREME->[TECH_UPGRADE_QUADRIREME_E]->UNIT_QUADRIREME_E;
UNIT_BLD_SHIP_SEA_MINE->[TECH_UPGRADE_UNIT_DEMOLITION_SHIP_E]->UNIT_BLD_SHIP_SEA_MINE_UPG;

#Towers ;
UNIT_FOREST_SENTRY->[TECH_UPRADE_TOWER_MANNING]->UNIT_FOREST_SENTRY_UPG;
UNIT_OUTPOST->[TECH_UPRADE_TOWER_MANNING]->UNIT_OUTPOST_UPG;
UNIT_TOWER->[TECH_UPRADE_TOWER_REINFORCED]->UNIT_TOWER_UPG;
UNIT_TOWER_SLING->[TECH_UPRADE_MUSKET_TOWER]->UNIT_TDS_TOWER6;
UNIT_TDS_TOWER4->[TECH_UPRADE_TDS_TOWER4_UPG1_BALLISTA]->UNIT_TDS_TOWER4_UPG1_BALLISTA;
UNIT_BUILDING_CANNON_TOWER->[TECH_UPRADE_CANNON_TOWER_UPG1]->UNIT_BUILDING_CANNON_TOWER_UPG1;

#Buildings self upgrades;
UNIT_TC->[TECH_UPGRADE_UNIT_TC_UPG1]->UNIT_TC_UPG1;
UNIT_BUILDING_ARCHERY->[TECH_UPGRADE_UNIT_BLD_ARCHERY_UPG]->UNIT_BUILDING_ARCHERY_UPG;
UNIT_BUILDING_SIEGE->[TECH_UPGRADE_UNIT_BLD_SIEGE_UPG]->UNIT_BUILDING_SIEGE_UPG;
UNIT_BUILDING_BARRACKS->[TECH_UPGRADE_UNIT_BLD_BARRACKS_UPG]->UNIT_BUILDING_BARRACKS_UPG;
UNIT_BATTERING_RAM->[TECH_UPGRADE_UNIT_BATTERING_RAM_H]->UNIT_BATTERING_RAM_H->[TECH_UPGRADE_UNIT_BATTERING_RAM_M]->UNIT_BATTERING_RAM_M;
UNIT_BUILDING_STABLE->[TECH_UPGRADE_UNIT_BLD_STABLE_UPG]->UNIT_BUILDING_STABLE_UPG;
UNIT_BUILDING_CHURCH->[TECH_UPGRADE_UNIT_BLD_CATHEDRAL]->UNIT_BUILDING_CHURCH_CATHEDRAL;
UNIT_BUILDING_DOCK->[TECH_UPGRADE_UNIT_BLD_DOCK_UPG]->UNIT_BUILDING_DOCK_UPG;
UNIT_MEGA_BUILDING_CASTLE->[TECH_UPGRADE_UNIT_BLD_MEGA_CASTLE_UPG]->UNIT_MEGA_BUILDING_CASTLE_UPG;





##;
#REM:unlocker tech line;
[TECH_WRITING]->UNIT_DISBAND_KNIGHT,UNIT_GENOESE_CROSSBOWMAN,UNIT_MERCENARY_BILLMAN,UNIT_ROUTIER,UNIT_VARANGIAN,UNIT_CONDOTIERO,UNIT_CRETAN_ARCHER,UNIT_ENGLISH_LONGBOW,UNIT_MERCENARY_FOOT_KNIGHT,UNIT_CORSAIR_SHIP,UNIT_CORSAIR_CAPTAIN,UNIT_STRADIOT,UNIT_BALEARIC_SLINGER,UNIT_MERC_SHIELDER,UNIT_MERCENARY_RONIN;
[TECH_TOWN_PATROL]->UNIT_PEASANT,UNIT_PEASANT_WARSCYTHE,UNIT_PEASANT_AXE,UNIT_PEASANT_GRAIN_FLAIL,UNIT_PEASANT_HOE,UNIT_PEASANT_MORNINGSTAR,UNIT_PEASANT_PITCHFORK,UNIT_PEASANT_SCYTHE,UNIT_PEASANT_SHOVEL,UNIT_PEASANT_SPEAR,UNIT_PEASANT_STONE,UNIT_PEASANT_TORCH;
[TECH_ARCHERY]->TECH_ARCHERY_LV2;
[TECH_ARMOR_ARCHER_LV1]->TECH_ARMOR_ARCHER_LV2;
[TECH_ARMOR_CAVALRY_LV1]->TECH_ARMOR_CAVALRY_LV2;
[TECH_ARMOR_INFANTRY_LV1]->TECH_ARMOR_INFANTRY_LV2;
[TECH_SWORD_LV1]->TECH_SWORD_LV2;
[TECH_REACH]->TECH_UPGRADE_UNIT_HUSSAR_UPG1;
[TECH_SPACIOUS_CHARIOTS]->TECH_SPACIOUS_ELEPHANT_CASTLES;
[TECH_WHEEL_BLADES]->EFFECT_WHEEL_BLADES;
[TECH_ASTRONOMY]->TECH_NAVIGATION;
[TECH_RANGED_DAMAGE_LV1]->TECH_RANGED_DAMAGE_LV2;
[TECH_RANGED_RANGE_LV1]->TECH_RANGED_RANGE_LV2;
[TECH_BALLISTICS]->UNIT_CATAPULT,UNIT_CATAPULT_SHIP,UNIT_TREBUCHET,UNIT_HEAVY_CATAPULT,UNIT_TDS_TOWER4,UNIT_TDS_TOWER4_UPG1_BALLISTA,UNIT_CATAPULT_PACKED,UNIT_CATAPULT_PACKED_UPG1,UNIT_CATAPULT_STAND,UNIT_CATAPULT_STAND_UPG1,UNIT_TREBUCHET_PACKED,UNIT_TREBUCHET_STAND,TECH_AREA_DAMAGE,TECH_UPGRADE_UNIT_HEAVY_CATAPULT,TECH_GUNPOWDER,TECH_UPGRADE_UNIT_TREBUCHET_E,TECH_BALLISTA_SIEGE_MODE,UNIT_BALLISTA_STAND,UNIT_BALLISTA_STAND_UPG1,UNIT_SHIP_BALLISTA_AREA,UNIT_SHIP_BALLISTA_AREA_UPG1,TECH_FIELD_ARTILLERY_BALLISTICS;
[TECH_AREA_DAMAGE]->TECH_CATAPULT_FIRE_MODE;
[TECH_CATAPULT_FIRE_MODE]->UNIT_CATAPULT_STAND,UNIT_CATAPULT_STAND_UPG1,UNIT_CATAPULT_SHIP_FIRE,UNIT_CATAPULT_SHIP_FIRE_UPG1;
[TECH_FLIGHT]->UNIT_ORNITHOPTER,UNIT_SW_SPACESHIP;
[TECH_MACHINERY]->UNIT_TOWER_GATLING,UNIT_TOWER_BARRAGE,UNIT_TOWER_FLAME;
[TECH_UPGRADE_UNIT_CROSSBOWMAN]->TECH_UPGRADE_UNIT_ARCHER_E;
[TECH_UPGRADE_UNIT_ELITE_SKIRMISHER]->TECH_UPGRADE_UNIT_SKIRMISHER_MASTER;
[TECH_UPGRADE_UNIT_GISARMEMAN]->TECH_UPGRADE_UNIT_HALBERDIER;
[TECH_UPGRADE_UNIT_BROAD_SWORDSMAN]->TECH_UPGRADE_UNIT_MAN_AT_ARMS;
[TECH_UPGRADE_UNIT_HEAVY_KNIGHT]->TECH_UPGRADE_UNIT_HEAVY_KNIGHT_CAVALIER;
[TECH_UPGRADE_UNIT_LANCER_UPG]->TECH_UPGRADE_UNIT_HEAVY_LANCER;
[TECH_UPGRADE_UNIT_ADV_WARSHIP]->TECH_UPGRADE_UNIT_WARSHIP_UPG2;
[TECH_GUNPOWDER]->UNIT_TANEGASHIMA_ASHIGARU,UNIT_CANNONEER,UNIT_BUILDING_CANNON_TOWER,UNIT_BUILDING_CANNON_TOWER_UPG1,UNIT_CANNON_SHIP,UNIT_MUSKETEER,UNIT_HWACHA,UNIT_CANNON_SHIP_1,UNIT_CANNON_SHIP_2,UNIT_CANNONEER_1,UNIT_TURTLE_MACHINE,UNIT_CANNONEER_UNLIGHT,UNIT_CANNONEER_1_UNLIGHT,UNIT_HWACHA_UNLIGHT,UNIT_ELEPHANT_HANDGONNE,UNIT_HORSE_HANDGONNE,UNIT_REITER,UNIT_STRELET,UNIT_ELEPHANT_CANNON,UNIT_STRELET_SHOOTING,TECH_UPRADE_MUSKET_TOWER,TECH_UPGRADE_UNIT_CANNON_SHIP_1,TECH_UPGRADE_UNIT_CANNON_SHIP_2,TECH_UPGRADE_UNIT_CANNONEER_1,TECH_UPGRADE_UNIT_HUN_HUSSAR_UPG1,TECH_UPGRADE_UNIT_SHIP_TURTLE_UPG1,TECH_HOOP_AND_STAVE_CANNON_CONSTRUCTION,TECH_RELIABLE_ROCKETS;
[TECH_UPGRADE_UNIT_HEAVY_HORSE_ARCHER]->TECH_UPGRADE_UNIT_HORSE_ARCHER_UPG2;
[TECH_UPGRADE_DEFENDER]->TECH_UPGRADE_UNIT_GUARDIAN;
[TECH_QUADRIREME]->TECH_UPGRADE_QUADRIREME_E;
[TECH_UPGRADE_UNIT_BATTERING_RAM_H]->TECH_UPGRADE_UNIT_BATTERING_RAM_M;
[TECH_UPGRADE_UNIT_SHIELD_KNIGHT_H]->TECH_UPGRADE_UNIT_SHIELD_KNIGHT_V;
[TECH_UPGRADE_TRANSPORTSHIP_E]->TECH_UPGRADE_UNIT_SHIP_MEND_UPG1;
[TECH_UPGRADE_UNIT_CANNON_SHIP_1]->TECH_UPGRADE_UNIT_CANNON_SHIP_2;
[TECH_UPGRADE_UNIT_KNIGHT_FOOT_UPG1]->TECH_UPGRADE_UNIT_KNIGHT_FOOT_UPG2;
[TECH_KUSARIGAMAJITSU]->UNIT_NINJA_KUSARIGAMA;
[TECH_UPGRADE_ARMORED_SPEARMAN_UPG1]->TECH_UPGRADE_ARMORED_SPEARMAN_UPG2;
[TECH_UPGRADE_GUERILLA_UPG1]->TECH_UPGRADE_GUERILLA_UPG2;
[TECH_UNLOCK_DECLARE_ONI]->TECH_UNLOCK_MASK_OF_ONI;
[TECH_UNLOCK_MARIAN_REFORMS]->UNIT_ROMAN_LEGION,TECH_UNLOCK_AUXILA_SUMMONS;
[TECH_UPGRADE_UNIT_SHIP_CARAVEL]->UNIT_SHIP_WAR_CARAVEL;
[TECH_UPGRADE_UNIT_CANNONEER_1]->TECH_UPRADE_CANNON_TOWER_UPG1,TECH_UPGRADE_UNIT_CANNON_SHIP_1;
[TECH_UPGRADE_UNIT_SHIP_SIEGE_UPG1]->TECH_UPGRADE_UNIT_CANNON_SHIP_1;
[TECH_UPGRADE_UNIT_BALLISTA]->TECH_UPRADE_TDS_TOWER4_UPG1_BALLISTA;
[TECH_UPRADE_TOWER_REINFORCED]->TECH_UPRADE_CANNON_TOWER_UPG1,TECH_UPRADE_TDS_TOWER4_UPG1_BALLISTA;
[TECH_ADVANCED_WHEELWRIGHTING]->TECH_ADVANCED_SIEGE_LOGISTICS;
[TECH_FIELD_ARTILLERY_BALLISTICS]->TECH_ADVANCED_BALLISTICS;
[TECH_ADVANCED_BALLISTICS]->TECH_HOOP_AND_STAVE_CANNON_CONSTRUCTION,TECH_RELIABLE_ROCKETS;
[TECH_HOOP_AND_STAVE_CANNON_CONSTRUCTION]->TECH_HOOP_AND_STAVE_CANNON_CONSTRUCTION_ON_ABILITY;
##;
#REM:obsoletizer tech line;

##;
#REM:The new way of setting RND_PROD settings: production, transform and summoning randomizers;
#REM:Format: <assignment type PRODUCTION, SUMMON, ALL>:[<unit from 1>,<unit from 1>]->[<unit to 1>(<weight>),<unit to 2>(<weight>)];
#REM:where "from" units if eg. trained then instead of that unit the "to" ones will be randomized - based on weight;
ALL:[UNIT_MINING]->[UNIT_CART_GEMS(25),UNIT_CART_GEMS_TWO_THIRDS(25)];
PRODUCTION:[UNIT_ROMAN_AUX]->[UNIT_ROMAN_AUX_ARCHER(25),UNIT_DROMEDARII(20),UNIT_ROMAN_AUX_KNIGHT(20),UNIT_ROMAN_AUX_SKIRMISHER(20),UNIT_ROMAN_AUX_SPEAR(20),UNIT_ROMAN_AUX_SWORD(20)];



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

Re: Game definition file - Unit relations (eg. upgrading)

Post by Stratego (dev) » Wed Dec 29, 2021 4:59 pm

please check the data and tell me if u see any flaws, or have idea what else to put here or u like it in some other format.

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

Re: Game definition file - Unit relations (eg. upgrading)

Post by Stratego (dev) » Thu Dec 30, 2021 2:20 pm

Updated structure (not that anyone is interested lol :)) sample from AOS:

Code: Select all

<obsolete>

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

Re: Game definition file - Unit relations (eg. upgrading)

Post by Stratego (dev) » Fri Jan 28, 2022 11:36 am

new: instead of types setting in file (the from now obsolete RndProd setting in this new place)

Post Reply

Return to “Game Definition .JSON”