「シム/ユニット」(2012/06/21 (木) 20:44:51) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
#include(シム/支援会話)
#javascript(){{
<script type="text/javascript"><!--
var chars = {
'code':[ 'rank','gen','name','sex','class', ['Lv','hp','str','mgc','skl','spd','luk','def','mdf','mov'],['str','mgc','skl','spd','luk','def','mdf','sum'],['swd','lnc','axe','bow','bok','wan','stn'],'skill',['C001','C017','C002','C003','C004','C005','C006','C007','C008','C009','C010','C011','C012','C013','C014','C015','C016','C202','C203','C204','C201','C206','C207','C208'],'child','parent',['C001','C017','C002','C003','C004','C005','C006','C007','C008','C009','C010','C011','C012','C013','C014','C015','C016','C202','C203','C204','C201','C207','C208'],['spouses']]
, 'U1003':[ 3,1,'マイユニ女', 2,'C002', [ 1,19, 6, 5, 5, 8, 4, 6, 3, 5],[ , , , , , , , 3],[ 5, , , , 5, , ],'C002S1', [ , , 2, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , ,-1,-1, 1],'U2013', , [ , , 1, 1, 1, 3, 3, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, , , , , , ],['U1001','U1019','U1020','U1021','U1022','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1030','U1031','U1032','U1033','U2007','U2008','U2009','U2010','U2011','U2012',],]
, 'U1004':[ 4,1,'リズ', 2,'C014', [ 1,17, 1, 5, 4, 4, 8, 3, 4, 5],[-2, 2,-1, 0, 2,-1, 1, 1],[ , , , , , 5, ],'C014S1', [ , , , , , , , , , , , 1, , 1, 2, , , , , , ,-1,-1, 1],'U2007', , [ , , , , , 3, 3, , , , , 4, , 4, 1, , , , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1005':[ 6,1,'ソワレ', 2,'C003', [ 2,20, 7, 1, 8, 8, 6, 7, 2, 7],[-1,-1, 2, 2, 0,-1, 0, 1],[ 5, 4, , , , , ],'C003S1', [ , , , 2, , , , , , 1, , , 1, , , , , , , , ,-1,-1, 1],'U2002', , [ , , , 1, , , , , , 1, , , 1, , , , , , , , , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1006':[ 10,1,'ミリエル', 2,'C015', [ 1,18, 0, 6, 5, 7, 6, 3, 4, 5],[-2, 3, 1, 1, 0,-2, 0, 3],[ , , , , 5, , ],'C015S1', [ , , , , , , , , , , , , , 1, , 2, 1, , , , ,-1,-1, 1],'U2012', , [ , , , , , 3, , , , , , , , 4, , 1, 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1007':[ 11,1,'スミア', 2,'C011', [ 1,18, 6, 3,11,11, 8, 5, 7, 7],[-2, 0, 2, 3, 0,-2, 1, 2],[ , 4, , , , , ],'C011S1', [ , , , , 1, , , , , , , 2, , , 1, , , , , , ,-1,-1, 1],'U2003', , [ , , , , 1, , , , , , , 1, , , 1, , , , , , , , ],['U1002','U1001','U1019','U1026','U1029',],]
, 'U1008':[ 15,1,'マリアベル', 2,'C013', [ 3,18, 0, 5, 4, 6, 5, 3, 6, 7],[-3, 2, 1, 0, 3,-3, 2, 2],[ , , , , , 4, ],'C013S1', [ , , , , , , , , , , , 1, , 2, , 1, , , , , ,-1,-1, 1],'U2009', , [ , , , 3, , , , , , , , 4, , 4, 3, 1, , , , , , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1009':[ 17,1,'ベルベット', 2,'C202', [ 6,28, 8, 1, 9,10, 8, 7, 3, 6],[ 2,-1, 2, 3,-1, 1,-1, 4],[ , , , , , , 9],'C202S1', [ , , , , , , , , , , 1, , 1, , , , , 2, , , ,-1,-1, 1],'U2011', , [ , , , , , 3, , , , , 1, , 4, , , , , 1, , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1010':[ 18,1,'ティアモ', 2,'C011', [ 7,25, 9, 3,13,12, 9, 8, 8, 7],[ 1,-1, 2, 2,-1, 0,-1, 2],[ , 3, , , , , ],'C011S1', [ , , , , , , , 1, , , , 2, , , , , 1, , , , ,-1,-1, 1],'U2004', , [ , , , , , , , 1, , , , 1, , , , , 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1011':[ 19,1,'ノノ', 2,'C203', [ 3,18, 4, 0, 2, 3, 8, 2, 2, 6],[ 1, 1,-1,-2, 1, 3, 2, 5],[ , , , , , , 9],'C203S1', [ , , , , , , , , , , , , 1, , , 1, , , 2, , ,-1,-1, 1],'U2006', , [ , , , , , , , , , , , , 1, , , 1, , , 1, , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1012':[ 22,1,'サーリャ', 2,'C016', [10,25, 4,11, 5,12, 3,10, 7, 5],[ 0, 3,-1, 1,-3, 1, 0, 1],[ , , , , 4, , ],'C016S1 C016S2', [ , , , , 1, , , , 1, , , , , , , , 2, , , , ,-1,-1, 1],'U2005', , [ , , , , 1, , , , 1, , , , , , , , 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1013':[ 23,1,'オリヴィエ', 2,'C204', [ 1,18, 3, 1, 8, 9, 5, 3, 2, 5],[ 0, 0, 1, 1, 0,-1,-1, 0],[ 4, , , , , , ],'C204S1', [ , , , , , , , , , 1, , 1, , , , , , , , 2, ,-1,-1, 1],'U2008', , [ , , , , , 3, , 3, , 1, , 4, , , , , , , ,-2, , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1014':[ 24,1,'セルジュ', 2,'C012', [12,31,15, 1,13,12, 9,16, 2, 7],[ 3, 0,-1,-1, 0, 2,-2, 1],[ , , 3, , , , ],'C012S1 C012S2', [ , , , , , , , , , , , , 2, 1, 1, , , , , , ,-1,-1, 1],'U2010', , [ , , , , , 1, , , , , , , 1, 4, 1, , , , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1015':[ 27,1,'サイリ', 2,'C111', [ 1,41,18, 7,24,27,21,13,11, 6],[ 1,-1, 1, 1,-1, 0, 1, 2],[ 2, , , , , , ],'C009S1 C009S2', [ , , , , , , , , , 2, , 1, 1, , , , , , , , ,-1,-1, 1], , , [ , , , , , , , , , 1, , 1, 1, , , , , , , , , , ],['U1002',],]
, 'U1016':[ 29,1,'フラヴィア', 2,'C108', [10,53,28, 6,32,30,24,25,13, 6],[ 1,-1, 1, 1, 0,-1, 0, 1],[ 1, , 2, , , , ],'C007S1 C007S2 C108S1', [ , , , , 1, , , 2, , , 1, , , , , , , , , , ,-1,-1, 1], , , [ , , , , 1, , , 1, , , 1, , , , , , , , , , , , ],['U1002',],]
, 'U1017':[ 31,1,'アンナ', 2,'C113', [ 1,35,12,17,23,22,26, 8,10, 6],[-1, 0, 1, 0, 3,-1, 0, 1],[ 3, , , , , 4, ],'C010S2 C010S1', [ , , , , , , , , 1, , 2, , , , , 1, , , , , ,-1,-1, 1], , , [ , , , , , , , , 1, , 1, , , , , 1, , , , , , , ],['U1002',],]
, 'U1018':[ 45,1,'チキ', 2,'C203', [20,44,20,12,17,19,21,17,14, 6],[ 0,-1, 0, 1, 2, 1, 2, 5],[ , , , , , , 9],'C203S1', [ , , , , , , , , , , , , 1, , , 1, , , 2, , ,-1,-1, 1], , , [ , , , , , , , , , , , , 1, , , 1, , , 1, , , , ],['U1002',],]
, 'U1034':[ 48,1,'エメリナ', 2,'C120', [10,42, 5,26,23,25,13,12,20, 6],[-2, 4, 0, 1, 0,-2, 1, 2],[ , , , , , , ],'C015S1 C015S2', [ , , , , , , , , , , , 1, , 1, 2, , , , , , ,-1,-1, 1], , , [ , , , , , , , , , , , 1, , 1, 1, , , , , , , , ],['U1002',],]
//, 'U1037':[ 50,1,'インバース', 2,'C115', [ , , , , , , , , , ],[ , , , , , , , ],[ , , , , , , ],'', [ , , , , , , , , , , , 1, , , , , , , , , ,-1,-1, 1], , , [ , , , , , , , , , , , 1, , , , , , , , , , , ],['U1002',],]
, 'U1001':[ 1,1,'クロム', 1,'C001', [ 1,20, 7, 1, 8, 8, 5, 7, 1, 6],[ 1, 0, 1, 1, 1,-1,-1, 2],[ 5, , , , , , ],'C001S1', [ 2, , , 1, , , , , 1, , , , , , , , , , , , , 1,-1,-1],'U2001', , [ 9, , , 1, , , , , 1, , , , , , , , , , , , , , ],['U1003','U1007','U1008','U1005','U1013'],]
, 'U1002':[ 2,1,'マイユニ男', 1,'C002', [ 1,19, 6, 5, 5, 8, 4, 6, 3, 5],[ 1, 2,-3, 0, 4,-1, 0, 3],[ 5, , , , 5, , ],'C002S1', [ , , 2, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, , , , , 1,-1,-1],'U2014', , [ , , 1, 1, 1, 3, 3, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, , , , , , ],['U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014','U1015','U1016','U1017','U1018','U2001','U2002','U2003','U2004','U2005','U2006','U1034'],]
, 'U1019':[ 5,1,'フレデリク', 1,'C104', [ 1,28,13, 2,12,10, 6,14, 3, 7],[ 2,-2, 2,-2, 0, 2, 0, 2],[ 4, 2, 4, , , , ],'C003S1 C003S2', [ , , , 2, 1, , , , , , , , 1, , , , , , , , , 1,-1,-1], , , [ , , , 1, 1, , , , , , , , 1, , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1020':[ 7,1,'ヴィオール', 1,'C008', [ 2,19, 6, 0, 9, 5, 7, 6, 1, 5],[ 0, 0, 2, 2,-1,-2, 0, 1],[ , , , 4, , , ],'C008S1', [ , , , , , , , , 2, , , , 1, , , 1, , , , , , 1,-1,-1], , , [ , , , , , , , , 1, , , , 1, , , 1, , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1021':[ 8,1,'ソール', 1,'C003', [ 2,22, 8, 0, 7, 6, 5, 8, 1, 7],[ 2,-1, 1, 0,-2, 2,-1, 1],[ 5, 5, , , , , ],'C003S1', [ , , , 2, , , , , 1, 1, , , , , , , , , , , , 1,-1,-1], , , [ , , , 1, , , , , 1, 1, , , , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1022':[ 9,1,'ヴェイク', 1,'C006', [ 3,29, 9, 0, 8, 6, 4, 5, 0, 5],[ 3,-2, 1, 1,-1, 0,-2, 0],[ , , 4, , , , ],'C006S1', [ , , , , , 1, 2, , , , 1, , , , , , , , , , , 1,-1,-1], , , [ , , , , 4, 3, 3, 4, , , 1, , , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1023':[ 12,1,'カラム', 1,'C004', [ 5,21,10, 0, 7, 5, 3,12, 2, 4],[ 1, 0, 1,-2,-2, 3, 0, 1],[ , 4, , , , , ],'C004S1', [ , , , , 2, , , , , , 1, , , , 1, , , , , , , 1,-1,-1], , , [ , , , , 1, , , , , , 1, , , , 1, , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1024':[ 13,1,'ロンクー', 1,'C009', [ 4,20, 6, 1,12,13, 7, 7, 2, 5],[ 0, 0, 3, 3, 0,-2,-2, 2],[ 3, , , , , , ],'C009S1', [ , , , , , , , , , 2, 1, , 1, , , , , , , , , 1,-1,-1], , , [ , , , , , , , , , 1, 1, , 1, , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1025':[ 14,1,'リヒト', 1,'C015', [ 3,20, 3, 8, 6, 5,10, 6, 3, 5],[-1, 2, 0, 0, 1,-1, 0, 1],[ , , , , 4, , ],'C015S1', [ , , , 1, , , , , 1, , , , , , , 2, , , , , , 1,-1,-1], , , [ , , , 1, , , , , 1, , , , , , , 1, , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1026':[ 16,1,'ガイア', 1,'C010', [ 6,22, 7, 0,13,15, 6, 5, 2, 5],[ 1,-1, 2, 2,-2,-1, 0, 0],[ 4, , , , , , ],'C010S1', [ , , , , , , 1, , , 1, 2, , , , , , , , , , , 1,-1,-1], , , [ , , , , , , 3, , , 1, 1, 4, , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1027':[ 20,1,'グレゴ', 1,'C007', [10,30,12, 0,13,11, 8,10, 2, 5],[ 2,-1, 1, 1,-1, 1,-2, 1],[ 3, , , , , , ],'C007S1 C007S2', [ , , , , , 1, , 2, , 1, , , , , , , , , , , , 1,-1,-1], , , [ , , , , , 3, , 1, , 1, , , , 4, , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1028':[ 21,1,'リベラ', 1,'C119', [ 1,39,14,16,13,14,10,11,16, 6],[ 0, 1, 1, 0,-1, 0, 1, 2],[ , , 3, , , 3, ],'C014S2 C014S1', [ , , , , , , , , , , , , , , 2, 1, 1, , , , , 1,-1,-1], , , [ , , , , , , , , , , , , , , 1, 1, 1, , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1029':[ 25,1,'ヘンリー', 1,'C016', [12,29, 6,14,15, 9,10,13, 5, 5],[ 1, 1, 2, 0,-2, 1,-1, 2],[ , , , , 3, , ],'C016S1 C016S2', [ , , , , , 1, , , , , 1, , , , , , 2, , , , , 1,-1,-1], , , [ , , , , , 3, , , , , 1, , , 4, , , 1, , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1030':[ 28,1,'バジーリオ', 1,'C107', [10,62,34, 4,28,25,20,23, 9, 6],[ 3,-2, 1, 1,-1, 1,-1, 2],[ , , 1, 2, , , ],'C006S1 C006S2 C107S1', [ , , , , 1, 1, 2, , , , , , , , , , , , , , , 1,-1,-1], , , [ , , , , 1, 1, 1, , , , , , , , , , , , , , , , ],['U1003',],]
, 'U1031':[ 30,1,'ドニ', 1,'C201', [ 1,16, 4, 0, 2, 3,11, 3, 0, 5],[ 1,-1,-1,-1, 3, 1,-1, 1],[ , 5, , , , , ],'C201S1', [ , , , , , , 1, 1, , , , , , , , , , , , , 2, 1,-1,-1], , , [ , , , , , , 3, 1, , , , 4, , 4, , , , , , , 3, , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1032':[ 46,1,'ギャンレル', 1,'C113', [ , , , , , , , , , ],[-2, 0, 3, 3,-1,-1, 0, 2],[ , , , , , , ],'C010S2 C010S1 C113S1 C113S2', [ , , , , , 1, , , , , 2, , , , , , 1, , , , , 1,-1,-1], , , [ , , , , , 1, , , , , 1, , , , , , 1, , , , , , ],['U1003',],]
, 'U1033':[ 47,1,'ヴァルハルト', 1,'C207', [30,79,44,16,36,35,33,38,21, 8],[ 4,-2, 0,-1,-1, 4,-2, 2],[ 1, 1, 1, , , , ],'C999S2', [ , , , , 1, , , , , , , , 1, , , , , , , , , 1, 2,-1], , , [ , , , , 1, , , , , , , , 1, , , , , , , , , , ],['U1003',],]
, 'U1036':[ 49,1,'レンハ', 1,'C111', [20,72,38, 6,46,49,35,25,22, 6],[ 1,-2, 2, 4, 0,-1,-2, 2],[ 1, , , , , , ],'C009S1 C009S2 C111S1 C111S2', [ , , , , , , , , 2, 2, , , 1, , , , , , , , , 1,-1,-1], , , [ , , , , , , , , , 2, , , , , , , , , , , , , ],['U1003',],]
, 'U1038':[ 51,1,'パリス', 1,'', [ , , , , , , , , , ],[ , , , , , , , ],[ , , , , , , ],'', [ , , , , , , , , , , , , , , , , , , , , , 1,-1,-1], , , [ , , , , , , , , , , , , , , , , , , , , , , ],['U1003',],]
, 'U2001':[ 26,2,'ルキナ', 2,'C017', [10, , , , , , , , , 5],[ 2, 1, 2, 2, 2, 0, 0, 9],[ 3, , , , , , ], , [-1, 2, , 1, ,-1,-1, , 1, , , , , , , , ,-1,-1,-1,-1,-1,-1, 1], ,'U1001', [-1,-1, , 1, ,-1,-1, , 1, , , , , , , , ,-1,-1,-1,-1, , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2002':[ 35,2,'デジェル', 2,'C004', [10, , , , , , , , , 4],[ 0, 0, 3, 3, 1, 0, 1, 8],[ , , , , , , ], , [-1,-1, , 1, 2,-1,-1, , , 1, , , 1, , , , ,-1,-1,-1, ,-1,-1, 1], ,'U1005', [-1,-1, , 1, 2,-1,-1, , , 1, , , 1, , , , ,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2003':[ 36,2,'シンシア', 2,'C011', [10, , , , , , , , , 7],[-1, 1, 3, 4, 1,-1, 2, 9],[ , , , , , , ], , [-1,-1, , , 1,-1,-1, , , , , 2, , , 1, , ,-1,-1,-1, ,-1,-1, 1], ,'U1007', [-1,-1, , , 1,-1,-1, , , , , 2, , , 1, , ,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2004':[ 37,2,'セレナ', 2,'C007', [10, , , , , , , , , 5],[ 2, 0, 3, 3, 0, 1, 0, 9],[ , , , , , , ], , [-1,-1, , , ,-1,-1, 2, , , , 1, , , , , 1,-1,-1,-1, ,-1,-1, 1], ,'U1010', [-1,-1, , , ,-1,-1, 2, , , , 1, , , , , 1,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2014':[ 40,2,'マーク女', 2,'', [10, , , , , , , , , ],[ 2, 3,-2, 1, 5, 0, 1,10],[ , , , , , , ], , [-1,-1, 2, 1, 1,-1,-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , ,-1, ,-1,-1, 1], ,'U1002', [-1,-1, 2, 1, 1,-1,-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , ,-1, , , ],['U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2005':[ 43,2,'ノワール', 2,'C008', [10, , , , , , , , , 5],[ 1, 4, 0, 2,-2, 2, 1, 8],[ , , , , , , ], , [-1,-1, , , 1,-1,-1, , 2, , , , , , , , 1,-1,-1,-1, ,-1,-1, 1], ,'U1012', [-1,-1, , , 1,-1,-1, , 2, , , , , , , , 1,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2006':[ 44,2,'ンン', 2,'C203', [10, , , , , , , , , 6],[ 2, 2, 0,-1, 2, 4, 3,12],[ , , , , , , ], , [-1,-1, , , ,-1,-1, , , , , , 1, , , 1, ,-1, 2,-1, ,-1,-1, 1], ,'U1011', [-1,-1, , , ,-1,-1, , , , , , 1, , , 1, ,-1, 2,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2007':[ 32,2,'ウード', 1,'C009', [10, , , , , , , , , 5],[-1, 3, 0, 1, 3, 0, 2, 8],[ , , , , , , ], , [-1,-1, , , , 1, , , , 2, ,-1, ,-1, 1, , ,-1,-1,-1, , 1,-1,-1], ,'U1004', [-1,-1, , , , 1, , , , 2, ,-1, ,-1, 1, , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2008':[ 33,2,'アズール', 1,'C007', [10, , , , , , , , , 5],[ 1, 1, 2, 2, 1, 0, 0, 7],[ , , , , , , ], , [-1,-1, , , , 1, , 2, , 1, ,-1, ,-1, , , ,-1,-1,-1, , 1,-1,-1], ,'U1013', [-1,-1, , , , 1, , 2, , 1, ,-1, ,-1, , , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2009':[ 34,2,'ブレディ', 1,'C014', [10, , , , , , , , , 5],[-2, 3, 2, 1, 4,-2, 3, 9],[ , , , , , , ], , [-1,-1, , 1, , , , , , , ,-1, ,-1, 2, 1, ,-1,-1,-1, , 1,-1,-1], ,'U1008', [-1,-1, , 1, , , , , , , ,-1, ,-1, 2, 1, ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2010':[ 38,2,'ジェローム', 1,'C012', [10, , , , , , , , , 7],[ 4, 1, 0, 0, 1, 3,-1, 8],[ , , , , , , ], , [-1,-1, , , , , 1, , , , ,-1, 2,-1, 1, , ,-1,-1,-1, , 1,-1,-1], ,'U1014', [-1,-1, , , , , 1, , , , ,-1, 2,-1, 1, , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2013':[ 39,2,'マーク男', 1,'', [10, , , , , , , , , ],[ 1, 1, 1, 1, 1, 1, 1, 7],[ , , , , , , ], , [-1,-1, 2, 1, 1, 1, 1, 1, 1, 1, 1,-1, 1,-1, 1, 1, 1, , ,-1, , 1,-1,-1], ,'U1003', [-1,-1, 2, 1, 1, 1, 1, 1, 1, 1, 1,-1, 1,-1, 1, 1, 1, , ,-1, , , ],['U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2011':[ 41,2,'シャンブレー', 1,'C202', [10, , , , , , , , , 6],[ 3, 0, 3, 4, 0, 2, 0,11],[ , , , , , , ], , [-1,-1, , , , 1, , , , , 1,-1, ,-1, , , , 2,-1,-1, , 1,-1,-1], ,'U1009', [-1,-1, , , , 1, , , , , 1,-1, ,-1, , , , 2,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2012':[ 42,2,'ロラン', 1,'C015', [10, , , , , , , , , 5],[ 1, 4, 2, 2, 1,-1, 1,10],[ , , , , , , ], , [-1,-1, , , , 1, , , , , ,-1, ,-1, , 2, 1,-1,-1,-1, , 1,-1,-1], ,'U1006', [-1,-1, , , , 1, , , , , ,-1, ,-1, , 2, 1,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U3001':[ 3001,0,'マルス', 1,'スターロード ', [8,25,10,2,12,12,8,7,3,6],[1,1,0,0,3,-1,-1,3],[,,,,,,],'カリスマ 良成長所持' ]
, 'U3002':[ 3002,0,'ロイ', 1,'傭兵', [11,27,11,1,13,12,6,8,0,5],[-1,0,3,0,0,1,0,3],[,,,,,,],'デュアルアタック+' ]
, 'U3003':[ 3003,0,'ミカヤ', 2,'ダークマージ', [12,26,2,13,12,11,14,7,11,5],[0,4,0,2,-1,-3,1,3],[,,,,,,],'暗闇の加護' ]
, 'U3004':[ 3004,0,'エルトシャン', 2,'パラディン', [14,54,27,8,34,26,11,29,31,8],[1,-1,4,0,-3,2,0,3],[,,,,,,],'カリスマ' ]
, 'U3005':[ 3005,0,'リーフ', 1,'トリックスター', [1,40,22,20,25,28,24,17,12,6],[-1,0,-1,4,2,-1,0,3],[,,,,,,],'下克上' ]
, 'U3006':[ 3006,0,'アルム', 1,'魔戦士', [21,50,26,5,21,20,18,22,17,6],[4,0,1,-3,-1,2,0,3],[,,,,,,],'魔防の叫び' ]
, 'U3007':[ 3007,0,'セリス', 1,'ソードマスター', [2,43,22,11,23,28,25,19,12,6],[4,0,1,-3,-1,2,0,3],[,,,,,,],'疾風迅雷 カリスマ' ]
, 'U3008':[ 3008,0,'エリンシア', 2,'ファルコンナイト', [6,40,16,18,24,25,19,12,19,8],[-1,3,0,2,-1,-1,1,3],[,,,,,,],'カリスマ' ]
, 'U3009':[ 3009,0,'エイリーク', 2,'花嫁', [23,44,20,12,26,26,22,17,16,6],[0,0,2,4,1,-3,-1,3],[,,,,,,],'幸運+4' ]
, 'U3010':[ 3010,0,'エフラム', 1,'グレートナイト', [20,71,40,3,35,33,31,36,10,7],[4,-1,2,-1,0,2,-3,3],[,,,,,,],'覇王' ]
, 'U4101':[ 101,0,'ニーナ', 2,'賢者', [1,25,1,13,11,15,18,6,14,6],[-3,2,-1,2,,-1,4,3],[,,,,,,],'' ]
, 'U4102':[ 102,0,'シーダ', 2,'ペガサスナイト', [10,24,10,3,12,18,17,9,14,7],[-3,0,1,4,2,-1,0,3],[,,,,,,],'' ]
, 'U4103':[ 103,0,'リンダ', 2,'魔道士', [14,26,0,14,15,17,17,5,8,5],[-1,-1,2,4,1,-1,-1,3],[,,,,,,],'' ]
, 'U4104':[ 104,0,'マリク', 1,'魔道士', [19,34,5,18,14,19,15,12,8,5],[,4,,2,-1,-3,1,3],[,,,,,,],'' ]
, 'U4105':[ 105,0,'チキ ', 2,'マムクート', [25,46,22,12,15,19,23,18,19,6],[-1,2,-3,2,0,-1,4,3],[,,,,,,],'' ]
, 'U4106':[ 106,0,'ミネルバ', 2,'ドラゴンマスター', [9,49,26,5,21,25,15,28,10,8],[3,-1,2,,-3,2,,3],[,,,,,,],'カリスマ' ]
, 'U4107':[ 107,0,'オグマ', 1,'勇者', [15,58,29,0,34,33,28,24,11,6],[2,-3,4,-1,0,2,-1,3],[,,,,,,],'' ]
, 'U4108':[ 108,0,'ナバール', 1,'ソードマスター', [20,55,27,7,42,43,35,20,17,6],[0,0,2,4,1,-3,-1,3],[,,,,,,],'' ]
, 'U4109':[ 109,0,'ガーネフ', 1,'ソーサラー', [20,60,18,35,34,31,14,29,33,6],[-1,3,0,2,-3,0,2,3],[,,,,,,],'' ]
, 'U4110':[ 110,0,'マルス王子 ', 1,'スターロード', [25,68,31,12,35,34,39,24,15,6],[1,1,0,0,3,-1,-1,3],[,,,,,,],'幸運+4 デュアルアタック+ デュアルサポート+ カリスマ' ]
, 'U4201':[ 201,0,'ディアドラ', 2,'ダークマージ', [7,26,0,12,7,9,5,3,13,5],[0,1,-3,0,2,1,2,3],[,,,,,,],'' ]
, 'U4202':[ 202,0,'アーダン', 1,'アーマーナイト', [12,31,16,0,7,5,4,18,1,4],[-1,0,-3,0,2,3,2,3],[,,,,,,],'' ]
, 'U4203':[ 203,0,'ジャムカ', 1,'アーチャー', [15,33,14,3,19,18,8,12,4,5],[3,0,-1,0,0,1,0,3],[,,,,,,],'疾風迅雷' ]
, 'U4204':[ 204,0,'ラケシス', 2,'トルバドール', [17,29,2,14,11,18,10,9,17,7],[-1,2,-1,0,4,-1,0,3],[,,,,,,],'カリスマ' ]
, 'U4205':[ 205,0,'エスリン', 2,'ヴァルキュリア', [5,39,4,19,23,24,18,11,16,8],[-3,0,1,4,2,-1,0,3],[,,,,,,],'' ]
, 'U4206':[ 206,0,'キュアン', 1,'パラディン', [12,59,33,3,22,23,5,28,10,8],[1,1,-1,-3,1,2,2,3],[,,,,,,],'' ]
, 'U4207':[ 207,0,'アイラ', 2,'ソードマスター', [14,48,23,8,37,38,17,15,11,6],[2,0,4,0,-1,-1,-1,3],[,,,,,,],'' ]
, 'U4208':[ 208,0,'レヴィン', 1,'賢者', [19,54,10,30,28,35,21,17,23,6],[-3,4,-1,2,0,-1,2,3],[,,,,,,],'' ]
, 'U4209':[ 209,0,'アルヴィス', 1,'ソーサラー', [20,78,27,35,32,33,10,34,33,6],[-1,3,0,2,-3,0,2,3],[,,,,,,],'' ]
, 'U4210':[ 210,0,'シグルド', 1,'パラディン', [20,71,37,11,33,32,24,33,17,8],[0,-3,0,-1,2,4,1,3],[,,,,,,],'デュアルサポート+' ]
, 'U4301':[ 301,0,'フィー', 2,'ペガサスナイト', [4,20,7,2,10,13,9,6,7,7],[-1,-1,2,4,1,-1,-1,3],[,,,,,,],'' ]
, 'U4302':[ 302,0,'アーサー', 1,'魔道士', [9,27,6,10,13,11,8,11,5,5],[-1,0,3,0,0,1,0,3],[,,,,,,],'' ]
, 'U4303':[ 303,0,'スカサハ', 1,'剣士', [15,36,14,1,20,16,12,13,4,5],[1,0,0,-1,2,2,-1,3],[,,,,,,],'' ]
, 'U4304':[ 304,0,'ラクチェ', 2,'ソードマスター', [5,45,19,8,31,28,15,16,10,6],[2,0,3,-3,-1,2,0,3],[,,,,,,],'' ]
, 'U4305':[ 305,0,'アルテナ', 2,'ドラゴンマスター', [8,59,32,7,23,24,10,34,8,8],[4,-3,2,-1,0,2,-1,3],[,,,,,,],'' ]
, 'U4306':[ 306,0,'セティ', 1,'賢者', [12,49,15,23,16,25,13,17,12,6],[-1,2,-3,2,0,-1,4,3],[,,,,,,],'' ]
, 'U4307':[ 307,0,'ユリア', 2,'賢者', [14,42,3,29,19,20,5,9,23,6],[-3,4,-1,2,0,-1,2,3],[,,,,,,],'' ]
, 'U4308':[ 308,0,'アレス', 1,'ダークナイト', [18,65,33,11,31,33,16,32,20,8],[1,-2,0,-1,2,2,1,3],[,,,,,,],'' ]
, 'U4309':[ 309,0,'ユリウス', 1,'ソーサラー', [20,75,13,36,30,30,13,39,33,6],[-1,3,0,2,-3,0,2,3],[,,,,,,],'' ]
, 'U4310':[ 310,0,'セリス', 1,'ソードマスター', [20,72,35,17,36,43,40,28,19,6],[4,0,1,-3,-1,2,0,3],[,,,,,,],'カリスマ' ]
, 'U4401':[ 401,0,'ナンナ', 2,'トルバドール', [3,18,1,5,7,8,10,3,5,7],[,,,,,,,],[,,,,,,],'カリスマ' ]
, 'U4402':[ 402,0,'ダグダ', 1,'ウォーリア', [1,43,18,1,15,11,3,14,1,6],[3,-1,2,0,-3,2,0,3],[,,,,,,],'' ]
, 'U4403':[ 403,0,'セイラム', 1,'ダークマージ', [14,31,1,15,12,14,5,8,6,5],[,,,,,,,],[,,,,,,],'' ]
, 'U4404':[ 404,0,'オルエン', 2,'ダークナイト', [,,,,,,,,,],[,,,,,,,],[,,,,,,],'' ]
, 'U4405':[ 405,0,'エーヴェル', 2,'ソードマスター', [,,,,,,,,,],[,,,,,,,],[,,,,,,],'' ]
, 'U4406':[ 406,0,'フィン', 1,'パラディン', [12,56,28,3,26,32,29,26,14,8],[0,-3,2,3,2,0,-1,3],[,,,,,,],'' ]
, 'U4407':[ 407,0,'サイアス', 1,'賢者', [,,,,,,,,,],[,,,,,,,],[,,,,,,],'' ]
, 'U4408':[ 408,0,'マリータ', 2,'ソードマスター', [19,55,25,4,34,39,28,12,10,6],[,,,,,,,],[,,,,,,],'' ]
, 'U4409':[ 409,0,'レイドリック', 1,'ジェネラル', [20,76,38,5,31,24,13,41,19,5],[-1,-1,0,0,-1,4,2,3],[,,,,,,],'' ]
, 'U4410':[ 410,0,'リーフ', 1,'トリックスター', [,,,,,,,,,],[-1,0,-1,4,2,-1,0,3],[,,,,,,],'' ]
, 'U4501':[ 501,0,'ウォルト', 1,'アーチャー', [4,19,7,1,5,6,3,5,1,5],[2,0,4,0,-1,-1,-1,3],[,,,,,,],'' ]
, 'U4502':[ 502,0,'シャニー', 2,'ペガサスナイト', [10,23,10,7,13,19,10,8,9,7],[-3,0,1,4,2,-1,0,3],[,,,,,,],'' ]
, 'U4503':[ 503,0,'ルゥ', 2,'魔道士', [16,31,6,14,14,15,12,8,10,5],[2,0,4,0,-1,-1,-1,3],[,,,,,,],'' ]
, 'U4504':[ 504,0,'レイ', 0,'ダークマージ', [16,36,5,17,14,13,8,10,6,5],[1,-1,4,0,-3,2,0,3],[,,,,,,],'' ]
, 'U4505':[ 505,0,'ソフィーヤ ', 0,'ソーサラー', [3,39,2,23,11,15,9,11,25,6],[0,4,0,2,-1,-3,1,3],[,,,,,,],'' ]
, 'U4506':[ 506,0,'セシリア', 2,'ヴァルキュリア', [13,46,5,31,23,26,25,14,23,8],[1,-1,4,0,-1,1,-1,3],[,,,,,,],'' ]
, 'U4507':[ 507,0,'パーシバル', 1,'パラディン', [18,62,35,4,26,32,23,33,18,8],[0,1,-3,0,2,1,2,3],[,,,,,,],'' ]
, 'U4508':[ 508,0,'リリーナ', 2,'賢者', [20,51,7,41,28,32,29,13,22,6],[-1,4,-3,2,0,-1,2,3],[,,,,,,],'' ]
, 'U4509':[ 509,0,'ゼフィール', 1,'ジェネラル', [20,75,41,12,34,35,23,41,33,5],[-1,-1,0,0,-1,4,2,3],[,,,,,,],'覇王' ]
, 'U4510':[ 510,0,'ロイ ', 1,'勇者', [20,64,33,15,36,35,29,27,15,6],[-1,0,3,0,0,1,0,3],[,,,,,,],'' ]
};
var myuniadj = {
'sample': ['str','mgc','skl','spd','luk','def','mdf',]
, 'plus': {
'hp': [ 1, 1, , , 2, 2, 2,]
, 'str':[ 4, , 2, , , 2, ,]
, 'mgc':[ , 4, , 2, , , 2,]
, 'skl':[ 2, , 4, , , 2, ,]
, 'spd':[ , , 2, 4, 2, , ,]
, 'luk':[ 2, 2, , , 4, , ,]
, 'def':[ , , , , 2, 4, 2,]
, 'mdf':[ , 2, , 2, , , 4,]
}
, 'minus': {
'hp': [-1,-1, , ,-1,-1,-1,]
, 'str':[-3, ,-1, , ,-1, ,]
, 'mgc':[ ,-3, ,-1, , ,-1,]
, 'skl':[-1, ,-3, , ,-1, ,]
, 'spd':[ , ,-1,-3,-1, , ,]
, 'luk':[-1,-1, , ,-3, , ,]
, 'def':[ , , , ,-1,-3,-1,]
, 'mdf':[ ,-1, ,-1, , ,-3,]
}
};
var unitnames= {};
for(var code in chars) unitnames[chars[code][2]] = code;
function unit_name(str){
if (!str) return '';
if (!str.match(/^U/)) return str; // 引数がコードでない場合はユニット名そのものだとしてそのまま返す
if (chars[str]) return chars[str][1];
return ''; // コードだったにも関わらずクラス不明の場合
}
function unit_code(str){
if (!str) return '';
if (str.match(/^U/)){
if (chars[str]) return str; // コードが有効な場合のみコードを返す
return '';
}
if (unitnames[str]) return unitnames[str];
return '';
}
//////////////////////////////////////////////////
// ユニットパラメータオブジェクト
function CParams(type,prm){
// _debug(typeof prm);
// _debug(prm);
var lst = ['hp','str','mgc','skl','spd','luk','def','mdf'];
var i = 0;
var sum = 0;
switch(type){
case 'adj': lst = ['str','mgc','skl','spd','luk','def','mdf']; break;
case 'init': lst = ['Lv','hp','str','mgc','skl','spd','luk','def','mdf','mov']; break;
default:
}
for(var idx in lst){
this[lst[idx]] = prm[idx];
sum += prm[idx];
}
switch(type){
case 'adj': this.sum = sum; break;
}
return this;
}
function Params(type,prm){return new CParams(type,prm);}
// var Unit_count=0;
//////////////////////////////////////////////////
// ユニットオブジェクト
function CUnit(code,spscode,vpcode){
// _debug('['+code+']'+spscode+':'+vpcode,'CUnit');
//////////////////////////////////////////////////
this.toString = function(){
return '[' + this.code + ']'
+ this.name;
}
//////////////////////////////////////////////////
this.toBoolean = function(){return this.code?true:false;}
this.valid = function(){
return this.code?true:false;
}
//////////////////////////////////////////////////
this.cls = function(type){
var ret = '';
switch(type){
case 'sex': return this.sex==1?'male':'female'; break;
case 'gen': return this.gen==1?'gen1':'gen2'; break;
case 'fam': return this.children.fixed?'parent':'';
// case 'num': return 0==num(value)?' neutral ':(0<value?' positive ':' negative '); break;
// case 'cls':
// ret = value;
// var ini_cls = this.u.init_class;
// if (ini_cls && ini_cls.code==value) ret +=' ini';
//
// var key = 'acq/'+this.u.code+'/'+value;
// if (load_local(key)) ret +=' acquired';
// break;
case 'unit':
ret = this.code;
ret += ' '+this.cls('sex',this);
ret += ' '+this.cls('gen',this);
ret += ' '+this.cls('fam',this);
}
return ret;
}
//////////////////////////////////////////////////
// 自由親を設定する
this.set_variable_parent = function(vpcode,vpvpcode){
if (1==this.gen) return null;
if (!vpcode) return null;
if (this.parents.variable && this.parents.variable.code==vpcode) return this;
this.parents.variable = null; // 自由親をリセット
var vp = Unit(vpcode);
if (!vp) return null;
var index = vpcode;
if (vpvpcode) index += '.'+vpvpcode;
// _debug('['+this.code+']'+vpcode+':'+vpvpcode,'set_variable_parent');
vp.set_variable_parent(vpvpcode); // 自由親に、自由祖父母を設定しておく
this.parents.variable = vp; // 一時的に自分の自由親を上書き
if (this.variations[index]) return this.variations[index]; // 既に設定済み(すぐに参照可能)
if (vp.valid()){
this.variations[vpcode] = {limit_adj:{},stuff_cls:{},skills:{}};
var p = this.variations[index]; // ポインタ
// 上限値補正継承
for(var idx in this.variations.init.limit_adj){
p.limit_adj[idx] = num(this.variations.init.limit_adj[idx]) + (vp.limit_adj[idx]);
}
// 習得可能スキルコピー
for(var idx in this.variations.init.skills){
p.skills[idx] = this.variations.init.skills[idx];
}
// 転職可能クラスコピー
for(var idx in this.stuff.cls){ // 親の継承クラスのフラグを確認
p.stuff_cls[idx] = this.stuff.cls[idx];
this.add_skill(2,idx,p.skills);
}
// 転職可能クラス継承
for(var idx in vp.stuff.inherit_flg){ // 親の継承クラスのフラグを確認
var flg = vp.stuff.inherit_flg[idx];
var inheritable = false;
switch(flg){
case -1: break; // マイナスは継承不可
case 1: case 2: inheritable = true; break; // 継承可能
case 3: if (1==this.sex)inheritable = true; break; // 息子にのみ継承
case 4: if (2==this.sex)inheritable = true; break; // 娘にのみ継承
case 9: // クロムのロードのみ。考慮不要
}
if (inheritable){
p.stuff_cls[idx] = Jobclass(idx);
this.add_skill(2,idx,p.skills);
}else{ // 自由親の習得スキル継承チェックは別途行う
// this.add_skill(2+vp.sex,idx,p.skills);
}
}
// 自由親の習得可能スキルを継承(継承できないクラス用)
var type = 2+vp.sex;
for(var idx in vp.skills){
this.add_skill(type,idx,p.skills);
}
}
return this;
}
//////////////////////////////////////////////////
this.set_spouse = function(spscode,vpcode){
if (!spscode) return null;
var f = false;
if (vpcode){ // 自由親が指定されている場合はまず自分の自由親を設定
// if (!this.set_variable_parent(vpcode)){
// if (this.spouse && this.spouse.code == spscode) return null; // 変化なし
f = true;
// }
}
// _debug('['+this.code+']'+spscode+':'+vpcode,'set_spouse');
// 配偶者を処理
if (f || !this.spouse || this.spouse.code != spscode){
if (this.spouse = Unit(spscode)){
this.spouse.set_spouse(this.code);
// this.spouse = spouse;
this.children.variable = null;
this.spouse.children.variable = null;
// 固定子供がいる場合は配偶者の情報を上乗せ
if (this.children.fixed){
this.children.fixed.set_variable_parent(spscode);
this.spouse.children.variable = this.children.fixed;
}
if (this.spouse.children.fixed){
this.spouse.children.fixed.set_variable_parent(this.code,vpcode); // 配偶者の子供には自分のコードと自分の自由親のコードを指定
this.children.variable = this.spouse.children.fixed;
}
}
}
}
//////////////////////////////////////////////////
// このユニットに配偶者を指定して子供(配列オブジェクト)を取得する
this.get_children = function(spouse_code){
ret = {}; // 子供がいなくてもオブジェクトを返す
if (spouse_code){ // 配偶者が指定されている場合
spouse = Unit(spouse_code); // 配偶者コードから配偶者情報を取得
}else{
// spouse =
}
if (this.children.fixed){ // 固定の子供がいる場合
}
if (spouse_code){ // 配偶者が指定されている場合
spouse = Unit(spouse_code); // 配偶者コードから配偶者情報を取得
if (spouse && spouse.length){
}
}
return ret;
}
//////////////////////////////////////////////////
this.prop = function(name){
var ret = null;
var vp = this.parents.variable;
var index = '';
if (vp){
index = vp.code;
if (vp.parents.variable) index += '.'+vp.parents.variable.code;
}
// _debug(vp);
switch(name){
case 'limit_adj':
switch(this.code){
case 'U2013': case 'U2014':
// マークの上限補正値を取得する際、自由親が子世代なら祖父母世代の自由親の分を考慮して返す
if (vp){
ret = {};
if (vp.parents.variable){
vpvp = vp.parents.variable;
for(var idx in vpvp.limit_adj){
ret[idx] = num(vpvp.limit_adj[idx]) - ('sum'==idx?7:1); // 祖父母世代の補正を加算(マークが3代目の場合はボーナスがなくなるので、各ステータスから1ずつ引いておく)
}
}
for(var idx in vp.limit_adj){
ret[idx] = num(ret[idx]) + num(this.limit_adj[idx]) + num(vp.limit_adj[idx]); // 親世代の補正を加算
}
}
}
if (ret) break;
case 'skills':
if (vp && vp.valid){
ret = this.variations[vp.code][name];
}else{
ret = this[name];
}
break;
case 'stuff_cls':
if (vp && vp.valid){
ret = this.variations[vp.code].stuff_cls;
}else{
ret = this.stuff.cls;
}
break;
default:
ret = this[name];
}
return ret;
}
//////////////////////////////////////////////////
this.add_skill = function(type,code,p){
if (!code) return;
if (!this.skills) this.skills = {};
if (!p) p = this.skills;
var skls = {};
switch(typeof code){
case 'string':
var tmp = jc_code(code);
if(!tmp) tmp = skill_code(code);
if(tmp) code = tmp;
if (4==code.length){
var cls = CJobclass(code);
var i = 0;
for(var idx in cls.skills) if (cls.skills[idx]) skls[i++] = cls.skills[idx].code;
if (cls.upperJobClasses) for(var idx in cls.upperJobClasses) this.add_skill(type,idx,p);
}else{
skls[0] = code;
}
case 'object':
var i=0;
for(var idx in code.skills) if (code.skills[idx]) skls[i++] = code.skills[idx].code;
if (code.upperJobClasses) for(var idx in code.upperJobClasses) this.add_skill(type,idx,p);
}
for(var idx in skls){
switch(type){
case 3: case 4: // 継承出来ないスキルの設定
switch(skls[idx]){
case 'C206S1': // 魔防+10
case 'C206S2': // 居合一閃
case 'C204S2': // 特別な踊り
case 'C208S1': // 愛の叫び
case 'C208S2': // 絆
case 'C001S1': // デュアルアタック+
case 'C001S2': // カリスマ
continue; // 上記スキルの場合は継承不可
case 'C101S2': // 王の器
if (2==this.sex) continue; break;
case 'C101S1': // 天空
if (1==this.sex) continue; break;
}
}
if (!p[skls[idx]] || type <p[skls[idx]]) p[skls[idx]] = type;
}
}
//////////////////////////////////////////////////
// プロパティ設定
if (!code) return null;
var label = chars['code'];
var base = chars[code];
if (!base) return;
if (!units[code] || units[code].valid()){
units[code] = this;
this.code = code; // 内部コード
this.id = base[0]; // 内部ID
this.generation = base[1]; // 世代
this.gen = base[1]; // 世代
this.name = base[2]; // ユニット名
this.sex = base[3]; // 性別
this.init_class = Jobclass(base[4]); // 初期クラス
this.init_param = Params('init',base[5]); // 初期パラメータ
this.limit_adj = Params('adj',base[6]); // 上限値補正
this.weapon_levels = {}; // 初期武器レベル
var weapons = base[7];
var lst = label[7];
for(var idx in lst){
this.weapon_levels[lst[idx]] = num(weapons[idx]);
}
this.skills = {}; // 習得可能スキル
this.init_skills = {}; // 初期スキル
lst = base[8]?base[8].split(','):[];
for(var idx in lst){
var skcode = skill_code(lst[idx]);
this.add_skill(1,skcode); // 初期スキル
this.init_skills[skcode] = Skill(skcode); // lst[idx];
}
this.add_skill(2,'C300S1'); // 全能力+2
this.add_skill(2,'C300S2'); // エリート
if (this.gen){
// 素質
this.stuff = {flg:{},cls:{},inherit:{}}
lst = base[9];
for(var idx in lst){
var v = lst[idx];
var clcode = label[9][idx];
this.stuff.flg[clcode] = v;
if (!v) continue;
switch(v){
case 1: // 転職可能クラス
case 2: // 初期クラス
var jc = Jobclass(clcode); // lst[idx];
this.add_skill(2,jc);
this.stuff.cls[clcode] = jc;
case -1: // 転職不可クラス
}
}
// 素質(継承)
this.stuff.inherit = {};
this.stuff.inherit_flg = {};
lst = base[12];
for(var idx in lst){
var v = lst[idx];
var clcode = label[12][idx];
this.stuff.inherit_flg[clcode] = v;
if (!v) continue;
switch(v){
case 1: // 転職可能クラス
case 2: // 初期クラス
this.stuff.inherit[clcode] = Jobclass(clcode); // lst[idx];
case -1: // 転職不可クラス
switch(clcode){
case 'C207': // オーバーロード
this.add_skill(3,'C999S2'); // 覇王
break;
// case 'C204': // 踊り子
// this.add_skill(4,'C204S1'); // 幸運+4
}
}
}
// 配偶者一覧
this.spouses = {};
lst = base[13];
for(var idx in lst){
var v = lst[idx];
if (!v) continue;
// this.spouses[v] = Unit(v);
this.spouses[idx] = v;
}
this.variations = {init:{}};
this.variations.init.limit_adj = this.limit_adj;
this.variations.init.stuff_cls = this.stuff.cls;
this.variations.init.skills = this.skills;
// 親・子供処理
this.children = {fixed:null,variable:null};
this.parents = {fixed:null,variable:null};
if (base[10]) this.children.fixed = Unit(base[10]); // 固定子供
if (base[11]){
var p = this.parents.fixed = Unit(base[11]); // 固定親
for(var idx in p.stuff.cls){
this.add_skill(2+p.sex,idx); // 継承限定スキル
}
}
// 支援会話設定
if (conversations){
var cvr = conversations[this.code];
if (cvr){
// _debug(cvr,'conversations');
this.conversations = cvr;
}
}
}// if (this.gen){
}// if (units[code]){
// ここまで、ユニット固定の情報処理
// 自由親が指定されている場合
// _debug(this.generation+':'+vpcode,this.name);
// _debug(ret,name);
// if (1<this.generation && vpcode) this.set_variable_parent(vpcode);
// this.set_spouse(spscode,vpcode);
//////////////////////////////////////////////////
this.get_name = function(prop_name){
switch(prop_name){
case 'sex': return 1==this.sex?'male':'female';
case 'gen': return 1==this.gen?'gen1':'gen2';
}
return '';
}
//////////////////////////////////////////////////
}
var units = {};
function Unit(code,spscode,vpcode){
if (!code) return null;
if (!code.match(/^U/)) code = unitnames[code];
var index = code;
if (!units[index]){
var ins = new CUnit(code,spscode,vpcode);
if (ins.code) units[index] = ins;
}
var u = units[index];
var f = false;
if (!u) return null;
if (1<u.generation && vpcode){
if (!u.parents.variable || u.parents.variable.code!=vpcode){
u.set_variable_parent(vpcode);
f = true; // 親が変化したため、配偶者に子供がいる場合は配偶者情報を再設定する
}
}
if (spscode){
if (f || !u.spouse || u.spouse.code!=spscode){ // 指定した配偶者が設定されていない場合
// _debug('['+code+']'+spscode+':'+vpcode,'Unit');
u.set_spouse(spscode,vpcode);
}
}
return u;
}
function getUnit(code,spscode,vpcode){return Unit(code,spscode,vpcode);}
function get_unit(code,spscode,vpcode){return Unit(code,spscode,vpcode);}
//--></script>
}}
#include_cache(シム/支援会話)
#javascript(){{
<script type="text/javascript"><!--
var chars = {
'code':[ 'rank','gen','name','sex','class', ['Lv','hp','str','mgc','skl','spd','luk','def','mdf','mov'],['str','mgc','skl','spd','luk','def','mdf','sum'],['swd','lnc','axe','bow','bok','wan','stn'],'skill',['C001','C017','C002','C003','C004','C005','C006','C007','C008','C009','C010','C011','C012','C013','C014','C015','C016','C202','C203','C204','C201','C206','C207','C208'],'child','parent',['C001','C017','C002','C003','C004','C005','C006','C007','C008','C009','C010','C011','C012','C013','C014','C015','C016','C202','C203','C204','C201','C207','C208'],['spouses']]
, 'U1003':[ 3,1,'マイユニ女', 2,'C002', [ 1,19, 6, 5, 5, 8, 4, 6, 3, 5],[ , , , , , , , 3],[ 5, , , , 5, , ],'C002S1', [ , , 2, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , ,-1,-1, 1],'U2013', , [ , , 1, 1, 1, 3, 3, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, , , , , , ],['U1001','U1019','U1020','U1021','U1022','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1030','U1031','U1032','U1033','U2007','U2008','U2009','U2010','U2011','U2012',],]
, 'U1004':[ 4,1,'リズ', 2,'C014', [ 1,17, 1, 5, 4, 4, 8, 3, 4, 5],[-2, 2,-1, 0, 2,-1, 1, 1],[ , , , , , 5, ],'C014S1', [ , , , , , , , , , , , 1, , 1, 2, , , , , , ,-1,-1, 1],'U2007', , [ , , , , , 3, 3, , , , , 4, , 4, 1, , , , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1005':[ 6,1,'ソワレ', 2,'C003', [ 2,20, 7, 1, 8, 8, 6, 7, 2, 7],[-1,-1, 2, 2, 0,-1, 0, 1],[ 5, 4, , , , , ],'C003S1', [ , , , 2, , , , , , 1, , , 1, , , , , , , , ,-1,-1, 1],'U2002', , [ , , , 1, , , , , , 1, , , 1, , , , , , , , , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1006':[ 10,1,'ミリエル', 2,'C015', [ 1,18, 0, 6, 5, 7, 6, 3, 4, 5],[-2, 3, 1, 1, 0,-2, 0, 3],[ , , , , 5, , ],'C015S1', [ , , , , , , , , , , , , , 1, , 2, 1, , , , ,-1,-1, 1],'U2012', , [ , , , , , 3, , , , , , , , 4, , 1, 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1007':[ 11,1,'スミア', 2,'C011', [ 1,18, 6, 3,11,11, 8, 5, 7, 7],[-2, 0, 2, 3, 0,-2, 1, 2],[ , 4, , , , , ],'C011S1', [ , , , , 1, , , , , , , 2, , , 1, , , , , , ,-1,-1, 1],'U2003', , [ , , , , 1, , , , , , , 1, , , 1, , , , , , , , ],['U1002','U1001','U1019','U1026','U1029',],]
, 'U1008':[ 15,1,'マリアベル', 2,'C013', [ 3,18, 0, 5, 4, 6, 5, 3, 6, 7],[-3, 2, 1, 0, 3,-3, 2, 2],[ , , , , , 4, ],'C013S1', [ , , , , , , , , , , , 1, , 2, , 1, , , , , ,-1,-1, 1],'U2009', , [ , , , 3, , , , , , , , 4, , 4, 3, 1, , , , , , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1009':[ 17,1,'ベルベット', 2,'C202', [ 6,28, 8, 1, 9,10, 8, 7, 3, 6],[ 2,-1, 2, 3,-1, 1,-1, 4],[ , , , , , , 9],'C202S1', [ , , , , , , , , , , 1, , 1, , , , , 2, , , ,-1,-1, 1],'U2011', , [ , , , , , 3, , , , , 1, , 4, , , , , 1, , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1010':[ 18,1,'ティアモ', 2,'C011', [ 7,25, 9, 3,13,12, 9, 8, 8, 7],[ 1,-1, 2, 2,-1, 0,-1, 2],[ , 3, , , , , ],'C011S1', [ , , , , , , , 1, , , , 2, , , , , 1, , , , ,-1,-1, 1],'U2004', , [ , , , , , , , 1, , , , 1, , , , , 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1011':[ 19,1,'ノノ', 2,'C203', [ 3,18, 4, 0, 2, 3, 8, 2, 2, 6],[ 1, 1,-1,-2, 1, 3, 2, 5],[ , , , , , , 9],'C203S1', [ , , , , , , , , , , , , 1, , , 1, , , 2, , ,-1,-1, 1],'U2006', , [ , , , , , , , , , , , , 1, , , 1, , , 1, , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1012':[ 22,1,'サーリャ', 2,'C016', [10,25, 4,11, 5,12, 3,10, 7, 5],[ 0, 3,-1, 1,-3, 1, 0, 1],[ , , , , 4, , ],'C016S1 C016S2', [ , , , , 1, , , , 1, , , , , , , , 2, , , , ,-1,-1, 1],'U2005', , [ , , , , 1, , , , 1, , , , , , , , 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1013':[ 23,1,'オリヴィエ', 2,'C204', [ 1,18, 3, 1, 8, 9, 5, 3, 2, 5],[ 0, 0, 1, 1, 0,-1,-1, 0],[ 4, , , , , , ],'C204S1', [ , , , , , , , , , 1, , 1, , , , , , , , 2, ,-1,-1, 1],'U2008', , [ , , , , , 3, , 3, , 1, , 4, , , , , , , ,-2, , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1014':[ 24,1,'セルジュ', 2,'C012', [12,31,15, 1,13,12, 9,16, 2, 7],[ 3, 0,-1,-1, 0, 2,-2, 1],[ , , 3, , , , ],'C012S1 C012S2', [ , , , , , , , , , , , , 2, 1, 1, , , , , , ,-1,-1, 1],'U2010', , [ , , , , , 1, , , , , , , 1, 4, 1, , , , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1015':[ 27,1,'サイリ', 2,'C111', [ 1,41,18, 7,24,27,21,13,11, 6],[ 1,-1, 1, 1,-1, 0, 1, 2],[ 2, , , , , , ],'C009S1 C009S2', [ , , , , , , , , , 2, , 1, 1, , , , , , , , ,-1,-1, 1], , , [ , , , , , , , , , 1, , 1, 1, , , , , , , , , , ],['U1002',],]
, 'U1016':[ 29,1,'フラヴィア', 2,'C108', [10,53,28, 6,32,30,24,25,13, 6],[ 1,-1, 1, 1, 0,-1, 0, 1],[ 1, , 2, , , , ],'C007S1 C007S2 C108S1', [ , , , , 1, , , 2, , , 1, , , , , , , , , , ,-1,-1, 1], , , [ , , , , 1, , , 1, , , 1, , , , , , , , , , , , ],['U1002',],]
, 'U1017':[ 31,1,'アンナ', 2,'C113', [ 1,35,12,17,23,22,26, 8,10, 6],[-1, 0, 1, 0, 3,-1, 0, 1],[ 3, , , , , 4, ],'C010S2 C010S1', [ , , , , , , , , 1, , 2, , , , , 1, , , , , ,-1,-1, 1], , , [ , , , , , , , , 1, , 1, , , , , 1, , , , , , , ],['U1002',],]
, 'U1018':[ 45,1,'チキ', 2,'C203', [20,44,20,12,17,19,21,17,14, 6],[ 0,-1, 0, 1, 2, 1, 2, 5],[ , , , , , , 9],'C203S1', [ , , , , , , , , , , , , 1, , , 1, , , 2, , ,-1,-1, 1], , , [ , , , , , , , , , , , , 1, , , 1, , , 1, , , , ],['U1002',],]
, 'U1034':[ 48,1,'エメリナ', 2,'C120', [10,42, 5,26,23,25,13,12,20, 6],[-2, 4, 0, 1, 0,-2, 1, 2],[ , , , , , , ],'C015S1 C015S2', [ , , , , , , , , , , , 1, , 1, 2, , , , , , ,-1,-1, 1], , , [ , , , , , , , , , , , 1, , 1, 1, , , , , , , , ],['U1002',],]
//, 'U1037':[ 50,1,'インバース', 2,'C115', [ , , , , , , , , , ],[ , , , , , , , ],[ , , , , , , ],'', [ , , , , , , , , , , , 1, , , , , , , , , ,-1,-1, 1], , , [ , , , , , , , , , , , 1, , , , , , , , , , , ],['U1002',],]
, 'U1001':[ 1,1,'クロム', 1,'C001', [ 1,20, 7, 1, 8, 8, 5, 7, 1, 6],[ 1, 0, 1, 1, 1,-1,-1, 2],[ 5, , , , , , ],'C001S1', [ 2, , , 1, , , , , 1, , , , , , , , , , , , , 1,-1,-1],'U2001', , [ 9, , , 1, , , , , 1, , , , , , , , , , , , , , ],['U1003','U1007','U1008','U1005','U1013'],]
, 'U1002':[ 2,1,'マイユニ男', 1,'C002', [ 1,19, 6, 5, 5, 8, 4, 6, 3, 5],[ 1, 2,-3, 0, 4,-1, 0, 3],[ 5, , , , 5, , ],'C002S1', [ , , 2, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, , , , , 1,-1,-1],'U2014', , [ , , 1, 1, 1, 3, 3, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, , , , , , ],['U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014','U1015','U1016','U1017','U1018','U2001','U2002','U2003','U2004','U2005','U2006','U1034'],]
, 'U1019':[ 5,1,'フレデリク', 1,'C104', [ 1,28,13, 2,12,10, 6,14, 3, 7],[ 2,-2, 2,-2, 0, 2, 0, 2],[ 4, 2, 4, , , , ],'C003S1 C003S2', [ , , , 2, 1, , , , , , , , 1, , , , , , , , , 1,-1,-1], , , [ , , , 1, 1, , , , , , , , 1, , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1020':[ 7,1,'ヴィオール', 1,'C008', [ 2,19, 6, 0, 9, 5, 7, 6, 1, 5],[ 0, 0, 2, 2,-1,-2, 0, 1],[ , , , 4, , , ],'C008S1', [ , , , , , , , , 2, , , , 1, , , 1, , , , , , 1,-1,-1], , , [ , , , , , , , , 1, , , , 1, , , 1, , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1021':[ 8,1,'ソール', 1,'C003', [ 2,22, 8, 0, 7, 6, 5, 8, 1, 7],[ 2,-1, 1, 0,-2, 2,-1, 1],[ 5, 5, , , , , ],'C003S1', [ , , , 2, , , , , 1, 1, , , , , , , , , , , , 1,-1,-1], , , [ , , , 1, , , , , 1, 1, , , , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1022':[ 9,1,'ヴェイク', 1,'C006', [ 3,29, 9, 0, 8, 6, 4, 5, 0, 5],[ 3,-2, 1, 1,-1, 0,-2, 0],[ , , 4, , , , ],'C006S1', [ , , , , , 1, 2, , , , 1, , , , , , , , , , , 1,-1,-1], , , [ , , , , 4, 3, 3, 4, , , 1, , , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1023':[ 12,1,'カラム', 1,'C004', [ 5,21,10, 0, 7, 5, 3,12, 2, 4],[ 1, 0, 1,-2,-2, 3, 0, 1],[ , 4, , , , , ],'C004S1', [ , , , , 2, , , , , , 1, , , , 1, , , , , , , 1,-1,-1], , , [ , , , , 1, , , , , , 1, , , , 1, , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1024':[ 13,1,'ロンクー', 1,'C009', [ 4,20, 6, 1,12,13, 7, 7, 2, 5],[ 0, 0, 3, 3, 0,-2,-2, 2],[ 3, , , , , , ],'C009S1', [ , , , , , , , , , 2, 1, , 1, , , , , , , , , 1,-1,-1], , , [ , , , , , , , , , 1, 1, , 1, , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1025':[ 14,1,'リヒト', 1,'C015', [ 3,20, 3, 8, 6, 5,10, 6, 3, 5],[-1, 2, 0, 0, 1,-1, 0, 1],[ , , , , 4, , ],'C015S1', [ , , , 1, , , , , 1, , , , , , , 2, , , , , , 1,-1,-1], , , [ , , , 1, , , , , 1, , , , , , , 1, , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1026':[ 16,1,'ガイア', 1,'C010', [ 6,22, 7, 0,13,15, 6, 5, 2, 5],[ 1,-1, 2, 2,-2,-1, 0, 0],[ 4, , , , , , ],'C010S1', [ , , , , , , 1, , , 1, 2, , , , , , , , , , , 1,-1,-1], , , [ , , , , , , 3, , , 1, 1, 4, , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1027':[ 20,1,'グレゴ', 1,'C007', [10,30,12, 0,13,11, 8,10, 2, 5],[ 2,-1, 1, 1,-1, 1,-2, 1],[ 3, , , , , , ],'C007S1 C007S2', [ , , , , , 1, , 2, , 1, , , , , , , , , , , , 1,-1,-1], , , [ , , , , , 3, , 1, , 1, , , , 4, , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1028':[ 21,1,'リベラ', 1,'C119', [ 1,39,14,16,13,14,10,11,16, 6],[ 0, 1, 1, 0,-1, 0, 1, 2],[ , , 3, , , 3, ],'C014S2 C014S1', [ , , , , , , , , , , , , , , 2, 1, 1, , , , , 1,-1,-1], , , [ , , , , , , , , , , , , , , 1, 1, 1, , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1029':[ 25,1,'ヘンリー', 1,'C016', [12,29, 6,14,15, 9,10,13, 5, 5],[ 1, 1, 2, 0,-2, 1,-1, 2],[ , , , , 3, , ],'C016S1 C016S2', [ , , , , , 1, , , , , 1, , , , , , 2, , , , , 1,-1,-1], , , [ , , , , , 3, , , , , 1, , , 4, , , 1, , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1030':[ 28,1,'バジーリオ', 1,'C107', [10,62,34, 4,28,25,20,23, 9, 6],[ 3,-2, 1, 1,-1, 1,-1, 2],[ , , 1, 2, , , ],'C006S1 C006S2 C107S1', [ , , , , 1, 1, 2, , , , , , , , , , , , , , , 1,-1,-1], , , [ , , , , 1, 1, 1, , , , , , , , , , , , , , , , ],['U1003',],]
, 'U1031':[ 30,1,'ドニ', 1,'C201', [ 1,16, 4, 0, 2, 3,11, 3, 0, 5],[ 1,-1,-1,-1, 3, 1,-1, 1],[ , 5, , , , , ],'C201S1', [ , , , , , , 1, 1, , , , , , , , , , , , , 2, 1,-1,-1], , , [ , , , , , , 3, 1, , , , 4, , 4, , , , , , , 3, , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1032':[ 46,1,'ギャンレル', 1,'C113', [ , , , , , , , , , ],[-2, 0, 3, 3,-1,-1, 0, 2],[ , , , , , , ],'C010S2 C010S1 C113S1 C113S2', [ , , , , , 1, , , , , 2, , , , , , 1, , , , , 1,-1,-1], , , [ , , , , , 1, , , , , 1, , , , , , 1, , , , , , ],['U1003',],]
, 'U1033':[ 47,1,'ヴァルハルト', 1,'C207', [30,79,44,16,36,35,33,38,21, 8],[ 4,-2, 0,-1,-1, 4,-2, 2],[ 1, 1, 1, , , , ],'C999S2', [ , , , , 1, , , , , , , , 1, , , , , , , , , 1, 2,-1], , , [ , , , , 1, , , , , , , , 1, , , , , , , , , , ],['U1003',],]
, 'U1036':[ 49,1,'レンハ', 1,'C111', [20,72,38, 6,46,49,35,25,22, 6],[ 1,-2, 2, 4, 0,-1,-2, 2],[ 1, , , , , , ],'C009S1 C009S2 C111S1 C111S2', [ , , , , , , , , 2, 2, , , 1, , , , , , , , , 1,-1,-1], , , [ , , , , , , , , , 2, , , , , , , , , , , , , ],['U1003',],]
, 'U1038':[ 51,1,'パリス', 1,'', [ , , , , , , , , , ],[ , , , , , , , ],[ , , , , , , ],'', [ , , , , , , , , , , , , , , , , , , , , , 1,-1,-1], , , [ , , , , , , , , , , , , , , , , , , , , , , ],['U1003',],]
, 'U2001':[ 26,2,'ルキナ', 2,'C017', [10, , , , , , , , , 5],[ 2, 1, 2, 2, 2, 0, 0, 9],[ 3, , , , , , ], , [-1, 2, , 1, ,-1,-1, , 1, , , , , , , , ,-1,-1,-1,-1,-1,-1, 1], ,'U1001', [-1,-1, , 1, ,-1,-1, , 1, , , , , , , , ,-1,-1,-1,-1, , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2002':[ 35,2,'デジェル', 2,'C004', [10, , , , , , , , , 4],[ 0, 0, 3, 3, 1, 0, 1, 8],[ , , , , , , ], , [-1,-1, , 1, 2,-1,-1, , , 1, , , 1, , , , ,-1,-1,-1, ,-1,-1, 1], ,'U1005', [-1,-1, , 1, 2,-1,-1, , , 1, , , 1, , , , ,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2003':[ 36,2,'シンシア', 2,'C011', [10, , , , , , , , , 7],[-1, 1, 3, 4, 1,-1, 2, 9],[ , , , , , , ], , [-1,-1, , , 1,-1,-1, , , , , 2, , , 1, , ,-1,-1,-1, ,-1,-1, 1], ,'U1007', [-1,-1, , , 1,-1,-1, , , , , 2, , , 1, , ,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2004':[ 37,2,'セレナ', 2,'C007', [10, , , , , , , , , 5],[ 2, 0, 3, 3, 0, 1, 0, 9],[ , , , , , , ], , [-1,-1, , , ,-1,-1, 2, , , , 1, , , , , 1,-1,-1,-1, ,-1,-1, 1], ,'U1010', [-1,-1, , , ,-1,-1, 2, , , , 1, , , , , 1,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2014':[ 40,2,'マーク女', 2,'', [10, , , , , , , , , ],[ 2, 3,-2, 1, 5, 0, 1,10],[ , , , , , , ], , [-1,-1, 2, 1, 1,-1,-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , ,-1, ,-1,-1, 1], ,'U1002', [-1,-1, 2, 1, 1,-1,-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , ,-1, , , ],['U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2005':[ 43,2,'ノワール', 2,'C008', [10, , , , , , , , , 5],[ 1, 4, 0, 2,-2, 2, 1, 8],[ , , , , , , ], , [-1,-1, , , 1,-1,-1, , 2, , , , , , , , 1,-1,-1,-1, ,-1,-1, 1], ,'U1012', [-1,-1, , , 1,-1,-1, , 2, , , , , , , , 1,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2006':[ 44,2,'ンン', 2,'C203', [10, , , , , , , , , 6],[ 2, 2, 0,-1, 2, 4, 3,12],[ , , , , , , ], , [-1,-1, , , ,-1,-1, , , , , , 1, , , 1, ,-1, 2,-1, ,-1,-1, 1], ,'U1011', [-1,-1, , , ,-1,-1, , , , , , 1, , , 1, ,-1, 2,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2007':[ 32,2,'ウード', 1,'C009', [10, , , , , , , , , 5],[-1, 3, 0, 1, 3, 0, 2, 8],[ , , , , , , ], , [-1,-1, , , , 1, , , , 2, ,-1, ,-1, 1, , ,-1,-1,-1, , 1,-1,-1], ,'U1004', [-1,-1, , , , 1, , , , 2, ,-1, ,-1, 1, , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2008':[ 33,2,'アズール', 1,'C007', [10, , , , , , , , , 5],[ 1, 1, 2, 2, 1, 0, 0, 7],[ , , , , , , ], , [-1,-1, , , , 1, , 2, , 1, ,-1, ,-1, , , ,-1,-1,-1, , 1,-1,-1], ,'U1013', [-1,-1, , , , 1, , 2, , 1, ,-1, ,-1, , , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2009':[ 34,2,'ブレディ', 1,'C014', [10, , , , , , , , , 5],[-2, 3, 2, 1, 4,-2, 3, 9],[ , , , , , , ], , [-1,-1, , 1, , , , , , , ,-1, ,-1, 2, 1, ,-1,-1,-1, , 1,-1,-1], ,'U1008', [-1,-1, , 1, , , , , , , ,-1, ,-1, 2, 1, ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2010':[ 38,2,'ジェローム', 1,'C012', [10, , , , , , , , , 7],[ 4, 1, 0, 0, 1, 3,-1, 8],[ , , , , , , ], , [-1,-1, , , , , 1, , , , ,-1, 2,-1, 1, , ,-1,-1,-1, , 1,-1,-1], ,'U1014', [-1,-1, , , , , 1, , , , ,-1, 2,-1, 1, , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2013':[ 39,2,'マーク男', 1,'', [10, , , , , , , , , ],[ 1, 1, 1, 1, 1, 1, 1, 7],[ , , , , , , ], , [-1,-1, 2, 1, 1, 1, 1, 1, 1, 1, 1,-1, 1,-1, 1, 1, 1, , ,-1, , 1,-1,-1], ,'U1003', [-1,-1, 2, 1, 1, 1, 1, 1, 1, 1, 1,-1, 1,-1, 1, 1, 1, , ,-1, , , ],['U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2011':[ 41,2,'シャンブレー', 1,'C202', [10, , , , , , , , , 6],[ 3, 0, 3, 4, 0, 2, 0,11],[ , , , , , , ], , [-1,-1, , , , 1, , , , , 1,-1, ,-1, , , , 2,-1,-1, , 1,-1,-1], ,'U1009', [-1,-1, , , , 1, , , , , 1,-1, ,-1, , , , 2,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2012':[ 42,2,'ロラン', 1,'C015', [10, , , , , , , , , 5],[ 1, 4, 2, 2, 1,-1, 1,10],[ , , , , , , ], , [-1,-1, , , , 1, , , , , ,-1, ,-1, , 2, 1,-1,-1,-1, , 1,-1,-1], ,'U1006', [-1,-1, , , , 1, , , , , ,-1, ,-1, , 2, 1,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U3001':[ 3001,0,'マルス', 1,'スターロード ', [8,25,10,2,12,12,8,7,3,6],[1,1,0,0,3,-1,-1,3],[,,,,,,],'カリスマ 良成長所持' ]
, 'U3002':[ 3002,0,'ロイ', 1,'傭兵', [11,27,11,1,13,12,6,8,0,5],[-1,0,3,0,0,1,0,3],[,,,,,,],'デュアルアタック+' ]
, 'U3003':[ 3003,0,'ミカヤ', 2,'ダークマージ', [12,26,2,13,12,11,14,7,11,5],[0,4,0,2,-1,-3,1,3],[,,,,,,],'暗闇の加護' ]
, 'U3004':[ 3004,0,'エルトシャン', 2,'パラディン', [14,54,27,8,34,26,11,29,31,8],[1,-1,4,0,-3,2,0,3],[,,,,,,],'カリスマ' ]
, 'U3005':[ 3005,0,'リーフ', 1,'トリックスター', [1,40,22,20,25,28,24,17,12,6],[-1,0,-1,4,2,-1,0,3],[,,,,,,],'下克上' ]
, 'U3006':[ 3006,0,'アルム', 1,'魔戦士', [21,50,26,5,21,20,18,22,17,6],[4,0,1,-3,-1,2,0,3],[,,,,,,],'魔防の叫び' ]
, 'U3007':[ 3007,0,'セリス', 1,'ソードマスター', [2,43,22,11,23,28,25,19,12,6],[4,0,1,-3,-1,2,0,3],[,,,,,,],'疾風迅雷 カリスマ' ]
, 'U3008':[ 3008,0,'エリンシア', 2,'ファルコンナイト', [6,40,16,18,24,25,19,12,19,8],[-1,3,0,2,-1,-1,1,3],[,,,,,,],'カリスマ' ]
, 'U3009':[ 3009,0,'エイリーク', 2,'花嫁', [23,44,20,12,26,26,22,17,16,6],[0,0,2,4,1,-3,-1,3],[,,,,,,],'幸運+4' ]
, 'U3010':[ 3010,0,'エフラム', 1,'グレートナイト', [20,71,40,3,35,33,31,36,10,7],[4,-1,2,-1,0,2,-3,3],[,,,,,,],'覇王' ]
, 'U4101':[ 101,0,'ニーナ', 2,'賢者', [1,25,1,13,11,15,18,6,14,6],[-3,2,-1,2,,-1,4,3],[,,,,,,],'' ]
, 'U4102':[ 102,0,'シーダ', 2,'ペガサスナイト', [10,24,10,3,12,18,17,9,14,7],[-3,0,1,4,2,-1,0,3],[,,,,,,],'' ]
, 'U4103':[ 103,0,'リンダ', 2,'魔道士', [14,26,0,14,15,17,17,5,8,5],[-1,-1,2,4,1,-1,-1,3],[,,,,,,],'' ]
, 'U4104':[ 104,0,'マリク', 1,'魔道士', [19,34,5,18,14,19,15,12,8,5],[,4,,2,-1,-3,1,3],[,,,,,,],'' ]
, 'U4105':[ 105,0,'チキ ', 2,'マムクート', [25,46,22,12,15,19,23,18,19,6],[-1,2,-3,2,0,-1,4,3],[,,,,,,],'' ]
, 'U4106':[ 106,0,'ミネルバ', 2,'ドラゴンマスター', [9,49,26,5,21,25,15,28,10,8],[3,-1,2,,-3,2,,3],[,,,,,,],'カリスマ' ]
, 'U4107':[ 107,0,'オグマ', 1,'勇者', [15,58,29,0,34,33,28,24,11,6],[2,-3,4,-1,0,2,-1,3],[,,,,,,],'' ]
, 'U4108':[ 108,0,'ナバール', 1,'ソードマスター', [20,55,27,7,42,43,35,20,17,6],[0,0,2,4,1,-3,-1,3],[,,,,,,],'' ]
, 'U4109':[ 109,0,'ガーネフ', 1,'ソーサラー', [20,60,18,35,34,31,14,29,33,6],[-1,3,0,2,-3,0,2,3],[,,,,,,],'' ]
, 'U4110':[ 110,0,'マルス王子 ', 1,'スターロード', [25,68,31,12,35,34,39,24,15,6],[1,1,0,0,3,-1,-1,3],[,,,,,,],'幸運+4 デュアルアタック+ デュアルサポート+ カリスマ' ]
, 'U4201':[ 201,0,'ディアドラ', 2,'ダークマージ', [7,26,0,12,7,9,5,3,13,5],[0,1,-3,0,2,1,2,3],[,,,,,,],'' ]
, 'U4202':[ 202,0,'アーダン', 1,'アーマーナイト', [12,31,16,0,7,5,4,18,1,4],[-1,0,-3,0,2,3,2,3],[,,,,,,],'' ]
, 'U4203':[ 203,0,'ジャムカ', 1,'アーチャー', [15,33,14,3,19,18,8,12,4,5],[3,0,-1,0,0,1,0,3],[,,,,,,],'疾風迅雷' ]
, 'U4204':[ 204,0,'ラケシス', 2,'トルバドール', [17,29,2,14,11,18,10,9,17,7],[-1,2,-1,0,4,-1,0,3],[,,,,,,],'カリスマ' ]
, 'U4205':[ 205,0,'エスリン', 2,'ヴァルキュリア', [5,39,4,19,23,24,18,11,16,8],[-3,0,1,4,2,-1,0,3],[,,,,,,],'' ]
, 'U4206':[ 206,0,'キュアン', 1,'パラディン', [12,59,33,3,22,23,5,28,10,8],[1,1,-1,-3,1,2,2,3],[,,,,,,],'' ]
, 'U4207':[ 207,0,'アイラ', 2,'ソードマスター', [14,48,23,8,37,38,17,15,11,6],[2,0,4,0,-1,-1,-1,3],[,,,,,,],'' ]
, 'U4208':[ 208,0,'レヴィン', 1,'賢者', [19,54,10,30,28,35,21,17,23,6],[-3,4,-1,2,0,-1,2,3],[,,,,,,],'' ]
, 'U4209':[ 209,0,'アルヴィス', 1,'ソーサラー', [20,78,27,35,32,33,10,34,33,6],[-1,3,0,2,-3,0,2,3],[,,,,,,],'' ]
, 'U4210':[ 210,0,'シグルド', 1,'パラディン', [20,71,37,11,33,32,24,33,17,8],[0,-3,0,-1,2,4,1,3],[,,,,,,],'デュアルサポート+' ]
, 'U4301':[ 301,0,'フィー', 2,'ペガサスナイト', [4,20,7,2,10,13,9,6,7,7],[-1,-1,2,4,1,-1,-1,3],[,,,,,,],'' ]
, 'U4302':[ 302,0,'アーサー', 1,'魔道士', [9,27,6,10,13,11,8,11,5,5],[-1,0,3,0,0,1,0,3],[,,,,,,],'' ]
, 'U4303':[ 303,0,'スカサハ', 1,'剣士', [15,36,14,1,20,16,12,13,4,5],[1,0,0,-1,2,2,-1,3],[,,,,,,],'' ]
, 'U4304':[ 304,0,'ラクチェ', 2,'ソードマスター', [5,45,19,8,31,28,15,16,10,6],[2,0,3,-3,-1,2,0,3],[,,,,,,],'' ]
, 'U4305':[ 305,0,'アルテナ', 2,'ドラゴンマスター', [8,59,32,7,23,24,10,34,8,8],[4,-3,2,-1,0,2,-1,3],[,,,,,,],'' ]
, 'U4306':[ 306,0,'セティ', 1,'賢者', [12,49,15,23,16,25,13,17,12,6],[-1,2,-3,2,0,-1,4,3],[,,,,,,],'' ]
, 'U4307':[ 307,0,'ユリア', 2,'賢者', [14,42,3,29,19,20,5,9,23,6],[-3,4,-1,2,0,-1,2,3],[,,,,,,],'' ]
, 'U4308':[ 308,0,'アレス', 1,'ダークナイト', [18,65,33,11,31,33,16,32,20,8],[1,-2,0,-1,2,2,1,3],[,,,,,,],'' ]
, 'U4309':[ 309,0,'ユリウス', 1,'ソーサラー', [20,75,13,36,30,30,13,39,33,6],[-1,3,0,2,-3,0,2,3],[,,,,,,],'' ]
, 'U4310':[ 310,0,'セリス', 1,'ソードマスター', [20,72,35,17,36,43,40,28,19,6],[4,0,1,-3,-1,2,0,3],[,,,,,,],'カリスマ' ]
, 'U4401':[ 401,0,'ナンナ', 2,'トルバドール', [3,18,1,5,7,8,10,3,5,7],[,,,,,,,],[,,,,,,],'カリスマ' ]
, 'U4402':[ 402,0,'ダグダ', 1,'ウォーリア', [1,43,18,1,15,11,3,14,1,6],[3,-1,2,0,-3,2,0,3],[,,,,,,],'' ]
, 'U4403':[ 403,0,'セイラム', 1,'ダークマージ', [14,31,1,15,12,14,5,8,6,5],[,,,,,,,],[,,,,,,],'' ]
, 'U4404':[ 404,0,'オルエン', 2,'ダークナイト', [,,,,,,,,,],[,,,,,,,],[,,,,,,],'' ]
, 'U4405':[ 405,0,'エーヴェル', 2,'ソードマスター', [,,,,,,,,,],[,,,,,,,],[,,,,,,],'' ]
, 'U4406':[ 406,0,'フィン', 1,'パラディン', [12,56,28,3,26,32,29,26,14,8],[0,-3,2,3,2,0,-1,3],[,,,,,,],'' ]
, 'U4407':[ 407,0,'サイアス', 1,'賢者', [,,,,,,,,,],[,,,,,,,],[,,,,,,],'' ]
, 'U4408':[ 408,0,'マリータ', 2,'ソードマスター', [19,55,25,4,34,39,28,12,10,6],[,,,,,,,],[,,,,,,],'' ]
, 'U4409':[ 409,0,'レイドリック', 1,'ジェネラル', [20,76,38,5,31,24,13,41,19,5],[-1,-1,0,0,-1,4,2,3],[,,,,,,],'' ]
, 'U4410':[ 410,0,'リーフ', 1,'トリックスター', [,,,,,,,,,],[-1,0,-1,4,2,-1,0,3],[,,,,,,],'' ]
, 'U4501':[ 501,0,'ウォルト', 1,'アーチャー', [4,19,7,1,5,6,3,5,1,5],[2,0,4,0,-1,-1,-1,3],[,,,,,,],'' ]
, 'U4502':[ 502,0,'シャニー', 2,'ペガサスナイト', [10,23,10,7,13,19,10,8,9,7],[-3,0,1,4,2,-1,0,3],[,,,,,,],'' ]
, 'U4503':[ 503,0,'ルゥ', 2,'魔道士', [16,31,6,14,14,15,12,8,10,5],[2,0,4,0,-1,-1,-1,3],[,,,,,,],'' ]
, 'U4504':[ 504,0,'レイ', 0,'ダークマージ', [16,36,5,17,14,13,8,10,6,5],[1,-1,4,0,-3,2,0,3],[,,,,,,],'' ]
, 'U4505':[ 505,0,'ソフィーヤ ', 0,'ソーサラー', [3,39,2,23,11,15,9,11,25,6],[0,4,0,2,-1,-3,1,3],[,,,,,,],'' ]
, 'U4506':[ 506,0,'セシリア', 2,'ヴァルキュリア', [13,46,5,31,23,26,25,14,23,8],[1,-1,4,0,-1,1,-1,3],[,,,,,,],'' ]
, 'U4507':[ 507,0,'パーシバル', 1,'パラディン', [18,62,35,4,26,32,23,33,18,8],[0,1,-3,0,2,1,2,3],[,,,,,,],'' ]
, 'U4508':[ 508,0,'リリーナ', 2,'賢者', [20,51,7,41,28,32,29,13,22,6],[-1,4,-3,2,0,-1,2,3],[,,,,,,],'' ]
, 'U4509':[ 509,0,'ゼフィール', 1,'ジェネラル', [20,75,41,12,34,35,23,41,33,5],[-1,-1,0,0,-1,4,2,3],[,,,,,,],'覇王' ]
, 'U4510':[ 510,0,'ロイ ', 1,'勇者', [20,64,33,15,36,35,29,27,15,6],[-1,0,3,0,0,1,0,3],[,,,,,,],'' ]
};
var myuniadj = {
'sample': ['str','mgc','skl','spd','luk','def','mdf',]
, 'plus': {
'hp': [ 1, 1, , , 2, 2, 2,]
, 'str':[ 4, , 2, , , 2, ,]
, 'mgc':[ , 4, , 2, , , 2,]
, 'skl':[ 2, , 4, , , 2, ,]
, 'spd':[ , , 2, 4, 2, , ,]
, 'luk':[ 2, 2, , , 4, , ,]
, 'def':[ , , , , 2, 4, 2,]
, 'mdf':[ , 2, , 2, , , 4,]
}
, 'minus': {
'hp': [-1,-1, , ,-1,-1,-1,]
, 'str':[-3, ,-1, , ,-1, ,]
, 'mgc':[ ,-3, ,-1, , ,-1,]
, 'skl':[-1, ,-3, , ,-1, ,]
, 'spd':[ , ,-1,-3,-1, , ,]
, 'luk':[-1,-1, , ,-3, , ,]
, 'def':[ , , , ,-1,-3,-1,]
, 'mdf':[ ,-1, ,-1, , ,-3,]
}
};
var unitnames= {};
for(var code in chars) unitnames[chars[code][2]] = code;
function unit_name(str){
if (!str) return '';
if (!str.match(/^U/)) return str; // 引数がコードでない場合はユニット名そのものだとしてそのまま返す
if (chars[str]) return chars[str][1];
return ''; // コードだったにも関わらずクラス不明の場合
}
function unit_code(str){
if (!str) return '';
if (str.match(/^U/)){
if (chars[str]) return str; // コードが有効な場合のみコードを返す
return '';
}
if (unitnames[str]) return unitnames[str];
return '';
}
//////////////////////////////////////////////////
// ユニットパラメータオブジェクト
function CParams(type,prm){
// _debug(typeof prm);
// _debug(prm);
var lst = ['hp','str','mgc','skl','spd','luk','def','mdf'];
var i = 0;
var sum = 0;
switch(type){
case 'adj': lst = ['str','mgc','skl','spd','luk','def','mdf']; break;
case 'init': lst = ['Lv','hp','str','mgc','skl','spd','luk','def','mdf','mov']; break;
default:
}
for(var idx in lst){
this[lst[idx]] = prm[idx];
sum += prm[idx];
}
switch(type){
case 'adj': this.sum = sum; break;
}
return this;
}
function Params(type,prm){return new CParams(type,prm);}
// var Unit_count=0;
//////////////////////////////////////////////////
// ユニットオブジェクト
function CUnit(code,spscode,vpcode){
// _debug('['+code+']'+spscode+':'+vpcode,'CUnit');
//////////////////////////////////////////////////
this.toString = function(){
return '[' + this.code + ']'
+ this.name;
}
//////////////////////////////////////////////////
this.toBoolean = function(){return this.code?true:false;}
this.valid = function(){
return this.code?true:false;
}
//////////////////////////////////////////////////
this.cls = function(type){
var ret = '';
switch(type){
case 'sex': return this.sex==1?'male':'female'; break;
case 'gen': return this.gen==1?'gen1':'gen2'; break;
case 'fam': return this.children.fixed?'parent':'';
// case 'num': return 0==num(value)?' neutral ':(0<value?' positive ':' negative '); break;
// case 'cls':
// ret = value;
// var ini_cls = this.u.init_class;
// if (ini_cls && ini_cls.code==value) ret +=' ini';
//
// var key = 'acq/'+this.u.code+'/'+value;
// if (load_local(key)) ret +=' acquired';
// break;
case 'unit':
ret = this.code;
ret += ' '+this.cls('sex',this);
ret += ' '+this.cls('gen',this);
ret += ' '+this.cls('fam',this);
}
return ret;
}
//////////////////////////////////////////////////
// 自由親を設定する
this.set_variable_parent = function(vpcode,vpvpcode){
if (1==this.gen) return null;
if (!vpcode) return null;
if (this.parents.variable && this.parents.variable.code==vpcode) return this;
this.parents.variable = null; // 自由親をリセット
var vp = Unit(vpcode);
if (!vp) return null;
var index = vpcode;
if (vpvpcode) index += '.'+vpvpcode;
// _debug('['+this.code+']'+vpcode+':'+vpvpcode,'set_variable_parent');
vp.set_variable_parent(vpvpcode); // 自由親に、自由祖父母を設定しておく
this.parents.variable = vp; // 一時的に自分の自由親を上書き
if (this.variations[index]) return this.variations[index]; // 既に設定済み(すぐに参照可能)
if (vp.valid()){
this.variations[vpcode] = {limit_adj:{},stuff_cls:{},skills:{}};
var p = this.variations[index]; // ポインタ
// 上限値補正継承
for(var idx in this.variations.init.limit_adj){
p.limit_adj[idx] = num(this.variations.init.limit_adj[idx]) + (vp.limit_adj[idx]);
}
// 習得可能スキルコピー
for(var idx in this.variations.init.skills){
p.skills[idx] = this.variations.init.skills[idx];
}
// 転職可能クラスコピー
for(var idx in this.stuff.cls){ // 親の継承クラスのフラグを確認
p.stuff_cls[idx] = this.stuff.cls[idx];
this.add_skill(2,idx,p.skills);
}
// 転職可能クラス継承
for(var idx in vp.stuff.inherit_flg){ // 親の継承クラスのフラグを確認
var flg = vp.stuff.inherit_flg[idx];
var inheritable = false;
switch(flg){
case -1: break; // マイナスは継承不可
case 1: case 2: inheritable = true; break; // 継承可能
case 3: if (1==this.sex)inheritable = true; break; // 息子にのみ継承
case 4: if (2==this.sex)inheritable = true; break; // 娘にのみ継承
case 9: // クロムのロードのみ。考慮不要
}
if (inheritable){
p.stuff_cls[idx] = Jobclass(idx);
this.add_skill(2,idx,p.skills);
}else{ // 自由親の習得スキル継承チェックは別途行う
// this.add_skill(2+vp.sex,idx,p.skills);
}
}
// 自由親の習得可能スキルを継承(継承できないクラス用)
var type = 2+vp.sex;
for(var idx in vp.skills){
this.add_skill(type,idx,p.skills);
}
}
return this;
}
//////////////////////////////////////////////////
this.set_spouse = function(spscode,vpcode){
if (!spscode) return null;
var f = false;
if (vpcode){ // 自由親が指定されている場合はまず自分の自由親を設定
// if (!this.set_variable_parent(vpcode)){
// if (this.spouse && this.spouse.code == spscode) return null; // 変化なし
f = true;
// }
}
// _debug('['+this.code+']'+spscode+':'+vpcode,'set_spouse');
// 配偶者を処理
if (f || !this.spouse || this.spouse.code != spscode){
if (this.spouse = Unit(spscode)){
this.spouse.set_spouse(this.code);
// this.spouse = spouse;
this.children.variable = null;
this.spouse.children.variable = null;
// 固定子供がいる場合は配偶者の情報を上乗せ
if (this.children.fixed){
this.children.fixed.set_variable_parent(spscode);
this.spouse.children.variable = this.children.fixed;
}
if (this.spouse.children.fixed){
this.spouse.children.fixed.set_variable_parent(this.code,vpcode); // 配偶者の子供には自分のコードと自分の自由親のコードを指定
this.children.variable = this.spouse.children.fixed;
}
}
}
}
//////////////////////////////////////////////////
// このユニットに配偶者を指定して子供(配列オブジェクト)を取得する
this.get_children = function(spouse_code){
ret = {}; // 子供がいなくてもオブジェクトを返す
if (spouse_code){ // 配偶者が指定されている場合
spouse = Unit(spouse_code); // 配偶者コードから配偶者情報を取得
}else{
// spouse =
}
if (this.children.fixed){ // 固定の子供がいる場合
}
if (spouse_code){ // 配偶者が指定されている場合
spouse = Unit(spouse_code); // 配偶者コードから配偶者情報を取得
if (spouse && spouse.length){
}
}
return ret;
}
//////////////////////////////////////////////////
this.prop = function(name){
var ret = null;
var vp = this.parents.variable;
var index = '';
if (vp){
index = vp.code;
if (vp.parents.variable) index += '.'+vp.parents.variable.code;
}
// _debug(vp);
switch(name){
case 'limit_adj':
switch(this.code){
case 'U2013': case 'U2014':
// マークの上限補正値を取得する際、自由親が子世代なら祖父母世代の自由親の分を考慮して返す
if (vp){
ret = {};
if (vp.parents.variable){
vpvp = vp.parents.variable;
for(var idx in vpvp.limit_adj){
ret[idx] = num(vpvp.limit_adj[idx]) - ('sum'==idx?7:1); // 祖父母世代の補正を加算(マークが3代目の場合はボーナスがなくなるので、各ステータスから1ずつ引いておく)
}
}
for(var idx in vp.limit_adj){
ret[idx] = num(ret[idx]) + num(this.limit_adj[idx]) + num(vp.limit_adj[idx]); // 親世代の補正を加算
}
}
}
if (ret) break;
case 'skills':
if (vp && vp.valid){
ret = this.variations[vp.code][name];
}else{
ret = this[name];
}
break;
case 'stuff_cls':
if (vp && vp.valid){
ret = this.variations[vp.code].stuff_cls;
}else{
ret = this.stuff.cls;
}
break;
default:
ret = this[name];
}
return ret;
}
//////////////////////////////////////////////////
this.add_skill = function(type,code,p){
if (!code) return;
if (!this.skills) this.skills = {};
if (!p) p = this.skills;
var skls = {};
switch(typeof code){
case 'string':
var tmp = jc_code(code);
if(!tmp) tmp = skill_code(code);
if(tmp) code = tmp;
if (4==code.length){
var cls = CJobclass(code);
var i = 0;
for(var idx in cls.skills) if (cls.skills[idx]) skls[i++] = cls.skills[idx].code;
if (cls.upperJobClasses) for(var idx in cls.upperJobClasses) this.add_skill(type,idx,p);
}else{
skls[0] = code;
}
case 'object':
var i=0;
for(var idx in code.skills) if (code.skills[idx]) skls[i++] = code.skills[idx].code;
if (code.upperJobClasses) for(var idx in code.upperJobClasses) this.add_skill(type,idx,p);
}
for(var idx in skls){
switch(type){
case 3: case 4: // 継承出来ないスキルの設定
switch(skls[idx]){
case 'C206S1': // 魔防+10
case 'C206S2': // 居合一閃
case 'C204S2': // 特別な踊り
case 'C208S1': // 愛の叫び
case 'C208S2': // 絆
case 'C001S1': // デュアルアタック+
case 'C001S2': // カリスマ
continue; // 上記スキルの場合は継承不可
case 'C101S2': // 王の器
if (2==this.sex) continue; break;
case 'C101S1': // 天空
if (1==this.sex) continue; break;
}
}
if (!p[skls[idx]] || type <p[skls[idx]]) p[skls[idx]] = type;
}
}
//////////////////////////////////////////////////
// プロパティ設定
if (!code) return null;
var label = chars['code'];
var base = chars[code];
if (!base) return;
if (!units[code] || units[code].valid()){
units[code] = this;
this.code = code; // 内部コード
this.id = base[0]; // 内部ID
this.generation = base[1]; // 世代
this.gen = base[1]; // 世代
this.name = base[2]; // ユニット名
this.sex = base[3]; // 性別
this.init_class = Jobclass(base[4]); // 初期クラス
this.init_param = Params('init',base[5]); // 初期パラメータ
this.limit_adj = Params('adj',base[6]); // 上限値補正
this.weapon_levels = {}; // 初期武器レベル
var weapons = base[7];
var lst = label[7];
for(var idx in lst){
this.weapon_levels[lst[idx]] = num(weapons[idx]);
}
this.skills = {}; // 習得可能スキル
this.init_skills = {}; // 初期スキル
lst = base[8]?base[8].split(','):[];
for(var idx in lst){
var skcode = skill_code(lst[idx]);
this.add_skill(1,skcode); // 初期スキル
this.init_skills[skcode] = Skill(skcode); // lst[idx];
}
this.add_skill(2,'C300S1'); // 全能力+2
this.add_skill(2,'C300S2'); // エリート
if (this.gen){
// 素質
this.stuff = {flg:{},cls:{},inherit:{}}
lst = base[9];
for(var idx in lst){
var v = lst[idx];
var clcode = label[9][idx];
this.stuff.flg[clcode] = v;
if (!v) continue;
switch(v){
case 1: // 転職可能クラス
case 2: // 初期クラス
var jc = Jobclass(clcode); // lst[idx];
this.add_skill(2,jc);
this.stuff.cls[clcode] = jc;
case -1: // 転職不可クラス
}
}
// 素質(継承)
this.stuff.inherit = {};
this.stuff.inherit_flg = {};
lst = base[12];
for(var idx in lst){
var v = lst[idx];
var clcode = label[12][idx];
this.stuff.inherit_flg[clcode] = v;
if (!v) continue;
switch(v){
case 1: // 転職可能クラス
case 2: // 初期クラス
this.stuff.inherit[clcode] = Jobclass(clcode); // lst[idx];
case -1: // 転職不可クラス
switch(clcode){
case 'C207': // オーバーロード
this.add_skill(3,'C999S2'); // 覇王
break;
// case 'C204': // 踊り子
// this.add_skill(4,'C204S1'); // 幸運+4
}
}
}
// 配偶者一覧
this.spouses = {};
lst = base[13];
for(var idx in lst){
var v = lst[idx];
if (!v) continue;
// this.spouses[v] = Unit(v);
this.spouses[idx] = v;
}
this.variations = {init:{}};
this.variations.init.limit_adj = this.limit_adj;
this.variations.init.stuff_cls = this.stuff.cls;
this.variations.init.skills = this.skills;
// 親・子供処理
this.children = {fixed:null,variable:null};
this.parents = {fixed:null,variable:null};
if (base[10]) this.children.fixed = Unit(base[10]); // 固定子供
if (base[11]){
var p = this.parents.fixed = Unit(base[11]); // 固定親
for(var idx in p.stuff.cls){
this.add_skill(2+p.sex,idx); // 継承限定スキル
}
}
// 支援会話設定
if (conversations){
var cvr = conversations[this.code];
if (cvr){
// _debug(cvr,'conversations');
this.conversations = cvr;
}
}
}// if (this.gen){
}// if (units[code]){
// ここまで、ユニット固定の情報処理
// 自由親が指定されている場合
// _debug(this.generation+':'+vpcode,this.name);
// _debug(ret,name);
// if (1<this.generation && vpcode) this.set_variable_parent(vpcode);
// this.set_spouse(spscode,vpcode);
//////////////////////////////////////////////////
this.get_name = function(prop_name){
switch(prop_name){
case 'sex': return 1==this.sex?'male':'female';
case 'gen': return 1==this.gen?'gen1':'gen2';
}
return '';
}
//////////////////////////////////////////////////
}
var units = {};
function Unit(code,spscode,vpcode){
if (!code) return null;
if (!code.match(/^U/)) code = unitnames[code];
var index = code;
if (!units[index]){
var ins = new CUnit(code,spscode,vpcode);
if (ins.code) units[index] = ins;
}
var u = units[index];
var f = false;
if (!u) return null;
if (1<u.generation && vpcode){
if (!u.parents.variable || u.parents.variable.code!=vpcode){
u.set_variable_parent(vpcode);
f = true; // 親が変化したため、配偶者に子供がいる場合は配偶者情報を再設定する
}
}
if (spscode){
if (f || !u.spouse || u.spouse.code!=spscode){ // 指定した配偶者が設定されていない場合
// _debug('['+code+']'+spscode+':'+vpcode,'Unit');
u.set_spouse(spscode,vpcode);
}
}
return u;
}
function getUnit(code,spscode,vpcode){return Unit(code,spscode,vpcode);}
function get_unit(code,spscode,vpcode){return Unit(code,spscode,vpcode);}
//--></script>
}}
表示オプション
横に並べて表示:
変化行の前後のみ表示: