Skip to content
Kevin Zhang edited this page Apr 7, 2017 · 15 revisions

JSON Serialization

JSON data is used to store the character, class, map formation and save data.

Characters

{
	"name" : "Hector",
	"uniq" : "He",
	"modifier" : "fe6",
	"gender" : 1,
	"loyalty" : "a",
	"affinity": "t",
	"job" : "general",
	"supports" : {
		"eliwood" : "d",
		"lyn" : "d",
		"oswin" : "d",
		"matthew" : "d",
		"serra" : "d",
		"farina" : "d"
	},
	"weaponrank" : {
		"lance" : 201,
		"axe" : 201
	},
	"level" : 20,
	"base" : [48, 18, 18, 20, 10, 15, 30, 15, 20, 5],
	"current" : [48, 18, 18, 20, 10, 15, 30, 15, 20, 5],
	"cap" : [60, 30, 30, 35, 15, 20, 40, 25, 30, 10],
	"bonus" : [5, 0, 0, 0, 0, 0, 0, 0, 0, 0],
	"growth" : [85, 50, 50, 10, 10, 30, 10, 10, 5, 0],
	"experience" : 0,
	"activeSkills" : [],
	"inactiveSkills" : [],
	"bag" : {
		"Hero Axe" : 30,
		"Silver Lance" : 20
	},
	"equipped" : 0,
}

Note the modifier, which determines the origin of this character. While he will be compatible with other titles, there may be moving pains, such as the lack of skills.

Character Stats

Character stats are pretty complicated owing to the sheer number of Fire Emblem games and how they've evolved over the years. Each character's stats is stored in a feStats class. This is basically a list of integers with each stat seen in some iteration of a game getting its own value. Thus, the following:

HP Str Mag Skl Spd Lck Def Res Con Mov

Note that some games do not have Constitution, others combine Strength and Magic, and still others combine Magic and Resistance. In the event a game combines two or more stats, simply copy those stats; otherwise, a 0 will indicate that stat is unnecessary.

For more information, see the Stats page.

Classes

{
	"name" : "general",
	"modifier" : "fe6",
	"advanced" : true,
	"promotion" : [],
	"base" : [21,8,0,4,3,0,13,3,15,5],
	"baseF" : [-1,0,0,1,2,0,-2,1,-4,0],
	"cap" : [60,27,0,25,21,30,30,25,20,15],
	"capF" : [0,-2,0,0,1,0,0,1,0,0],
	"growth" : [75,30,0,25,10,20,23,15,0,0],
	"growthF" : [75,30,0,35,10,20,23,15,0,0],
	"weapons" : ["lance","axe"],
	"skills" : [],
}

Note that promotion normally holds promotable classes - including demotions, if possible. Further note that skills normally holds two skills in the array, which are learned at the respective level of that class (0/10 for base classes and 5-15 for advanced classes, respectively).

Items

Items are divided into two main categories: weapons and consumables. Some consumables are permanent; others are temporary for the map.

{
	"name" : "Hero Axe",
	"modifier" : "fe6",
	"rank" : "b",
	"mt" : 10,
	"hit" : 55,
	"crt" : 0,
	"rng" : 1,
	"wt" : 16,
	"wex" : 1,
	"worth" : 2250,
	"stats" : [0,0,0,0,0,0,0,0,0,0]
}

This is a Brave weapon (prefixed Hero in FE6). Note that it does not use the stats array at all; in FE14, the same weapon would incur a Spd penalty.

Maps

{
}

Saves

{
}

Clone this wiki locally