Game definition jsons - Races

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

Game definition jsons - Races

Post by Stratego (dev) » Tue Sep 12, 2017 8:31 pm

here is how races defined in races.json

AOF:

Code: Select all

[
{"assetIconName":"race_humans.png","name":"Humans","raceID":100,"raceIDString":"RACE_HUMAN"},
{"assetIconName":"race_orcs.png","name":"Orks","raceID":101,"raceIDString":"RACE_ORC"},
{"assetIconName":"race_undead.png","name":"Undead","raceID":102,"raceIDString":"RACE_UNDEAD"},
{"assetIconName":"race_elf.png","name":"Elf","raceID":103,"raceIDString":"RACE_ELF"}
]
AOW:

Code: Select all

[
{"assetIconName":"race_allies.png","name":"Allies","raceID":100,"raceIDString":"RACE_ALLIES"},
{"assetIconName":"race_axis.png","name":"Axis","raceID":101,"raceIDString":"RACE_AXIS"},
{"assetIconName":"race_usa.png","name":"USA","raceID":102,"raceIDString":"RACE_US"},
{"assetIconName":"race_germany.png","name":"Germany","raceID":103,"raceIDString":"RACE_GER"},
{"assetIconName":"race_ussr.png","name":"Russia","raceID":104,"raceIDString":"RACE_RU"}
]
the "raceIDString" can be used in other jsons (eg. unit jsons)

Post Reply

Return to “Game Definition .JSON”