看汉之殇脚本,一个人学不如大家一起学,边看边上传
本帖最后由 天天学习 于 2014-5-10 16:26 编辑对脚本是新手,边看边学,高手看见哪里错了,请不惜赐教。人人都会做MOD,那是多么美好的一天!
打开hanzhishang\deta\world\maps\campaign\imperial_campaign\campaign_script "campaign_script文本里面是汉之殇的主要脚本"
; BY雾隐残雪 “代表雾隐残雪最初添加修改脚本,可见雾隐残雪还是蛮厉害的”
;===================== CONTENTS ========================= ”contents内容“
;
;
script "定义和用法 <script> 标签用于定义客户端脚本script 元素既可以包含脚本语句,也可以通过 src 属性指向外部"
restrict_strat_radar false "限制战术雷达关闭,有了这句,别人要是把雷达修改没了,就会跳出?"
;难度选择
declare_counter nanduxuanzhe “声明难度选择”
monitor_event PreFactionTurnStart FactionIsLocal “玩家势力操作前的屏幕显示事件,就是一开始触发的那些剧情选择”
historic_event nanduxuanzhe true “触发事件,难度选择开启,就是一开始让你选择的难还是容易剧情”
terminate_monitor “结束声明”
end_monitor “终止声明”
monitor_conditions I_EventCounter nanduxuanzhe_accepted = 1 “声明一个事件计时器,难度选择接受=1,”
set_counter nanduxuanzhe 1 “程序跑到难度选择1开始运行”
terminate_monitor “结束声明”
end_monitor “终止声明”
;胜败仗赏罚
declare_counter small_army "部队类型为小"
declare_counter medium_army “部队类型为普通”
declare_counter large_army “部队类型为大”
declare_counter battle_no “battle_no是代表巨型部队?,这里不懂”
set_counter small_army 0 “小型部队初始值为0”部队等级为0
set_counter medium_army 0 “普通部队初始值为0”
set_counter large_army 0 “大部队初始值为0”
set_counter battle_no 0 “巨型部队初始值为0”
;------------------名将刷精锐-------------------
;曹操
monitor_event PreFactionTurnStart FactionIsLocal "势力过场画面里触发"
and not I_LocalFaction france “曹操替代中2原版法国,并且曹操不是玩家势力”
and I_CharacterExists J-0101-CaoCao “并且曹操还没有挂”
and I_NumberOfSettlements france > 3 “并且曹操城市大于3?”
and I_CompareCounter quarter = 2 “并且是每年的第2个回合,说明一个名将一年只爆一次精锐”
create_unit J-0101-CaoCao, Hubaoji, num 1, exp 9 “爆出HUBAOJI这个兵种,数量1,生命9”
create_unit J-0101-CaoCao, Huben, num 2, exp 9 “爆出HUBEN,数量2,生命9”
end_monitor “结束显示”
能刷精锐的名将包括(曹操,张鲁,刘繇,孔融,张燕,袁术,纪灵,周瑜,孙策,甘宁,诸葛亮,陶谦,韩遂,马超,马腾,刘表,袁绍,鞠义,公孙瓒,赵云,董卓,陈到,关羽,张飞,刘备,张辽,高顺,吕布,于禁,曹仁,许褚)
;---------亡灵军----------
declare_counter wanglingruqin “声明亡灵军事件”
monitor_event PreFactionTurnStart FactionIsLocal “在势力过场画面中显示亡灵入侵界面”
and not I_LocalFaction normans “董卓替代中2原版的苏格兰,玩家不是董卓势力”
and I_TurnNumber > 97 “并且游戏回合数大于97,和原版的蒙古入侵时间有点像”
and I_NumberOfSettlements normans < 1 “并且董卓城市数小于1”
historic_event wanglingruqin true “亡灵入侵事件出现”
terminate_monitor "终结事件界面"
end_monitor “结束事件界面”
monitor_conditions I_EventCounter wanglingruqin_accepted = 1 “声明一个计时器,设定亡灵入侵这事件=1”
set_counter wanglingruqin 1 "程序从亡灵入侵开始运行"
console_command kill_character dongzhuo “在亡灵入侵界面出现的时候,控制台暂停游戏中人物运动,这句是优化系统,使游戏不卡?”
spawn_army “电脑爆出大量亡灵军队”
faction normans “亡灵军替代中2原版的苏格兰”
character dongzhuo, named character, age 20, x 25, y 215, portrait dongzuo, battle_model “人物动作,名字,年龄,出现坐标,模型,战斗动作”
mowangdongzhuo_general , hero_ability KuangBao “魔王战斗动作引用将军的战斗动作,魔王的英雄技是狂暴”
traitsLzdongzhuo 1 , Jn1001 5 , Jn2000 4 , Jn3000 6 , Jn4000 7 , Jn5000 6 , JnA1000 4 , jna2000 4 , JnA3000
2 , JnA4000 1 , JnA5000 3 , JnA6000 3 , JnB7000 9 , JnA8000 8 , Jna9000 8 , Jnxg4000 2 , YXJN-WY 1 , C3080JnQJ-A 1 ,
B2030JnZS-A 2 , C3150JnBC-A 2 “这3段是引入模型,战斗动作等等”
unitjingruikulouqibingJW exp 4 armour 0 weapon_lvl 0 “这里开始介绍亡灵军,精锐骷髅兵,生命4,护甲0,武器lvl 0这代码lvl 0不知道代表什么武器”
unitniutouguai exp 3 armour 0 weapon_lvl 0 “牛头怪,生命3,护甲0,武器?”
unitniutoumamian exp 3 armour 0 weapon_lvl 0 “牛头马面。生命3,护甲0,武器?”
unitniutoumamian exp 3 armour 0 weapon_lvl 0 “牛头马面。生命3,护甲0,武器?”
unitshiguiyaoshushi exp 3 armour 0 weapon_lvl 0 ”死鬼妖术师,生命3,护甲0,武器?“
unitshigui exp 3 armour 0 weapon_lvl 0 ”死鬼,生命3,护甲0,武器?“
unitshigui exp 3 armour 0 weapon_lvl 0 ”死鬼,生命3,护甲0,武器?“
unitshigui exp 3 armour 0 weapon_lvl 0 ”死鬼,生命3,护甲0,武器?“
unitkulouqibing exp 3 armour 0 weapon_lvl 0 ”骷髅骑兵,生命3,护甲0,武器?“
unitkulouqibing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitjingruikulouqibing exp 3 armour 0 weapon_lvl 0 ”精锐骷髅骑兵,生命3,护甲0,武器?“
unitkuloubing exp 3 armour 0 weapon_lvl 0 ”骷髅兵,生命3,护甲0,武器?“
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitguibingzhanche exp 3 armour 0 weapon_lvl 0 ”鬼兵战车,生命3,护甲0,武器?“
end ”结束上一段程序“
spawn_army
faction normans
character H-0131-MoJianga, named character, age 26, x 143, y 209 , portrait dongzuo,
battle_model guijiang_general
traitsLZMojianga 1 , Jn1001 3 , Jn2000 1 , Jn3000 6 , Jn4000 7 , Jn5000 4 , jna1000 4 , jna2000 4 ,
JnA3000 4 , JnA4000 3 , JnA5000 2 , JnA6000 4 , JnA7000 5 , JnA8000 9 , Jna9000 8
unitjingruikulouqibingJW exp 3 armour 0 weapon_lvl 0
unitniutouguai exp 3 armour 0 weapon_lvl 0
unitniutoumamian exp 3 armour 0 weapon_lvl 0
unitshiguiyaoshushi exp 3 armour 0 weapon_lvl 0
unitshigui exp 3 armour 0 weapon_lvl 0
unitshigui exp 3 armour 0 weapon_lvl 0
unitshigui exp 3 armour 0 weapon_lvl 0
unitkulouqibing exp 3 armour 0 weapon_lvl 0
unitkulouqibing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitjingruikulouqibing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitniutoumamian exp 3 armour 0 weapon_lvl 0
end ”上面这段蓝色脚本是电脑又接着暴兵再暴兵,运行10次这段脚本,刷出魔将,还有很多的骷髅兵,牛头怪等等。电脑一共刷出了10支亡灵军团“
monitor_event PreFactionTurnStart FactionIsLocal
and I_CompareCounter wanglingruqin = 1
console_command diplomatic_stance england normans war
console_command diplomatic_stance spain normans war
console_command diplomatic_stance france normans war
console_command diplomatic_stance hre normans war
console_command diplomatic_stance saxons normans war
console_command diplomatic_stance aragon normans war
console_command diplomatic_stance hungary normans war
console_command diplomatic_stance denmark normans war
console_command diplomatic_stance novgorod normans war
console_command diplomatic_stance poland normans war
console_command diplomatic_stance milan normans war
console_command diplomatic_stance venice normans war
console_command diplomatic_stance sicily normans war
console_command diplomatic_stance portugal normans war
console_command diplomatic_stance scotland normans war
console_command diplomatic_stance byzantium normans war
console_command diplomatic_stance russia normans war
console_command diplomatic_stance turks normans war
console_command diplomatic_stance papal_states normans war
console_command diplomatic_stance mongols normans war
console_command diplomatic_stance egypt normans war
console_command diplomatic_stance cumans normans war "上面这段浅黄色的脚本是亡灵军团和22个诸侯强制开战"
set_faction_standing england normans -5
set_faction_standing spain normans -5
set_faction_standing france normans -5
set_faction_standing hre normans -5
set_faction_standing saxons normans -5
set_faction_standing aragon normans -5
set_faction_standing hungary normans -5
set_faction_standing denmark normans -5
set_faction_standing novgorod normans -5
set_faction_standing poland normans -5
set_faction_standing milan normans -5
set_faction_standing venice normans -5
set_faction_standing sicily normans -5
set_faction_standing portugal normans -5
set_faction_standing scotland normans -5
set_faction_standing byzantium normans -5
set_faction_standing russia normans -5
set_faction_standing turks normans -5
set_faction_standing papal_states normans -5
set_faction_standing mongols normans -5
set_faction_standing egypt normans -5
set_faction_standing cumans normans -5”上面这段紫色的代码是亡灵军和所有诸侯外交关系稳定在-5,就是一直开战不会停战。外交关系小于1就会开战“
;---------------------------------------------------
if I_NumberOfSettlements normans > 3 "如果亡灵军团占有城市数大于3"
and I_NumberOfSettlements normans < 80 “并且亡灵军团占有城市数小于80”
and not I_CharacterExists H-0131-MoJianga “并且代号为H-0131的魔将挂了”
spawn_army “亡灵军又开始暴兵”
faction normans
character H-0131-MoJianga, named character, age 26, x 143, y 209 , portrait dongzuo,
battle_model guijiang_general “复活了已经挂掉的代号为H-0131魔将”
traitsLZMojianga 1 , Jn1001 3 , Jn2000 1 , Jn3000 6 , Jn4000 7 , Jn5000 4 , jna1000 4 , jna2000 4 ,
JnA3000 4 , JnA4000 3 , JnA5000 2 , JnA6000 4 , JnA7000 5 , JnA8000 9 , Jna9000 8
unitjingruikulouqibingJW exp 3 armour 0 weapon_lvl 0
unitniutouguai exp 3 armour 0 weapon_lvl 0
unitniutoumamian exp 3 armour 0 weapon_lvl 0
unitniutoumamian exp 3 armour 0 weapon_lvl 0
unitshiguiyaoshushi exp 3 armour 0 weapon_lvl 0
unitshigui exp 3 armour 0 weapon_lvl 0
unitshigui exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitkuloubing exp 3 armour 0 weapon_lvl 0
unitjingruikulou exp 3 armour 0 weapon_lvl 0
unitkulouqibing exp 3 armour 0 weapon_lvl 0
unitkulouqibing exp 3 armour 0 weapon_lvl 0
unitjingruikulouqibing exp 3 armour 0 weapon_lvl 0
unitguibingzhanche exp 3 armour 0 weapon_lvl 0 “并又爆出由H-0131魔将率领的亡灵军”
end
end_if “结束如果,关闭这个程序”
“一共有13种情况的出现会让电脑有爆出亡灵军
1.亡灵军城市数大于3小于80,并且代号H-0131的魔将挂了,电脑复活这魔将并爆兵。
2.亡灵军城市数小于3,游戏回合数小于150,代号H-0131的魔将挂了,电脑复活这魔将并爆兵。
3.亡灵军城市数大于3小于80,并且代号为H-0132的魔将挂了,电脑复活这魔将并爆兵。
4.亡灵军城市数小于3,游戏回合数小于150,代号H-0132的魔将挂了,电脑复活这魔将并爆兵。
5.亡灵军城市数大于3小于80,并且代号H-0133的魔将挂了,电脑复活这魔将并爆兵。
6.亡灵军城市数小于3,游戏回合数小于150,代号H-0133的魔将挂了,电脑复活这魔将并爆兵。
7.亡灵军城市数大于3小于80,并且代号H-0134的魔将挂了,电脑复活这魔将并爆兵。
8.亡灵军城市数小于3,游戏回合数小于150,代号H-0134的魔将挂了,电脑复活这魔将并爆兵。
9.亡灵军城市数大于3小于80,并且代号H-0135的魔将挂了,电脑复活这魔将并爆兵。
10.亡灵军城市数大于3小于80,并且代号H-0136的魔将挂了,电脑复活这魔将并爆兵。
11.亡灵军城市数大于3小于80,并且代号H-0137的魔将挂了,电脑复活这魔将并爆兵。
12.亡灵军城市数大于3小于80,并且代号H-0138的魔将挂了,电脑复活这魔将并爆兵。
13.亡灵军城市数大于3小于80,并且代号H-0139的魔将挂了,电脑复活这魔将并爆兵。”
monitor_event PreFactionTurnStart FactionIsLocal
and not I_CompareCounter wanglingruqin = 1
and not I_LocalFaction normans
and I_TurnNumber > 297“在势力过场画面的时候,亡灵入侵事件已经在进行,并且玩家不是董卓势力,并且游戏回合数大于297”
console_command kill_character J-1113-HuCai “控制台命令终结代号为J-1113-HUCAI这个人物”
terminate_monitor
end_monitor “结束程序”
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction normans
and I_CompareCounter wanglingruqin = 1
and I_NumberOfSettlements normans > 50““在势力过场画面的时候,亡灵入侵事件已经进行,玩家不是董卓势力,并且亡灵军城市数大于50”
console_command move_character dongzhuo, 48,197 “控制台命令复活坐标48.197的人物”
terminate_monitor
end_monitor “结束程序”
“亡灵军入侵事件整个代码结束”
;----------8回合1年-----------
declare_counter quarter “声明quarter变量”
set_counter quarter 1 “quarter变量由1开始”
monitor_event FactionTurnEnd FactionType slave “玩家势力过场结束后,电脑自动存档”
inc_counter quarter 1“使用inc文件可以使程序增加可读性,更易于开发和维护,说明一年几回合这段脚本以后还要经常修改的。”
end_monitor
monitor_event FactionTurnStart FactionIsLocal
if I_CompareCounter quarter = 1
console_command season summer “当quarter等于1时,就是第一个回合,游戏为夏天”
end_if
if I_CompareCounter quarter = 2 “当quarter等于2时,就是第2个回合,游戏为夏天”
console_command season summer
end_if
if I_CompareCounter quarter = 3
console_command season summer
end_if
if I_CompareCounter quarter = 4
console_command season summer
end_if
if I_CompareCounter quarter = 5
console_command season summer
end_if
if I_CompareCounter quarter = 6
console_command season summer
end_if
if I_CompareCounter quarter = 7
console_command season summer“以此类推,一直到quarter等于7时,就是游戏中的第7个回合,游戏画面还是夏天,春天和秋天的战略画面都还没做出来所以只有夏天和冬天”
end_if
if I_CompareCounter quarter = 8 “如果quarter变量等于8,就是游戏中的第8个回合”
console_command season winter “控制台命令战略地图变成冬天的地图”
end_if
if I_CompareCounter quarter = 9 “如果quarter变量等于9,就是游戏中的第9个回合”
set_counter quarter 1 “quarter变量的指针回到当初1的位置,就是说游戏中是第9回合了,但是quearter变量又指向1的位置,从1-8无限循环。这样实现了一年8回合。就像复读机,虽然循环读相同的东西,但是每次读的次数是有区别的,第1次读,第2次读”
end_if
end_monitor
monitor_event FactionTurnEnd FactionType slave
and I_CompareCounter quarter < 8
console_command season summer “当quarter指针指向小于8的位置时,战略地图总是夏天”
end_monitor “结束程序”
“一年8回合整个代码结束”
;新野等小城驰道
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 27
console_command create_building C-1105-b-XingYe "paved_roads"
terminate_monitor
end_monitor
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 27
console_command create_building C-1717-bg-YanJin "paved_roads"
terminate_monitor
end_monitor
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 27
console_command create_building C-1718-bg-CangTing "paved_roads"
terminate_monitor
end_monitor
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 27
console_command create_building C-0808-bg-GuanDu "paved_roads"
terminate_monitor
end_monitor
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 27
console_command create_building C-0708-b-XiaoPei "paved_roads"
terminate_monitor
end_monit or "上面这段代码是当游戏中27回合结束势力过场时,电脑自动在新野,延津,仓亭,官渡,小沛生驰道成"
;--------------战略进攻指定--------------
;讨伐董卓
monitor_event PreFactionTurnStart FactionIsLocal "玩家新回合开始的时候屏幕出现事件界面"
and I_TurnNumber > 3 “并且回合数大于3”
console_command diplomatic_stance papal_states normans war “控制台命令大汉与董卓进入开战状态”
set_faction_standing papal_states normans -5 “大汉与董卓外交关系落到-5”
end_monitor
;---------曹操---------
;曹操报仇193
monitor_event PreFactionTurnStart FactionIsLocal “玩家新回合开始的时候屏幕出现事件界面”
and not I_LocalFaction france “并且玩家不是曹操”
and not I_LocalFaction scotland “并且玩家不是陶谦”
and I_TurnNumber > 7 “并且回合数大于7”
console_command diplomatic_stance france scotland war “控制台命令曹操和陶谦进入开战状态”
set_faction_standing scotland france -5 “曹操和陶谦的外交关系落到-5”
end_monitor
;中原大战
declare_counter zhongyuandazhan “声明中原大战”
monitor_event PreFactionTurnStart FactionIsLocal “玩家新回合开始时出现事件界面”
and not I_LocalFaction france “并且玩家不是曹操势力”
and I_TurnNumber > 12 “并且游戏回合数大于12”
console_command diplomatic_stance france hungary war “控制台命令曹操和吕布进入开战状态”
set_faction_standing hungary france -1.5 “曹操和吕布外交关系落到-1.5”
set_counter zhongyuandazhan 1 “设定中原大战事件为1”
end_monitor
monitor_event FactionTurnEnd FactionType france “势力过场画面,曹操势力过场已经结束”
and I_CompareCounter zhongyuandazhan = 1 “并且已经触发中原大战”
if not I_LocalFaction hungary“如果玩家不是吕布”
and I_SettlementOwner C-1717-bg-YanJin = hungary “并且代码为C-1717-bg-延津还属于吕布”
spawn_army “开始爆兵”
faction france “曹操爆兵”
character random_name, named character, age 26, x 248, y 230, label zhongyuan1“在坐标248.230刷出年龄26岁的随机武将,标签是zhongyuan1”
traitsJn1000 8 , Jn2000 1 , Jn3000 4 , Jn4000 7 , Jn5000 4 , jna1000 4 , jna2000 4 , JnA3000 4 , JnA4000 3 , JnA5000 2 , JnA6000 4 , JnA7000 5 , JnA8000 9 , Jna9000 8 "加载这个zhongyuan1随机武将的模型,战斗动作模型等"
unitJiangJun_ZhongYuan_Aa exp 3 armour 0 weapon_lvl 0 “爆出中原将军,生命3,护甲0,武器?”
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0 “爆出中原长枪兵,生命3,护甲0,武器?”
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0 “爆出中原重步兵,生命3,护甲0,武器?”
unitZYqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYqiangbing exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYgongbing exp 3 armour 0 weapon_lvl 0
unitZYgongbing exp 3 armour 0 weapon_lvl 0 “中间代码都是爆兵,爆出由zhongyuan1将军带领的军团,都是和亡灵军战力同级别的部队”
end
siege_settlement zhongyuan1,C-1717-bg-YanJin, maintain “如果zhongyuan1将军带队攻城,没有攻下延津”
spawn_army
faction france “曹操又开始爆兵”
character random_name, named character, age 26, x 249, y 230, label zhongyuan2
traitsJn1000 8 , Jn2000 1 , Jn3000 4 , Jn4000 7 , Jn5000 4 , jna1000 4 , jna2000 4 , JnA3000 4 , JnA4000 3 , JnA5000 2 , JnA6000 4 , JnA7000 5 , JnA8000 9 , Jna9000 8 “又爆出zhongyuan2这个将军,并加载模型和战斗模型等”
unitJiangJun_ZhongYuan_Aa exp 3 armour 0 weapon_lvl 0 “爆出由zhongyuan2将军统帅的副将和部队”
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYqiangbing exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYgongbing exp 3 armour 0 weapon_lvl 0
unitZYgongbing exp 3 armour 0 weapon_lvl 0 “中间代码是爆兵”
end
“如果zhongyuan2将军也打不下延津,电脑就爆出zhongyuan3将军带部队去攻打濮阳。如果失败了,就爆出zhongyuan4将军带兵去攻打濮阳。中原大战脚本结束”
;袁术称帝197
declare_counter taofayuanshux
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction poland
and not I_LocalFaction france
and I_TurnNumber > 40
console_command diplomatic_stance france poland war
set_faction_standing poland france -5
set_counter taofayuanshux 1
end_monitor “玩家不是袁术势力,并且玩家不是曹操势力,并且游戏回合数大于40,控制台命令袁术和曹操进入开战状态,袁术和曹操外交关系落到-5”
monitor_event FactionTurnEnd FactionType france “势力过场画面,曹操势力过场已经结束”
and I_CompareCounter taofayuanshux = 1 “讨伐袁术事件已经触发”
historic_event taofayuanshu “屏幕显示讨伐袁术事件画面”
if not I_LocalFaction poland
and I_SettlementOwner C-1303-b-ShouChun = poland “如果玩家不是袁术势力,并且寿春还在袁术手里”
spawn_army
faction france “曹操开始爆兵”
character random_name, named character, age 26, x 287, y 189, label taofayuanshu1
traitsJn1000 8 , Jn2000 1 , Jn3000 4 , Jn4000 7 , Jn5000 4 , jna1000 4 , jna2000 4 , JnA3000 4 , JnA4000 3 , JnA5000 2 , JnA6000 4 , JnA7000 5 , JnA8000 9 , Jna9000 8 “曹操在坐标287.189刷出标签为taofayuanshu1这个将军,并加载模型和战斗模型”
unitJiangJun_ZhongYuan_Aa exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYqiangbing exp 3 armour 0 weapon_lvl 0
unitZYbubing exp 3 armour 0 weapon_lvl 0
unitZYchangqiangbingo exp 3 armour 0 weapon_lvl 0
unitZYzhongbubing exp 3 armour 0 weapon_lvl 0
unitZYgongbing exp 3 armour 0 weapon_lvl 0
unitZYgongbing exp 3 armour 0 weapon_lvl 0 “以上代码是爆出由标签taofayuanshu1这个将军统帅的部队”
end
“如果taofayuanshu1将军攻不下寿春,电脑就刷出taofayuanshu2这个将军再去攻打寿春,如果taofayuanshu2将军也打不下寿春,电脑就爆出taofayuanshu3将军带部队去攻打合肥。如果失败了,就爆出taofayuanshu4将军带兵去攻打合肥。讨伐袁术脚本结束”
;衣带诏199
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 53
console_command diplomatic_stance france papal_states war
set_faction_standing papal_states france -5
end_monitor "游戏回合数大于53,曹操和大汉强制开战,双方外交关系落到-5"
;官渡之战200
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 62
console_command diplomatic_stance france hre war “游戏回合数大于62,曹操和袁绍强制开战”
end_monitor
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction france
and not I_LocalFaction russia
and I_TurnNumber > 70
console_command diplomatic_stance france russia war
set_faction_standing russia france -5
end_monitor “游戏回合数大于70,并且玩家不是曹操和张燕势力,曹操和张燕强制开战,双方外交关系落到-5”
;曹操攻取西北
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction france
and I_TurnNumber > 110
console_command diplomatic_stance france denmark war
set_faction_standing denmark france -5 "回合数大于110,玩家不是曹操,曹操和马腾强制开战,双方外交关系落到-5"
end_monitor
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction france
and I_TurnNumber > 118
console_command diplomatic_stance france novgorod war
set_faction_standing novgorod france -5 “游戏回合数大于118,玩家不是曹操。曹操和韩遂强制开战,双方外交关系落到-5”
end_monitor
;赤壁之战
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 126
console_command diplomatic_stance france england war
end_monitor “游戏回合数大于126,曹操和孙策强制开战”
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 126
console_command diplomatic_stance france venice war
set_faction_standing venice france -5
end_monitor“游戏回合数大于126,曹操和刘表强制开战”
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 126
console_command diplomatic_stance france spain war
end_monitor“游戏回合数大于126,曹操和刘备强制开战”
;曹操取关中
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction france
and I_TurnNumber > 102
console_command diplomatic_stance france normans war
set_faction_standing normans france -5
end_monitor "回合数大于102,并且玩家不是曹操势力,曹操和董卓或亡灵军强制开战,102回合董卓还在就和董卓打,董卓挂了就和亡灵军开战"
;缩减暴兵后
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction france
and I_TurnNumber > 133
console_command diplomatic_stance france saxons war
console_command diplomatic_stance france aragon war
console_command diplomatic_stance france poland war
console_command diplomatic_stance france russia war
console_command diplomatic_stance france byzantium war
console_command diplomatic_stance france milan war
console_command diplomatic_stance france turks war
console_command diplomatic_stance france portugal war
console_command diplomatic_stance france sicily war
end_monitor "游戏回合数大于133,并且玩家不是曹操势力,曹操和以下势力强制开战,公孙瓒,公孙度,袁术,张燕,张鲁,刘璋,孔融,韩玄,刘繇"
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 262
console_command diplomatic_stance france mongols war
end_monitor “回合数大于262,曹操和蒙古强制开战”
;孙策外交ai
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction england
and not I_LocalFaction sicily
and I_TurnNumber > 6
console_command diplomatic_stance england sicily war
set_faction_standing sicily england -5
end_monitor “回合数大于6,玩家不是孙策和刘繇,孙策和刘繇强制开战,双方外交关系落到-5”
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction england
and not I_LocalFaction venice
and I_TurnNumber > 22
console_command diplomatic_stance england venice war
set_faction_standing venice england -5
end_monitor“回合数大于22,玩家不是孙策和刘表势力,孙策和刘表强制开战,双方外交关系落到-5”
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction england
and not I_LocalFaction portugal
and I_TurnNumber > 38
console_command diplomatic_stance england portugal war
set_faction_standing portugal england -5
end_monitor “回合数大于38,玩家不是孙策和韩玄势力,孙策和韩玄强制开战,双方外交关系落到-5”
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction england
and not I_LocalFaction cumans
and I_TurnNumber > 78
console_command diplomatic_stance england cumans war
end_monitor “回合数大于78,玩家不是孙策和山越势力,孙策和山越强制开战”
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction england
and not I_LocalFaction egypt
and I_TurnNumber > 142
console_command diplomatic_stance england egypt war
set_faction_standing egypt england -5
end_monitor “回合数大于142,玩家不是孙策和孟获势力,孙策和孟获强制开战,双方外交关系落到-5”
;刘备入川
monitor_event PreFactionTurnStart FactionIsLocal
and not I_LocalFaction spain
and not I_LocalFaction milan
and I_TurnNumber > 1
console_command diplomatic_stance spain milan war
set_faction_standing milan spain -5
end_monitor "回合数大于1,玩家不是刘备和刘璋,刘备和刘璋开战,外交落到-5"
;刘备南征孟获225年
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 262
console_command diplomatic_stance spain egypt war
set_faction_standing egypt spain -5
end_monitor “回合数大于262,玩家不是刘备,孟获势力,刘备孟获开战,外交落到-5”
;刘璋南征孟获
monitor_event PreFactionTurnStart FactionIsLocal
and I_TurnNumber > 150
console_command diplomatic_stance milan egypt war
set_faction_standing egypt milan -1.5
end_monitor “回合数大于150,玩家不是刘璋,孟获势力,刘璋孟获开战,外交落到-1.5”
沙发%%%%%%%%%%%%%% 要看后面的,前面的凑合就过去了,后面是重点~ 烤烤地瓜吧? 发表于 2014-5-7 12:03
要看后面的,前面的凑合就过去了,后面是重点~
好。现在看后面
看看。。。。。。。。。。。 纯技术贴,大大的顶一个,想问一下,用的是什么编程语言,C++么? 烤烤地瓜吧? 发表于 2014-5-7 12:03
要看后面的,前面的凑合就过去了,后面是重点~
对于新人来说,前面是不能略过的,我看不懂
看看学学
这是什么语言? 大量修改头大,看的眼昏 本帖最后由 天天学习 于 2014-5-7 21:44 编辑
思朔友 发表于 2014-5-7 12:47
这是什么语言?
linux?我不确定 支持。。。。。 看看看看吧 只看看不说话~~ 路过看看 先收起来 !!!!!!!!!!!!!!!! 路过看看 瞧一瞧,看一看。。。。。。。。。。
只看看不说话
页:
[1]
2