Angel Legion 2 game introduction and app programming sharing
szy(Taiwan) 2021.04.04April 04, 2021Preparation before App programming:
1.Plan the game data structure (use list data to define the meaning of each item, and save/read files in the future is to access this list data).
2.Collect required pictures/music materials and post-production.
3.Use MIT2 to program, you can go to the official website to program if you have a google account, no installation is required.
Link page http://appinventor.mit.edu
Click on the upper left <Create Apps!>
Then log in with Google account, you can start writing game App.
App programming:
1. Create the planned list data sequentially by programming.
2. Visualize the list data (combined page/image/button/text).
3. The progress of the game is to read the value of the list data item, change the value of the list data item, and then visualize it.
At this time, there are 4 very important and basic <Custom Programs>, which can greatly reduce the amount of subsequent programming and the number of blocks used.

Sharing example: Angel Legion 2 (angel2)
Google Play App: https://play.google.com/store/apps/details?id=appinventor.ai_a0920566396.angel2_en
Game youtube introduction: https://youtu.be/bkIA6QRE6Zk
Game app programming: https://gallery.appinventor.mit.edu/?galleryid=c0a2aa32-75ca-4454-ac5b-35328150e144
Game data definition: The game data is as follows

1,第1章:試煉,1,6,0,,0,0,Ch1:Uprising,
天使軍團,Angel Legion,100,1000;1010;1020;1030;1040;1050,0;0;0;0;0;0,
1200,2,2,0,1,
1,1,1,1,1,
1,,0,0,0,
魔化軍團,Demon Legion,250;220;190;160;130,1100;1110;1120;1130;1140;1150,0;0;0;0;0;0,
0,0,0,0,0,
0,0,0,0,0,
1,50;51;52,0,0,0,
1;10;2,2;10;2,3;10;2,4;10;2,5;5;2,
1;20;5,2;20;5,3;20;5,4;20;5,5;10;5,6;5;5,
1;40;12,2;40;12,3;40;12,4;40;12,5;20;12,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,241map_1.jpg,0,0,0,0,
400,
,
,
30,
3,
70;150;175;200;300; 500;0;0;0;0; 0;0;0;0;0; 0;0;0;0;0; 0;0;0;0;0; 0;0;0;0;0,
100,
250,
13,
8,
1301,
10;30,
1301;1309,
100;250,
1,130,10,1,0,0,0,0,50,90,
1,1305,1306,1307,1312,1316,1320,1,50,0,
10,0,0,0,0,0,0,0,0,0,
2,100;160;190,30,1,2,0,0,0,120,150,
1,1309,1310,1311,1324,1328,1332,1,50,0,
20,0,0,0,0,0,0,0,0,0,
3,130;220,30,1,0,2,0,0,80,240,
1,1309,1310,1311,1324,1328,1332,1,51,0,
30,0,0,0,0,0,0,0,0,0,
4,130;220,30,1,0,0,0,0,190,220,
1,1309,1310,1311,1324,1328,1332,1,52,0,
30,0,0,0,0,0,0,0,0,0,
5,160;190;250,30,1,0,0,0,0,150,320,
1,1309,1310,1311,1324,1328,1332,1,51,0,
40,0,0,0,0,0,0,0,0,0,
6,220,30,1,0,0,0,0,265,370,
1,1309,1310,1311,1324,1328,1332,1,51,140,
50,0,0,0,0,0,0,0,0,0,
7,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
8,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
9,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
10,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
11,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
12,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
13,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
14,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
15,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
16,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
17,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
18,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
19,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
20,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
21,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
22,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
23,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
24,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
25,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
26,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
27,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
28,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
29,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
30,,30,1,0,0,0,0,0,0,
1,1309,1310,1311,1324,1328,1332,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1099,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1199,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1270,
-,-,-,-,-,-,-,-,-,-,-,-,-,-,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1301;伊凡娜;Ivana;1;0;100;100;4;0;0;0;50;5;30;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1302;聖天使;Holy Angel;1;0;150;150;1;50;0;0;0;5;50;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1303;翼天使;Fly Angel;1;0;100;100;2;0;40;0;0;5;60;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1304;法天使;Mage Angel;1;0;100;100;3;0;0;30;0;15;40;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1305;聖天使;Holy Angel;1;0;150;150;1;50;0;0;0;0;50;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1306;翼天使;Fly Angel;1;0;100;100;2;0;40;0;0;0;60;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1307;法天使;Mage Angel;1;0;100;100;3;0;0;30;0;10;40;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1308;魔蒂斯;Edith;12;12100;900;900;3;0;0;100;0;20;65;0;0;0;0;0;0;0;1; 1;0;6;1;1;1;1;1;1;30,
1309;魔戰士;Great Devil;1;0;150;150;1;50;0;0;0;0;50;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;30,
1310;魔騎士;Demon Knight;1;0;100;100;2;0;40;0;0;0;60;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;30,
1311;魔咒師;Demon Mage;1;0;90;90;3;0;0;30;0;0;40;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;30,
1312;士兵;Soldier;1;0;100;100;1;25;0;0;0;0;50;0;0;0;0;0;0;0;1,
1313;戰士;Warrio;2;100;150;150;1;50;0;0;0;0;50;0;0;0;0;0;0;0;1,
1314;衝鋒戰士;Armor Warrior;3;400;200;200;1;80;0;0;0;0;50;0;0;0;0;0;0;0;1,
1315;皇家戰士;Royal Warrior;4;900;250;250;1;125;0;0;0;0;50;0;0;0;0;0;0;0;1,
1316;弓箭手;Archer;1;0;50;50;2;0;25;0;0;0;60;0;0;0;0;0;0;0;1,
1317;長弓手;Long Archer;2;100;100;100;2;0;40;0;0;0;60;0;0;0;0;0;0;0;1,
1318;大射手;Sniper;3;400;140;140;2;0;60;0;0;0;60;0;0;0;0;0;0;0;1,
1319;神射手;Marksman;4;900;160;160;2;0;90;0;0;0;60;0;0;0;0;0;0;0;1,
1320;祭司;Priest;1;0;60;60;4;0;0;0;25;0;10;0;0;0;0;0;0;0;1,
1321;主祭司;Master Priest;2;100;90;90;4;0;0;0;40;0;10;0;0;0;0;0;0;0;1,
1322;大祭司;High Priest;3;400;120;120;4;0;0;0;80;0;10;0;0;0;0;0;0;0;1,
1323;皇家祭司;Royal Priest;4;900;150;150;4;0;0;0;120;0;10;0;0;0;0;0;0;0;1,
1324;南瓜兵;Pumpkin Man;1;0;100;100;1;25;0;0;0;0;50;0;0;0;0;0;0;0;1,
1325;熊貓戰士;Panda Warrior;2;100;150;150;1;45;0;0;0;5;50;0;0;0;0;0;0;0;1,
1326;鬥牛戰士;Bull Warrior;3;400;200;200;1;70;0;0;0;10;50;0;0;0;0;0;0;0;1,
1327;飛鳥戰士;Asuka Warrior;4;900;250;250;1;110;0;0;0;15;50;0;0;0;0;0;0;0;1,
1328;弓箭手;Archer;1;0;45;45;2;0;30;0;0;0;60;0;0;0;0;0;0;0;1,
1329;長弓手;Long Archer;2;100;90;90;2;0;45;0;0;0;60;0;0;0;0;0;0;0;1,
1330;魔射手;Demon Archer;3;400;120;120;2;0;70;0;0;0;60;0;0;0;0;0;0;0;1,
1331;魔幻射手;Hell Archer;4;900;140;140;2;0;100;0;0;0;60;0;0;0;0;0;0;0;1,
1332;巫師;Wizard;1;0;40;40;3;0;0;15;0;0;40;0;0;0;0;0;0;0;1,
1333;黑巫師;Dark Wizard;2;100;70;70;3;0;0;30;0;5;40;0;0;0;0;0;0;0;1,
1334;高級巫師;Senior Wizard;3;400;100;100;3;0;0;45;0;10;40;0;0;0;0;0;0;0;1,
1335;魔幻巫師;Hell Wizard;4;900;125;125;3;0;0;60;0;15;40;0;0;0;0;0;0;0;1,
1336;大惡魔;Super Demon;5;1600;500;500;1;250;0;0;0;15;50;0;0;0;0;0;0;0;1,
1337;煉獄飛龍;Fly Dragon;5;1600;400;400;2;0;140;0;0;15;70;0;0;0;0;0;0;0;1,
1338;地獄魔龍;Dark Dragon;5;1600;400;400;3;0;0;70;0;15;70;0;0;0;0;0;0;0;1,
1339;神聖飛馬;Holy Pegasus;4;900;150;150;3;0;0;60;0;0;70;0;0;0;0;0;0;0;1,
1340;魔蒂斯;Edith;12;12100;900;900;3;0;0;100;0;20;65;0;0;0;0;0;0;0;1,
***data definition***
**condition**<0001>~<0009>
<0001>chapter(1~7)
<0002>chapter name(Chinese)
<0003>difficulty(1: 0.8 Easy, player G:3000)(2: 1 Normal, player G:1500)(3: 1.2 Difficult, player G:750)(4: 1.3 Very Difficult, player G:750)
<0004>number of castles in this chapter
<0005>round(1~999)
<0006>turn_list
<0007>current turn of the country(30,10,start 0)
<0008>date and time of archive
<0009>chapter name(English)
**country**<0010~0049>
<0010>天使軍團(Chinese)
+1<0011>Angel Legion(English)
+2<0012>list/castle id(100,120...)
+3<0013>list/hero_id(1000,1010,1020,1030,1040,1050)
+4<0014>list/hero status(city_id 100,130)(1~3:waiting round)(0:no)
+5<0015>gold
+6<0016>wood(building/hero upgrade)
+7<0017>ore(building/hero upgrade)
+8<0018>crystal(cast magic/hero upgrade)
+9<0019>sawmill lv1~10(1,2,3,4,5,6,7,8,9,10)(up500)
+10<0020>mining farmlv lv1~10(1,2,3,4,5,6,7,8,9,10)(up750)
+11<0021>crystal tower lv1~10(1,2,3,4,5,6,7,8,9,10)(up1000)
+12<0022>a melee troops(1~4)(2:up400)(3:up1200)(4:up2400)
+13<0023>s shoot troops(1~4)(2:up400)(3:up1200)(4:up2400)
+14<0024>t therapeutic troops(1~4)(2:up400)(3:up1200)(4:up2400)
+15<0025>troops development(0:end,1:可run)
+16<0026>list/magic that can be used(50,51,52...)
+17<0027>0
+18<0028>0
+19<0029>resource construction(0:end,1:可run)
<0030~0049>魔化軍團(Chinese) Demon Legion(English)
<0050>list/lv1 magic a+(1;10;2)(1-01;1-02) (crystal $2)
<0051>list/lv1 magic s+(2;10;2)(1-03;1-04;1-05)
<0052>list/lv1 magic m+(3;10;2)
<0053>list/lv1 magic t+(4;10;2)
<0054>list/lv1 magic d+(5;5;2)
<0055>list/lv2 magic a+(1;20;5)1+add/100 (crystal $5)
<0056>list/lv2 magic s+(2;20;5)
<0057>list/lv2 magic m+(3;20;5)
<0058>list/lv2 magic t+(4;20;5)
<0059>list/lv2 magic d+(5;10;5)add (+)
<0060>list/lv2 magic q+(6;5;5)add (+)
<0061>list/lv3 magic a+(1;40;12) (crystal $12)
<0062>list/lv3 magic s+(2;40;12)
<0063>list/lv3 magic m+(3;40;12)
<0064>list/lv3 magic t+(4;40;12)
<0065>list/lv3 magic d+(5;20;12)
<0080>0(troop_sel for verification code)
<0081>map type
<0082>0
<0083>0
<0084>0
<0085>0
*<0086>exp upper limit(d90-1)^2*100
<0087>id(rep data_id)
<0088>id(val for data_id)
*<0089>strength increase factor of enemy hero team(smaller number, the faster increase in troops)(d95+16)
*<0090>lv upper limit
<0091>list/troops coefficient of each castle(1~30 items list) troops coefficient*0.9/1/1.1/1.2
<0092>list/castle(lose anyone failed)(city_id list 100,130...)
*<0093>list/castle(occupy all to pass)(city_id list 100,130...)
*<0094>standard pass number of rounds(d95+5)
*<0095>the number of rounds used to pass the special reward
*<0096>reward heroes(+1 up point)(1301,1302...)
*<0097>list/initial hero_country list(10,10...)
*<0098>list/initial hero_id list(1301,1302...)
*<0099>list/initial hero_city list(100,130...)
**castle**<0100~0999>
0<0100>castle 1,2,3...
+1<0101>connected castles list(list 100,130...)
+2<0102>owner country(10:Angel,30:demon,0:neutral)
+3<0103>market level(lv1~10)(income:lv*100g)(upgrade:wood*2 + ore*1)
+4<0104>wood income(+2 wood)
+5<0105>ore income(+2 ore)
+6<0106>crystal income(+1 crystal)
+7<0107>transport technology(0:no)(1:yes)(build:500g + ore*5)
+8<0108>x coordinate
+9<0109>y coordinate
+10<0110>city run(0:ng)(1:ok)
+11<0111>recruit hero 1305($500)
+12<0112>recruit hero 1306($500)
+13<0113>recruit hero 1307($500)
+14<0114>recruit soldier 1312($50)
+15<0115>recruit archer 1316($50)
+16<0116>recruit priest 1320($50)
+17<0117>ancient ruins(0:no)(1:lv1magic or 300g)(2:lv2magic or 500g)(3:lv3magic or 700g)(4:holy pegasus) lv*5=troop total lv
+18<0118>magic 50~65(0:no or lv4)
+19<0119>troops parameter value of magical camp hero:troops=value*difficulty(0.8/1/1.2/1.3)*(1+round/d89)
+20<0120>path selection parameters(select small)
+21<0121>city_troop1 Troop(0:no)
+22<0122>city_troop2 Troop(0:no)
+23<0123>city_troop3 Troop(0:no)
+24<0124>city_troop4 Troop(0:no)
+25<0125>city_troop5 Troop(0:no)
+26<0126>city_troop6 Troop(0:no)
+27<0127>hero_troop_1_id(1000,1010...)(0:no)
+28<0128>hero_troop_2_id(1030,1040...)(0:no)
+29<0129>0
castle 1<0100>
castle 2<0130>
castle 3<0160>
castle 4<0190>
castle 5<0220>
castle 6<0250>
castle 7<0280>
castle 8<0310>
castle 9<0340>
castle10<0370>
castle11<0400>
castle12<0430>
castle13<0460>
castle14<0490>
castle15<0520>
castle16<0550>
castle17<0580>
castle18<0610>
castle19<0640>
castle20<0670>
castle21<0700>
castle22<0730>
castle23<0760>
castle24<0790>
castle25<0820>
castle26<0850>
castle27<0880>
castle28<0910>
castle29<0940>
castle30<0970>
**hero_id**<1000~1160>
<1000>hero_troop_id(value for hero_troop_id=troop_id)
+1<1001>troop1 list
+2<1002>troop2 list
+3<1003>troop3 list
+4<1004>troop4 list
+5<1005>troop5 list
+6<1006>troop6 list
+7<1007>hero_troops_list(1001,1004,1005...)
+8<1008>city_id(100,130...)
+9<1009>27or28(city+27 or city+28)
<1000>angel hero1(Ivana)
<1010>angel hero2
<1020>angel hero3
<1030>angel hero4
<1040>angel hero5
<1050>angel hero6
<1060>0(verification code)
<1100>captain demon1
<1110>captain demon2
<1120>captain demon3
<1130>captain demon4
<1140>captain demon5
<1150>captain demon6
<1160>0(verification code)
<1190>attacker/move troops list(1~6 troop_id)
**war**<1200>~<1236>temporary value of battle data
<1200>attacker list(Remove the troops: hp0 or retreat)
<1201>attacker troop1 (1001,1002...)
<1202>attacker troop2
<1203>attacker troop3
<1204>attacker troop4
<1205>attacker troop5
<1206>attacker troop6
<1207>0
<1208>0
<1209>0
<1210>0
<1211>attacker a attack add (1,1.1,1.2) (*)
<1212>attacker s shoot add (1,1.1,1.2) (*)
<1213>attacker m magic add (1,1.1,1.2) (*)
<1214>attacker t treat add (1,1.1,1.2) (*)
<1215>attacker d defense add (+)
<1216>attacker q speed add (+)
<1220>defender list(Remove the troops: hp0 or retreat)
<1221>defender troop1 (1001,1002...)
<1222>defender troop2
<1223>defender troop3
<1224>defender troop4
<1225>defender troop5
<1226>defender troop6
<1227>0
<1228>0
<1229>0
<1230>0
<1231>defender a attack add (1,1.1,1.2) (*)
<1232>defender s shoot add (1,1.1,1.2) (*)
<1233>defender m magic add (1,1.1,1.2) (*)
<1234>defender t treat add (1,1.1,1.2) (*)
<1235>defender d defense add (+)
<1236>defender q speed add (+)
**ancient ruins**<1240>~<1266>
<1240>ancient ruins virtual castle
<1261>ancient ruins troop1 list
<1262>ancient ruins troop2 list
<1263>ancient ruins troop3 list
<1264>ancient ruins troop4 list
<1265>ancient ruins troop5 list
<1266>ancient ruins troop6 list
<1271>chapter 1 using rounds(d5)
<1272>chapter 1 scoring
<1273>chapter 2 using rounds
<1274>chapter 2 scoring
<1275>chapter 3 using rounds
<1276>chapter 3 scoring
<1277>chapter 4 using rounds
<1278>chapter 4 scoring
<1279>chapter 5 using rounds
<1280>chapter 5 scoring
<1281>chapter 6 using rounds
<1282>chapter 6 scoring
<1283>chapter 7 using rounds
<1284>chapter 7 scoring
**<1301>~<1340>**troop data
1301;伊凡娜;Ivana;1;0;100;100;4;0;0;0;50;5;30;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1302;聖天使;Holy Angel;1;0;150;150;1;50;0;0;0;5;50;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1303;翼天使;Fly Angel;1;0;100;100;2;0;40;0;0;5;60;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1304;法天使;Mage Angel;1;0;100;100;3;0;0;30;0;15;40;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1305;聖天使;Holy Angel;1;0;150;150;1;50;0;0;0;0;50;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1306;翼天使;Fly Angel;1;0;100;100;2;0;40;0;0;0;60;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1307;法天使;Mage Angel;1;0;100;100;3;0;0;30;0;10;40;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;10,
1308;魔蒂斯;Edith;12;12100;900;900;3;0;0;100;0;20;65;0;0;0;0;0;0;0;1; 1;0;6;1;1;1;1;1;1;30,
1309;魔戰士;Great Devil;1;0;150;150;1;50;0;0;0;0;50;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;30,
1310;魔騎士;Demon Knight;1;0;100;100;2;0;40;0;0;0;60;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;30,
1311;魔咒師;Demon Mage;1;0;90;90;3;0;0;30;0;0;40;0;0;0;0;0;0;0;1; 1;0;4;1;1;1;1;1;1;30,
1312;士兵;Soldier;1;0;100;100;1;25;0;0;0;0;50;0;0;0;0;0;0;0;1,
1313;戰士;Warrio;2;100;150;150;1;50;0;0;0;0;50;0;0;0;0;0;0;0;1,
1314;衝鋒戰士;Armor Warrior;3;400;200;200;1;80;0;0;0;0;50;0;0;0;0;0;0;0;1,
1315;皇家戰士;Royal Warrior;4;900;250;250;1;125;0;0;0;0;50;0;0;0;0;0;0;0;1,
1316;弓箭手;Archer;1;0;50;50;2;0;25;0;0;0;60;0;0;0;0;0;0;0;1,
1317;長弓手;Long Archer;2;100;100;100;2;0;40;0;0;0;60;0;0;0;0;0;0;0;1,
1318;大射手;Sniper;3;400;140;140;2;0;60;0;0;0;60;0;0;0;0;0;0;0;1,
1319;神射手;Marksman;4;900;160;160;2;0;90;0;0;0;60;0;0;0;0;0;0;0;1,
1320;祭司;Priest;1;0;60;60;4;0;0;0;25;0;10;0;0;0;0;0;0;0;1,
1321;主祭司;Master Priest;2;100;90;90;4;0;0;0;40;0;10;0;0;0;0;0;0;0;1,
1322;大祭司;High Priest;3;400;120;120;4;0;0;0;80;0;10;0;0;0;0;0;0;0;1,
1323;皇家祭司;Royal Priest;4;900;150;150;4;0;0;0;120;0;10;0;0;0;0;0;0;0;1,
1324;南瓜兵;Pumpkin Man;1;0;100;100;1;25;0;0;0;0;50;0;0;0;0;0;0;0;1,
1325;熊貓戰士;Panda Warrior;2;100;150;150;1;45;0;0;0;5;50;0;0;0;0;0;0;0;1,
1326;鬥牛戰士;Bull Warrior;3;400;200;200;1;70;0;0;0;10;50;0;0;0;0;0;0;0;1,
1327;飛鳥戰士;Asuka Warrior;4;900;250;250;1;110;0;0;0;15;50;0;0;0;0;0;0;0;1,
1328;弓箭手;Archer;1;0;45;45;2;0;30;0;0;0;60;0;0;0;0;0;0;0;1,
1329;長弓手;Long Archer;2;100;90;90;2;0;45;0;0;0;60;0;0;0;0;0;0;0;1,
1330;魔射手;Demon Archer;3;400;120;120;2;0;70;0;0;0;60;0;0;0;0;0;0;0;1,
1331;魔幻射手;Hell Archer;4;900;140;140;2;0;100;0;0;0;60;0;0;0;0;0;0;0;1,
1332;巫師;Wizard;1;0;40;40;3;0;0;15;0;0;40;0;0;0;0;0;0;0;1,
1333;黑巫師;Dark Wizard;2;100;70;70;3;0;0;30;0;5;40;0;0;0;0;0;0;0;1,
1334;高級巫師;Senior Wizard;3;400;100;100;3;0;0;45;0;10;40;0;0;0;0;0;0;0;1,
1335;魔幻巫師;Hell Wizard;4;900;125;125;3;0;0;60;0;15;40;0;0;0;0;0;0;0;1,
1336;大惡魔;Super Demon;5;1600;500;500;1;250;0;0;0;15;50;0;0;0;0;0;0;0;1,
1337;煉獄飛龍;Fly Dragon;5;1600;400;400;2;0;140;0;0;15;70;0;0;0;0;0;0;0;1,
1338;地獄魔龍;Dark Dragon;5;1600;400;400;3;0;0;70;0;15;70;0;0;0;0;0;0;0;1,
1339;神聖飛馬;Holy Pegasus;4;900;150;150;3;0;0;60;0;0;70;0;0;0;0;0;0;0;1,
1340;魔蒂斯;Edith;12;12100;900;900;3;0;0;100;0;20;65;0;0;0;0;0;0;0;1,
**troop list**
<01>troop code(unit_id 1301)
<02>troop name(chinese)
<03>troop name(english)
<04>lv
<05>exp
<06>maxhp
<07>nowhp
<08>a-type(attack range)(1:attack)(2:shoot)(3:magic)(4:treat)
<09>a attack
<10>s shoot
<11>m magic
<12>t treat
<13>d defense
<14>q speed
<15>a+
<16>s+
<17>m+
<18>t+
<19>d+
<20>q+
<21>action type(1:attack)(2:shoot)(3:magic)(4:treat)(5:defense)(6:pending retreat)(7:retreated)
<22>war action(0:end,1:can run)<war start return 1>
<23>command(0:end,1:can run)Can command / Can not move<new round return 1>
<24>skill points
<25>maximum number of troops 4~6 (4,5,6)(up:1w+3o+6c)
<26>the strength bonus of all members led by this hero 1~3 p+(a+s+m+t+)(1,1.1,1.2)(up:2w+4o+4c)
<27>the defense bonus of all members led by the hero 1~3 d+(0,10,20)(up:1w+5o+4c)
<28>the agility bonus of all members led by this hero 1~3 q+(0,5,10)(up:4w+6c)
<29>the hero's HP bonus1~3 (hero himself hp)(1,1.2,1.3)(up:6c)
<30>the hero's strength bonus 1~3 (hero himself strength)(1,1.2,1.3)(up:6c)
<31>daily additional fund income 1~3 (0,150,300)(up:1w+2o+1c)
<32>owner country(10:Angel,30:demon,0:neutral)
troop exp(100*(lv-1)^2)(1:lv1/0exp)(2:lv2/100exp)(3:lv3/400exp)(4:lv4/900exp)(5:lv5/1600exp)(6:lv6/2500exp)(7:lv7/3600exp)(8:lv8/4900exp)(9:lv9/6400exp)(10:lv10/8100exp)(11:lv11/10000exp)(12:lv12/12100exp)
force value and experience value generated by death(1:lv1/50)(2:lv2/100)(3:lv3/200)(4:lv4/300)(5:lv5/350)(6:lv6/400)...*Difficulty coefficient value 1.2/1/0.8/0.8
**condition**
<01>language(2:english)(1:Chinese)
<02>sound(1:on)(0:of)
<03>pass(0:ng)(1:pass)
***variable***
<data>game data
<language>Language(1:Chinese)(2:english)
<page>current page(0:home/1:map/2:city/3:country/4:hero/5:war_att_layout/6:war_def_layout/7:war)<home and next 0><start:1><load:1><city_sel2:2>
<explanation>explanation(0:home/1:map/2:city/3:country/4:hero/5:war_att_layout/6:war_def_layout/7:war/8:troop_view/9:hero_view)
<save>save1~7
<com_mode>(0:player)(1:AI war/move)(2:AI enlist)(9:fist)<new:0><load:0><new player:0>
<move_mode>(0:no)(1:hero move)(2:hero attack)(3:hero explore ancient ruins)(4:troops move)(9:new game)<map:0><new:0><load:0><turn:0>
<sel>(1:selectable,0:not selectable)(fist:0)(start:0)
<city_id>the id of the currently selected castle(130,160...)
<troop_id>the id of the currently selected troop<map:0><troop_sel_cancel:0>
<troop_id_first>first select the id of the troop(0:no)<map:0><2527select:0><troop_sel_cancel:0>
<hero_troop_id>hero troop_id(1000,1010...)<map:0><troop_sel_cancel:0>
<city_x1>first choose the x coordinate of the castle
<city_y1>first choose the y coordinate of the castle
<city_x2>the x-coordinate of the target castle
<city_y2>the x-coordinate of the target castle
<move_time>(used for animation effects)
<a_city_id>attacker castle id(130,160...)<map:0>
<a_country>offensive country id(0,10,30,50...)<map:0>
<d_city_id>defender castle id(130,160...)<map:0>
<d_country>defender country id(0,10,30,50...0:neutral)<map:0>
<d_troop>defender(21:castle)(27:hero1)(28:hero2)<map:0>
<d_troop_21>offensive troops
<magic>50~65(0:no)
<war_view>(0:dont see)(1:see)
<war_troop_run>the id of the troop executing the command(1201;1202...)<war:0><war_run:0>
<war_troop_first_s>first select the id of the troop(1001;1002...)(0:no)(9:att_ready)<war:0><war_troop_sel_vio_off:0><war_run:0>
<war_rnu1>round (1~12round)<war_layout_start:1>
<war_run2>Nth action<war_layout_start:1>
<war_turn>round 1~12回<war:0>
<war_win>(att:attacker wins)(def:defender wins)(draw:draw)<war:0>
<war_ret_troop>defender castle id list(100,130...)
<war_ret_hero>defender castle id list(100,130...)
<war_att_delay>(war_att_aims)attack screen effect
<war2491>the id of the troop executing the command(1201;1221...)<war_run:0>
<war2492>command to execute(0:view)(1:attack)(2:shoot)(3:magic)(4:treat)(5:defense)(6:retreat)(7:change)<war:0><war_run:0><war_layout_start:0>
<war2493>action type(0:no)(1:attack)(2:shoot)(3:magic)(4:treat)<war_run:0>
<war2494>optional target troop id(list:1201,1202,...)<war_run:0>
<war2495>selected target troop id(1201;1202...)<war_run:0>
<war2496>experience points gained by the attacker<war:0>
<war2497>experience points gained by the defender<war:0>
<war2499>autowar mode:(0:manual)(1:autowar)<war:0>
***scenes***
Ch1:Uprising (upper limit lv3) (hero1)(number of castles 6) (main demon castle1)(boss1) (241map_1)
Ch2:Angel jihad (upper limit lv5) (hero1)(number of castles 10)(main demon castle1)(boss1) (241map_2)
Ch3:Demon Castle (upper limit lv6) (hero2)(number of castles 15)(main demon castle1)(boss1) (241map_3)
Ch4:Purgatory (upper limit lv7) (hero3)(number of castles 20)(main demon castle2)(boss2) (241map_4)
Ch5:Hell Castle (upper limit lv8) (hero4)(number of castles 22)(main demon castle3)(boss3) (241map_5)
Ch6:Holy Capital (upper limit lv10)(hero4)(number of castles 25)(main demon castle3)(boss3) (241map_6)
Ch7:War of faith (upper limit lv12)(hero4)(number of castles 25)(main demon castle3)(boss3*)(241map_6)
Scenes8: Light and Dark (upper limit lv12)(304) (number of castles 22)(main demon castle3)(boss3) (241map_5) (Normal)
Scenes9: Angel glory (upper limit lv12)(303) (number of castles 25)(main demon castle3)(boss3) (241map_9) (difficult)
Scenes10: Holy war (upper limit lv12)(302) (number of castles 30)(main demon castle3)(boss3*)(241map_10)(very difficult)
Scenes11: Dark earth (upper limit lv12)(301) (number of castles 30)(main demon castle3)(boss3*)(241map_10)(very difficult)