kirk23 -> RE: Modding guide: making new units (1/7/2013 1:20:46 PM)
|
Ok I have an unknown problem,if I add the Battlecruiser to the game as Austrian as you specified,the game crashes,if I rename it Battleship instead and run the game all works perfectly.I have my Battlecruiser script below can anyone tell what the problem is because I'm stumped? { id = 22, name = "battlecruiser", type = "naval", chassis = "water", class = "naval", icon = "battlecruiser", levels = { { hp = 100, mp = 14, ap = 1, LOS = 3, range = 1, shock = 2, attack = 12, defense = 10, airattack = 6, airdefense = 18, bombard = 4, assault = 0, ammunition = 2, } }, retreat = 0, costPP = 70, costMP = 8, turns = 20, upkeepPP = 2, upkeepMP = 0, weapon = "heavy", factions = { 0, 1, 2, 3, 4, 8, 10 }, strengthValue = 25, stats = { groundattack = 1, airattack = 6, navalattack = 7, subattack = 1, stratattack = 8, basedefense = 10, highdefense = 8, bombard = 3, shock = 2, }, firstStrike = 1, }, }, } Before anyone says anything I know that Austria never ever had Battlecruisers,I just followed the instructions from the Slitherine forum.
|
|
|
|