tankant 发表于 2013-9-8 21:26:09

【大唐复兴】让AOFE的AI变成AORT的AI的Linux脚本(阶段性成果)

本帖最后由 tankant 于 2013-9-8 22:48 编辑

目前只针对Barbarian2.0做兼容性修改,转换的AI已经上传到群共享里。群号:64619655

1.change.sh
作用:替换诸葛弩变为陌刀兵(相关科技和补建筑的动作都替换了)
解释说明:
change.sh会调用其他脚本
define.py定义一些变量,为将来扩展做准备
change1.sh修改除了Barbarian.per以外所有chu-ko-nu变成modaobing
change2.sh修改Barbarian.per
change3.sh做Barbarian.per的后续修改(rule太长分开写)

测试结果:
如果兵营及时补,一定会合理出大量陌刀兵。现在就是兵营的 有无和多少难以控制。


另外释疑:玛雅,拜占庭的AI不需要改动
由于本人工作的原因,下日周内完成玄甲骑兵的AI

tankant 发表于 2013-9-8 21:26:34

change.sh

本帖最后由 tankant 于 2013-9-8 22:06 编辑

python ./define.py
sh ./change1.sh
sh ./change2.sh
sh ./change3.sh


tankant 发表于 2013-9-8 21:29:50

define.py

本帖最后由 tankant 于 2013-9-8 22:06 编辑

#!/usr/bin/env python
import os,re
file_list=[]
def get_all_file(floder_path):
    file_list=[]
    if floder_path is None:
      raise Exception("floder_path is None")
    for dirpath, dirnames, filenames in os.walk(floder_path):
      for name in filenames:
            file_list.append(dirpath + '/' + name)
    return file_list
file_list_result=get_all_file("/media/926bfa98-9eb6-414d-ab62-88b3fd1ba801/geli/HawKAoC/AI")
for i in file_list_result:
    i=re.sub(r'\s+','\\ ',i)
    stmt="sed -i 's/my-unique-unit/aort-my-unique-unit1/g' "+i
    os.system(stmt)

tankant 发表于 2013-9-8 21:30:21

change1.sh

本帖最后由 tankant 于 2013-9-8 22:07 编辑

#!/usr/bin/bash
vim ./AI/Barbarian_2.0/SuicidalKnightRush.per<<EOF
:%s/chu-ko-nu/modaobing/g
:x
EOF

vim ./AI/Barbarian_2.0/MonksAndTrebs.per<<EOF
:%s/chu-ko-nu/modaobing/g
:x
EOF

vim ./AI/Barbarian_2.0/Strategies1v1.per<<EOF
:%s/chu-ko-nu/modaobing/g
:x
EOF

vim ./AI/Barbarian_2.0/StrategiesTG.per<<EOF
:%s/chu-ko-nu/modaobing/g
:x
EOF

vim ./AI/Barbarian_2.0/DeathMatch.per<<EOF
:%s/chu-ko-nu/modaobing/g
:x
EOF

vim ./AI/Barbarian_2.0/TheGrowlOfTheJaguar.per<<EOF
:%s/chu-ko-nu/modaobing/g
:x
EOF

vim ./AI/Barbarian_2.0/Strategies/WarGalleys.per<<EOF
:%s/chu-ko-nu/modaobing/g
:x
EOF

tankant 发表于 2013-9-8 21:32:00

change2.sh

本帖最后由 tankant 于 2013-9-8 22:08 编辑

vim ./AI/Barbarian.per<<EOF
:%s/teutonic-knight/gongjveweidui/g
:%s/jaguar-warrior/war-elephant/g

:%s/chu-ko-nu/modaobing/g
gg/modaobing
yypn:s/modaobing/sakesunchangqiangbing/g
pn:s/modaobing/beiouchangfubing/g
pn:s/modaobing/buluozhanshi/g
pn:s/modaobing/silafuyongshi/g
pn:s/modaobing/liudima/g
pn:s/modaobing/lunbadenushou/g
pn:s/modaobing/yinduxiangshe/g
pn:s/modaobing/gaomianjianuzhanxiang/g
pn:s/modaobing/hualangsheshou/g
pn:s/modaobing/falankeqibing/g
pn:s/modaobing/sashanqibing/g
pn:s/modaobing/subiqibing/g
pn:s/modaobing/jinlangtuqi/g
pn:s/modaobing/xuanjiaqibing/g

/#load-if-defined CHINESE-CIV
/modaobing
/archery-range
:s/archery-range/barracks/g
n:s/archery-range/barracks/g
n:s/archery-range/barracks/g

/modaobing
/ri-fletching
:s/ri-fletching/ri-forging/g
/ri-bodkin-arrow
:s/ri-bodkin-arrow/ri-iron-casting/g
/ri-bracer
:s/ri-bracer/ri-blast-furnace/g

/modaobing
/ri-fletching
:s/ri-fletching/ri-forging/g
/ri-bodkin-arrow
:s/ri-bodkin-arrow/ri-iron-casting/g
/ri-bracer
:s/ri-bracer/ri-blast-furnace/g

/ri-fletching
:s/ri-fletching/ri-forging/g
/ri-bodkin-arrow
:s/ri-bodkin-arrow/ri-iron-casting/g
/ri-bracer
:s/ri-bracer/ri-blast-furnace/g

/modaobing
/ri-chemistry
:s/ri-chemistry/1070/g
/ri-padded-archer-armor
:s/ri-padded-archer-armor/ri-scale-mail/g
/ri-leather-archer-armor
:s/ri-leather-archer-armor/ri-chain-mail/g
/ri-ring-archer-armor
:s/ri-ring-archer-armor/ri-plate-mail/g

/ri-chemistry
:s/ri-chemistry/1070/g
/ri-padded-archer-armor
:s/ri-padded-archer-armor/ri-scale-mail/g
/ri-leather-archer-armor
:s/ri-leather-archer-armor/ri-chain-mail/g
/ri-ring-archer-armor
:s/ri-ring-archer-armor/ri-plate-mail/g

/modaobing
/ri-ballistics
:s/ri-ballistics/ri-squires/g
/ri-thumb-ring
:s/ri-thumb-ring/ri-tracking/g

/ri-ballistics
:s/ri-ballistics/ri-squires/g
/ri-thumb-ring
:s/ri-thumb-ring/ri-tracking/g

ggo
;AORT UNIT

(defconst modaobing-line 882)
(defconst modaobing 882)
(defconst elite-modaobing 884)

(defconst sakesunchangqiangbing-line 1045)
(defconst sakesunchangqiangbing 1045)
(defconst elite-sakesunchangqiangbing 1047)

(defconst falankeqibing-line 1048)
(defconst falankeqibing 1048)
(defconst elite-falankeqibing 1050)

(defconst getejinweiqibing-line 1051)
(defconst getejinweiqibing 1051)
(defconst elite-getejinweiqibing 1053)

(defconst gongjveweidui-line 1054)
(defconst gongjveweidui 1054)
(defconst elite-gongjveweidui 1056)

(defconst lunbadenushou-line 1064)
(defconst lunbadenushou 1064)
(defconst elite-lunbadenushou 1066)

(defconst liudima-line 994)
(defconst liudima 994)
(defconst elite-liudima 996)

(defconst xuanjiaqibing-line 886)
(defconst xuanjiaqibing 886)
(defconst elite-xuanjiaqibing 888)

(defconst sashanqibing-line 1012)
(defconst sashanqibing 1012)
(defconst elite-sashanqibing 1013)

(defconst shengzhanluotuo 1015)

(defconst kehanweidui-line 1006)
(defconst kehanweidui 1006)
(defconst elite-kehanweidui 1008)

(defconst jinlangtuqi-line 1003)
(defconst jinlangtuqi 1003)
(defconst elite-jinlangtuqi 1005)

(defconst beiouchangfubing-line 1042)
(defconst beiouchangfubing 1042)
(defconst elite-beiouchangfubing 1044)

(defconst gaoyuanqibing-line 1000)
(defconst gaoyuanqibing 1000)
(defconst elite-gaoyuanqibing 1002)

(defconst subiqibing-line 997)
(defconst subiqibing 997)
(defconst elite-subiqibing 999)

(defconst yinduxiangshe-line 876)
(defconst yinduxiangshe 876)
(defconst elite-yinduxiangshe 878)

(defconst buluozhanshi-line 1039)
(defconst buluozhanshi 1039)
(defconst elite-buluozhanshi 1041)

(defconst gaomianjianuzhanxiang-line 1020)
(defconst gaomianjianuzhanxiang 1020)
(defconst elite-gaomianjianuzhanxiang 1022)

(defconst silafuyongshi-line 1009)
(defconst silafuyongshi 1009)
(defconst elite-silafuyongshi 1011)

(defconst hualangsheshou-line 879)
(defconst hualangsheshou 879)
(defconst elite-hualangsheshou 881)

(defconst toumaoqibing 935)
(defconst gongchengta 869)
(defconst yuntiche 1024)
(defconst yunbingmache 1028)
(defconst jiangjun 879)




(defconst ri-elite-modaobing 883)

#load-if-defined CHINESE-CIV
(defconst aort-my-unique-unit1-line modaobing)
(defconst aort-my-unique-unit1 modaobing)
(defconst aort-my-elite-unique-unit1 elite-modaobing)
(defconst aort-my-unique-unit2-line xuanjiaqibing)
(defconst aort-my-unique-unit2 xuanjiaqibing)
(defconst aort-my-elite-unique-unit2 elite-xuanjiaqibing)
(defconst aort-my-unique-unit1-upgrade ri-elite-modaobing)
#end-if


:x
EOF

tankant 发表于 2013-9-8 22:08:33

change3.sh

vim ./AI/Barbarian.per<<EOF
/modaobing
nnnnnnnn9k2yy15jp16j3yy17kp
:x
EOF

levin 发表于 2013-9-8 23:58:24

不明觉顶

tankant 发表于 2013-9-9 00:28:18

本帖最后由 tankant 于 2013-9-11 22:33 编辑

计划change2.sh下一个版本:

vim ./AI/Barbarian.per<<EOF
:%s/teutonic-knight/gongjveweidui/g
:%s/jaguar-warrior/war-elephant/g

:%s/chu-ko-nu/modaobing/g
gg/modaobing
yypn:s/modaobing/sakesunchangqiangbing/g
pn:s/modaobing/beiouchangfubing/g
pn:s/modaobing/buluozhanshi/g
pn:s/modaobing/silafuyongshi/g
pn:s/modaobing/liudima/g
pn:s/modaobing/lunbadenushou/g
pn:s/modaobing/yinduxiangshe/g
pn:s/modaobing/gaomianjianuzhanxiang/g
pn:s/modaobing/hualangsheshou/g
pn:s/modaobing/falankeqibing/g
pn:s/modaobing/sashanqibing/g
pn:s/modaobing/subiqibing/g
pn:s/modaobing/jinlangtuqi/g
pn:s/modaobing/xuanjiaqibing/g

/#load-if-defined CHINESE-CIV
/modaobing
/archery-range
:s/archery-range/barracks/g
n:s/archery-range/barracks/g
n:s/archery-range/barracks/g

/modaobing
/ri-fletching
:s/ri-fletching/ri-forging/g
/ri-bodkin-arrow
:s/ri-bodkin-arrow/ri-iron-casting/g
/ri-bracer
:s/ri-bracer/ri-blast-furnace/g

/modaobing
/ri-fletching
:s/ri-fletching/ri-forging/g
/ri-bodkin-arrow
:s/ri-bodkin-arrow/ri-iron-casting/g
/ri-bracer
:s/ri-bracer/ri-blast-furnace/g

/ri-fletching
:s/ri-fletching/ri-forging/g
/ri-bodkin-arrow
:s/ri-bodkin-arrow/ri-iron-casting/g
/ri-bracer
:s/ri-bracer/ri-blast-furnace/g

/modaobing
/ri-chemistry
:s/ri-chemistry/1070/g
/ri-padded-archer-armor
:s/ri-padded-archer-armor/ri-scale-mail/g
/ri-leather-archer-armor
:s/ri-leather-archer-armor/ri-chain-mail/g
/ri-ring-archer-armor
:s/ri-ring-archer-armor/ri-plate-mail/g

/ri-chemistry
:s/ri-chemistry/1070/g
/ri-padded-archer-armor
:s/ri-padded-archer-armor/ri-scale-mail/g
/ri-leather-archer-armor
:s/ri-leather-archer-armor/ri-chain-mail/g
/ri-ring-archer-armor
:s/ri-ring-archer-armor/ri-plate-mail/g

/modaobing
/ri-ballistics
:s/ri-ballistics/ri-squires/g
/ri-thumb-ring
:s/ri-thumb-ring/ri-tracking/g

/ri-ballistics
:s/ri-ballistics/ri-squires/g
/ri-thumb-ring
:s/ri-thumb-ring/ri-tracking/g

ggo
;AORT UNIT

(defconst modaobing-line 882)
(defconst modaobing 882)
(defconst elite-modaobing 884)

(defconst sakesunchangqiangbing-line 1045)
(defconst sakesunchangqiangbing 1045)
(defconst elite-sakesunchangqiangbing 1047)

(defconst falankeqibing-line 1048)
(defconst falankeqibing 1048)
(defconst elite-falankeqibing 1050)

(defconst getejinweiqibing-line 1051)
(defconst getejinweiqibing 1051)
(defconst elite-getejinweiqibing 1053)

(defconst gongjveweidui-line 1054)
(defconst gongjveweidui 1054)
(defconst elite-gongjveweidui 1056)

(defconst lunbadenushou-line 1064)
(defconst lunbadenushou 1064)
(defconst elite-lunbadenushou 1066)

(defconst liudima-line 994)
(defconst liudima 994)
(defconst elite-liudima 996)

(defconst xuanjiaqibing-line 886)
(defconst xuanjiaqibing 886)
(defconst elite-xuanjiaqibing 888)

(defconst sashanqibing-line 1012)
(defconst sashanqibing 1012)
(defconst elite-sashanqibing 1013)

(defconst shengzhanluotuo 1015)

(defconst kehanweidui-line 1006)
(defconst kehanweidui 1006)
(defconst elite-kehanweidui 1008)

(defconst jinlangtuqi-line 1003)
(defconst jinlangtuqi 1003)
(defconst elite-jinlangtuqi 1005)

(defconst beiouchangfubing-line 1042)
(defconst beiouchangfubing 1042)
(defconst elite-beiouchangfubing 1044)

(defconst gaoyuanqibing-line 1000)
(defconst gaoyuanqibing 1000)
(defconst elite-gaoyuanqibing 1002)

(defconst subiqibing-line 997)
(defconst subiqibing 997)
(defconst elite-subiqibing 999)

(defconst yinduxiangshe-line 876)
(defconst yinduxiangshe 876)
(defconst elite-yinduxiangshe 878)

(defconst buluozhanshi-line 1039)
(defconst buluozhanshi 1039)
(defconst elite-buluozhanshi 1041)

(defconst gaomianjianuzhanxiang-line 1020)
(defconst gaomianjianuzhanxiang 1020)
(defconst elite-gaomianjianuzhanxiang 1022)

(defconst silafuyongshi-line 1009)
(defconst silafuyongshi 1009)
(defconst elite-silafuyongshi 1011)

(defconst hualangsheshou-line 879)
(defconst hualangsheshou 879)
(defconst elite-hualangsheshou 881)

(defconst toumaoqibing 935)
(defconst gongchengta 869)
(defconst yuntiche 1024)
(defconst yunbingmache 1028)
(defconst jiangjun 879)

#aort-knight-line      cataphract
#aort-archer-linelongbowman
#aort-scorpion-line    scorpion-line
#aort-cavalry-archer-line mangudai




#aort-my-unique-unit2-line
#aort-my-unique-unit2-upgrade

#aort-spearman-line    spearman-line
#aort-scout-cavalry-line    magyar-huszar   scout-cavalry-line


#aort-militiaman-line   meizhouhuwushi,huskarl,dianlantujizhe,tiaodunwushi









#1
(defconst ri-elite-sakesunchangqiangbing 573)

#load-if-defined BRITON-CIV
(defconst aort-my-unique-unit1-line longbowman)
(defconst aort-my-unique-unit1 longbowman)
(defconst aort-my-elite-unique-unit1 elite-longbowman)
(defconst aort-my-unique-unit1-upgrade ri-elite-longbowman)

(defconst aort-my-unique-unit2-line sakesunchangqiangbing)
(defconst aort-my-unique-unit2 sakesunchangqiangbing)
(defconst aort-my-elite-unique-unit2 elite-sakesunchangqiangbing)
(defconst aort-my-unique-unit2-upgrade ri-elite-sakesunchangqiangbing)


(defconst aort-archer-line longbowman-line)
(defconst aort-archer longbowman)
(defconst aort-elite-archer elite-longbowman)

(defconst aort-spearman-line sakesunchangqiangbing-line)
(defconst aort-spearman sakesunchangqiangbing)
(defconst aort-elite-spearman elite-sakesunchangqiangbing)
#end-if



#2

(defconst ri-elite-falankeqibing 575)

#load-if-defined FRANKISH-CIV
(defconst aort-my-unique-unit1-line falankeqibing)
(defconst aort-my-unique-unit1 falankeqibing)
(defconst aort-my-elite-unique-unit1 elite-falankeqibing)
(defconst aort-my-unique-unit1-upgrade ri-elite-falankeqibing)

(defconst aort-my-unique-unit2-line throwing-axeman)
(defconst aort-my-unique-unit2 throwing-axeman)
(defconst aort-my-elite-unique-unit2 elite-throwing-axeman)
(defconst aort-my-unique-unit2-upgrade ri-elite-throwing-axeman)


(defconst aort-militiaman-line throwing-axeman-line)
(defconst aort-militiaman throwing-axeman)
(defconst aort-elite-militiaman elite-throwing-axeman)

(defconst aort-knight-line falankeqibing-line)
(defconst aort-knight falankeqibing)
(defconst aort-elite-knight elite-falankeqibing)


#end-if

#3

(defconst ri-elite-getejinweiqibing 579)

#load-if-defined GOTHIC-CIV
(defconst aort-my-unique-unit1-line huskarl)
(defconst aort-my-unique-unit1 huskarl)
(defconst aort-my-elite-unique-unit1 elite-huskarl)
(defconst aort-my-unique-unit1-upgrade ri-elite-huskarl)

(defconst aort-my-unique-unit2-line getejinweiqibing)
(defconst aort-my-unique-unit2 getejinweiqibing)
(defconst aort-my-elite-unique-unit2 elite-getejinweiqibing)
(defconst aort-my-unique-unit2-upgrade ri-elite-getejinweiqibing)

(defconst aort-militiaman-line huskarl-line)
(defconst aort-militiaman huskarl)
(defconst aort-elite-militiaman elite-huskarl)

(defconst aort-knight-line getejinweiqibing-line)
(defconst aort-knight getejinweiqibing)
(defconst aort-elite-knight elite-getejinweiqibing)


#end-if

#4

(defconst ri-elite-gongjveweidui 577)
(defconst ri-elite-lunbadenushou 587)

#load-if-defined TEUTONIC-CIV
(defconst aort-my-unique-unit1-line gongjveweidui)
(defconst aort-my-unique-unit1 gongjveweidui)
(defconst aort-my-elite-unique-unit1 elite-gongjveweidui)
(defconst aort-my-unique-unit1-upgrade ri-elite-gongjveweidui)

(defconst aort-my-unique-unit2-line lunbadenushou)
(defconst aort-my-unique-unit2 lunbadenushou)
(defconst aort-my-elite-unique-unit2 elite-lunbadenushou)
(defconst aort-my-unique-unit2-upgrade ri-elite-lunbadenushou)


(defconst aort-militiaman-line gongjveweidui-line)
(defconst aort-militiaman gongjveweidui)
(defconst aort-elite-militiaman elite-gongjveweidui)

(defconst aort-archer-line lunbadenushou-line)
(defconst aort-archer lunbadenushou)
(defconst aort-elite-archer elite-lunbadenushou)
#end-if

#5

(defconst ri-elite-liudima 51i)

#load-if-defined JAPANESE-CIV
(defconst aort-my-unique-unit1-line samurai)
(defconst aort-my-unique-unit1 samurai)
(defconst aort-my-elite-unique-unit1 elite-samurai)
(defconst aort-my-unique-unit1-upgrade ri-elite-samurai)

(defconst aort-my-unique-unit2-line liudima)
(defconst aort-my-unique-unit2 liudima)
(defconst aort-my-elite-unique-unit2 elite-liudima)
(defconst aort-my-unique-unit2-upgrade ri-elite-liudima)

(defconst aort-militiaman-line samurai-line)
(defconst aort-militiaman samurai)
(defconst aort-elite-militiaman elite-samurai)

(defconst aort-cavalry-archer-line liudima-line)
(defconst aort-cavalry-archer liudima)
(defconst aort-elite-cavalry-archer elite-liudima)
#end-if

#6

(defconst ri-elite-modaobing 513)
(defconst ri-elite-xuanjiaqibing 472)

#load-if-defined CHINESE-CIV
(defconst aort-my-unique-unit1-line modaobing)
(defconst aort-my-unique-unit1 modaobing)
(defconst aort-my-elite-unique-unit1 elite-modaobing)
(defconst aort-my-unique-unit1-upgrade ri-elite-modaobing)

(defconst aort-my-unique-unit2-line xuanjiaqibing)
(defconst aort-my-unique-unit2 xuanjiaqibing)
(defconst aort-my-elite-unique-unit2 elite-xuanjiaqibing)
(defconst aort-my-unique-unit2-upgrade ri-elite-xuanjiaqibing)

(defconst aort-scout-cavalry-line xuanjiaqibing-line)
(defconst aort-scout-cavalry xuanjiaqibing)
(defconst aort-elite-scout-cavalry elite-xuanjiaqibing)

(defconst aort-spearman-line modaobing-line)
(defconst aort-spearman modaobing)
(defconst aort-elite-spearman elite-modaobing)



#end-if

#7

#load-if-defined BYZANTINE-CIV
(defconst aort-my-unique-unit1-line cataphract)
(defconst aort-my-unique-unit1 cataphract)
(defconst aort-my-elite-unique-unit1 elite-cataphract)
(defconst aort-my-unique-unit1-upgrade ri-elite-cataphract)

(defconst aort-my-unique-unit2-line hand-cannoneer)
(defconst aort-my-unique-unit2 hand-cannoneer)
(defconst aort-my-elite-unique-unit2 hand-cannoneer)
(defconst aort-my-unique-unit2-upgrade 1070)


(defconst aort-knight-line cataphract-line)
(defconst aort-knight cataphract)
(defconst aort-elite-knight elite-cataphract)

#end-if

#8

(defconst ri-elite-sashanqibing 537)

#load-if-defined PERSIAN-CIV
(defconst aort-my-unique-unit1-line war-elephant)
(defconst aort-my-unique-unit1 war-elephant)
(defconst aort-my-elite-unique-unit1 elite-war-elephant)
(defconst aort-my-unique-unit1-upgrade ri-elite-war-elephant)

(defconst aort-my-unique-unit2-line sashanqibing)
(defconst aort-my-unique-unit2 sashanqibing)
(defconst aort-my-elite-unique-unit2 elite-sashanqibing)
(defconst aort-my-unique-unit2-upgrade ri-elite-sashanqibing)


(defconst aort-knight-line sashanqibing-line)
(defconst aort-knight sashanqibing)
(defconst aort-elite-knight elite-sashanqibing)
#end-if

#9

(defconst ri-shengzhanluotuo 539)

#load-if-defined SARACEN-CIV
(defconst aort-my-unique-unit1-line mameluke)
(defconst aort-my-unique-unit1 mameluke)
(defconst aort-my-elite-unique-unit1 elite-mameluke)
(defconst aort-my-unique-unit1-upgrade ri-elite-mameluke)

(defconst aort-my-unique-unit2-line camel-line)
(defconst aort-my-unique-unit2 camel-line)
(defconst aort-my-elite-unique-unit2 shengzhanluotuo)
(defconst aort-my-unique-unit2-upgrade 1070)

#end-if

#10

(defconst ri-elite-kehanweidui 529)
(defconst ri-elite-jinlangtuqi 527)

#load-if-defined TURKISH-CIV
(defconst aort-my-unique-unit1-line kehanweidui)
(defconst aort-my-unique-unit1 kehanweidui)
(defconst aort-my-elite-unique-unit1 elite-kehanweidui)
(defconst aort-my-unique-unit1-upgrade ri-elite-kehanweidui)

(defconst aort-my-unique-unit2-line jinlangtuqi)
(defconst aort-my-unique-unit2 jinlangtuqi)
(defconst aort-my-elite-unique-unit2 elite-jinlangtuqi)
(defconst aort-my-unique-unit2-upgrade ri-elite-jinlangtuqi)

(defconst aort-knight-line kehanweidui-line)
(defconst aort-knight kehanweidui)
(defconst aort-elite-knight elite-kehanweidui)

(defconst aort-cavalry-archer-line jinlangtuqi-line)
(defconst aort-cavalry-archer jinlangtuqi)
(defconst aort-elite-cavalry-archer elite-jinlangtuqi)

#end-if

#11

(defconst ri-elite-beiouchangfubing 571)

#load-if-defined VIKING-CIV
(defconst aort-my-unique-unit1-line berserk)
(defconst aort-my-unique-unit1 berserk)
(defconst aort-my-elite-unique-unit1 elite-berserk)
(defconst aort-my-unique-unit1-upgrade ri-elite-berserk)

(defconst aort-my-unique-unit2-line beiouchangfubing)
(defconst aort-my-unique-unit2 beiouchangfubing)
(defconst aort-my-elite-unique-unit2 elite-beiouchangfubing)
(defconst aort-my-unique-unit2-upgrade ri-elite-beiouchangfubing)

(defconst aort-militiaman-line berserk-line)
(defconst aort-militiaman berserk)
(defconst aort-elite-militiaman elite-berserk)

(defconst aort-spearman-line beiouchangfubing-line)
(defconst aort-spearman beiouchangfubing)
(defconst aort-elite-spearman elite-beiouchangfubing)

#end-if

#12

(defconst ri-elite-gaoyuanqibing 523)
(defconst ri-elite-subiqibing 521)

#load-if-defined MONGOL-CIV
(defconst aort-my-unique-unit1-line gaoyuanqibing)
(defconst aort-my-unique-unit1 gaoyuanqibing)
(defconst aort-my-elite-unique-unit1 elite-gaoyuanqibing)
(defconst aort-my-unique-unit1-upgrade ri-elite-gaoyuanqibing)

(defconst aort-my-unique-unit2-line subiqibing)
(defconst aort-my-unique-unit2 subiqibing)
(defconst aort-my-elite-unique-unit2 elite-subiqibing)
(defconst aort-my-unique-unit2-upgrade ri-elite-subiqibing)

(defconst aort-knight-line gaoyuanqibing-line)
(defconst aort-knight gaoyuanqibing)
(defconst aort-elite-knight elite-gaoyuanqibing)

(defconst aort-scout-cavalry-line subiqibing-line)
(defconst aort-scout-cavalry subiqibing)
(defconst aort-elite-scout-cavalry elite-subiqibing)

#end-if

#13
(defconst ri-elite-yinduxiangshe 469)

#load-if-defined CELTIC-CIV
(defconst aort-my-unique-unit1-line war-elephant)
(defconst aort-my-unique-unit1 war-elephant)
(defconst aort-my-elite-unique-unit1 elite-war-elephant)
(defconst aort-my-unique-unit1-upgrade ri-elite-war-elephant)

(defconst aort-my-unique-unit2-line yinduxiangshe)
(defconst aort-my-unique-unit2 yinduxiangshe)
(defconst aort-my-elite-unique-unit2 elite-yinduxiangshe)
(defconst aort-my-unique-unit2-upgrade ri-elite-yinduxiangshe)

(defconst aort-cavalry-archer-line yinduxiangshe-line)
(defconst aort-cavalry-archer yinduxiangshe)
(defconst aort-elite-cavalry-archer elite-yinduxiangshe)
#end-if

#14

(defconst ri-elite-buluozhanshi 566)

#load-if-defined SPANISH-CIV
(defconst aort-my-unique-unit1-line war-elephant)
(defconst aort-my-unique-unit1 war-elephant)
(defconst aort-my-elite-unique-unit1 elite-war-elephant)
(defconst aort-my-unique-unit1-upgrade ri-elite-war-elephant)

(defconst aort-my-unique-unit2-line buluozhanshi)
(defconst aort-my-unique-unit2 buluozhanshi)
(defconst aort-my-elite-unique-unit2 elite-buluozhanshi)
(defconst aort-my-unique-unit2-upgrade ri-elite-buluozhanshi)

(defconst aort-militiaman-line buluozhanshi-line)
(defconst aort-militiaman buluozhanshi)
(defconst aort-elite-militiaman elite-buluozhanshi)

#end-if

#15

(defconst ri-elite-gaomianjianuzhanxiang 552)

#load-if-defined AZTEC-CIV
(defconst aort-my-unique-unit1-line war-elephant)
(defconst aort-my-unique-unit1 war-elephant)
(defconst aort-my-elite-unique-unit1 elite-war-elephant)
(defconst aort-my-unique-unit1-upgrade ri-elite-war-elephant)

(defconst aort-my-unique-unit2-line gaomianjianuzhanxiang)
(defconst aort-my-unique-unit2 gaomianjianuzhanxiang)
(defconst aort-my-elite-unique-unit2 elite-gaomianjianuzhanxiang)
(defconst aort-my-unique-unit2-upgrade ri-elite-gaomianjianuzhanxiang)

(defconst aort-scorpion-line gaomianjianuzhanxiang-line)
(defconst aort-scorpion gaomianjianuzhanxiang)
(defconst aort-elite-scorpion elite-gaomianjianuzhanxiang)

#end-if

#16

#load-if-defined MAYAN-CIV
(defconst aort-my-unique-unit1-line plumed-archer)
(defconst aort-my-unique-unit1 plumed-archer)
(defconst aort-my-elite-unique-unit1 elite-plumed-archer)
(defconst aort-my-unique-unit1-upgrade ri-elite-plumed-archer)

(defconst aort-my-unique-unit2-line eagle-warrior)
(defconst aort-my-unique-unit2 eagle-warrior)
(defconst aort-my-elite-unique-unit2 elite-eagle-warrior)
(defconst aort-my-unique-unit2-upgrade ri-elite-eagle-warrior)

(defconst aort-archer-line plumed-line)
(defconst aort-archer plumed)
(defconst aort-elite-archer elite-plumed)

#end-if

#17
(defconst ri-elite-silafuyongshi 533)

#load-if-defined HUN-CIV
(defconst aort-my-unique-unit1-line tarkan)
(defconst aort-my-unique-unit1 tarkan)
(defconst aort-my-elite-unique-unit1 elite-tarkan)
(defconst aort-my-unique-unit1-upgrade ri-elite-tarkan)

(defconst aort-my-unique-unit2-line silafuyongshi)
(defconst aort-my-unique-unit2 silafuyongshi)
(defconst aort-my-elite-unique-unit2 elite-silafuyongshi)
(defconst aort-my-unique-unit2-upgrade ri-elite-silafuyongshi)

(defconst aort-scout-cavalry-line tarkan-line)
(defconst aort-scout-cavalry tarkan)
(defconst aort-elite-scout-cavalry elite-tarkan)

(defconst aort-militiaman-line silafuyongshi-line)
(defconst aort-militiaman silafuyongshi)
(defconst aort-elite-militiaman elite-silafuyongshi)

#end-if

#18
(defconst ri-elite-hualangsheshou 465)

#load-if-defined KOREAN-CIV
(defconst aort-my-unique-unit1-line war-wagon)
(defconst aort-my-unique-unit1 war-wagon)
(defconst aort-my-elite-unique-unit1 elite-war-wagon)
(defconst aort-my-unique-unit1-upgrade ri-elite-war-wagon)

(defconst aort-my-unique-unit2-line hualangsheshou)
(defconst aort-my-unique-unit2 hualangsheshou)
(defconst aort-my-elite-unique-unit2 elite-hualangsheshou)
(defconst aort-my-unique-unit2-upgrade ri-elite-hualangsheshou)

(defconst aort-militiaman-line war-wagon-line)
(defconst aort-militiaman war-wagon)
(defconst aort-elite-militiaman elite-war-wagon)

(defconst aort-archer-line hualangsheshou-line)
(defconst aort-archer hualangsheshou)
(defconst aort-elite-archer elite-hualangsheshou)
#end-if


:x
EOF

lws735 发表于 2013-9-9 08:07:31

天书!不明觉厉!
页: [1]
查看完整版本: 【大唐复兴】让AOFE的AI变成AORT的AI的Linux脚本(阶段性成果)