请教一下脚本问题
zymxdt吧
全部回复
仅看楼主
level 6
杀颜良 楼主
我模仿z大脚本中,教皇国占领耶路撒冷后,能出圣墓的脚本,打算给伊斯兰三国也添加上类似的,然后添加一种新骑兵,可以在所有大清真寺造。请z大看一下,是否能实现?
monitor_conditions not I_SettlementOwner Antioch = turks
and I_EventCounter holds_Antioch == 1
and I_NumberOfSettlements turks > 0
set_event_counter holds_Antioch 0
end_monitor
monitor_conditions I_SettlementOwner Antioch = turks
and I_EventCounter holds_Antioch == 0
add_events
event counter holds_Antioch
date 0
end_add_events
end_monitor
monitor_conditions not I_SettlementOwner Cairo = egypt
and I_EventCounter holds_Cairo == 1
and I_NumberOfSettlements egypt > 0
set_event_counter holds_Cairo 0
end_monitor
monitor_conditions I_SettlementOwner Cordoba = moors
and I_EventCounter holds_Cordoba == 0
add_events
event counter holds_Cordoba
date 0
end_add_events
end_monitor
monitor_conditions I_SettlementOwner Cordoba = moors
and I_EventCounter holds_Cordoba == 0
add_events
event counter holds_Cordoba
date 0
end_add_events
end_monitor
如果可以的话,建议用这个方法取代地域征兵,给所有国家都添加类似的脚本触发,来控制某些精锐兵种的建造。比如拜占庭在丧失小亚细亚平原后就不再能征募某些精锐。
2013年12月13日 01点12分 1
level 6
杀颜良 楼主
下面两段写错了,更正:
monitor_conditions not I_SettlementOwner Antioch = turks
and I_EventCounter holds_Antioch == 1
and I_NumberOfSettlements turks > 0
set_event_counter holds_Antioch 0
end_monitor
monitor_conditions I_SettlementOwner Antioch = turks
and I_EventCounter holds_Antioch == 0
add_events
event counter holds_Antioch
date 0
end_add_events
end_monitor
monitor_conditions not I_SettlementOwner Cairo = egypt
and I_EventCounter holds_Cairo == 1
and I_NumberOfSettlements egypt > 0
set_event_counter holds_Cairo 0
end_monitor
monitor_conditions I_SettlementOwner Cairo = egypt
and I_EventCounter holds_Cairo == 0
add_events
event counter holds_Cairo
date 0
end_add_events
end_monitor
monitor_conditions not I_SettlementOwner Cordoba = moors
and I_EventCounter holds_Cordoba == 1
and I_NumberOfSettlements moors > 0
set_event_counter holds_Cordoba 0
end_monitor
monitor_conditions I_SettlementOwner Cordoba = moors
and I_EventCounter holds_Cordoba == 0
add_events
event counter holds_Cordoba
date 0
end_add_events
end_monitor
2013年12月13日 02点12分 2
吧务
level 15
抓机看着很痛苦,不过按我原来的脚本改的话应该不会有问题,这种模式只应用于少部分国家而没有扩散开主要是考虑到ai的生存能力,如果使用太多的话能够拥有精锐部队对ai国家来说可能是种奢望了
2013年12月13日 02点12分 3
level 6
杀颜良 楼主
谢谢!另外问一下,historic_event和一般的event有什么区别?
2013年12月13日 03点12分 4
historic_event是有事件弹窗的
2013年12月13日 03点12分
回复 zymxdt :哦,那么引用到building中用于控制征兵,还是另外写一个event比较好吧,比如阿拉伯占领麦加,因为丢掉麦加并不会引发 historic_event再次发生。
2013年12月13日 03点12分
回复 杀颜良 :这些都是可控的
2013年12月13日 04点12分
回复 zymxdt :可以设置成占有某些地区时,增加征兵产量,更符合现实
2013年12月13日 05点12分
1