解密5,1.8A隐藏剧本
本帖最后由 luckgaoan 于 2011-6-13 17:41 编辑本贴目的是为了让喜欢修改的新童鞋少走弯路打开bi\data\scripts\show_me script_12tpy_dates
;------------------------------------------------------yincan
declare_counter yincan
monitor_event FactionTurnStart FactionIsLocal
if I_SettlementOwner C-0708-b-XiaoPei = empire_east
set_counter yincan 1
end_if
if I_SettlementOwner C-0501-b-Xiapi = empire_east
set_ counter yincan 1
end_if
if I_SettlementOwner C-1105-b-XingYe = empire_east
set_counter yincan 2
end_if
end_monitor
monitor_event HordeFormed FactionIsLocal
if I_CompareCounter yincan = 2
console_command move_character J-0201-LiuBei, 42,84
inc_counter yincan 1
end_if
if I_CompareCounter yincan = 1
console_command capture_settlement C-1105-b-XingYe
console_command add_money 20000
console_command move_character J-0201-LiuBei, 105,86
console_command create_unit C-1105-b-XingYe "Gongshou Liubei" 1
inc_counter yincan 1
end_if
end_monitormonitor_event FactionTurnStart FactionIsLocal
if I_SettlementOwner C-0708-b-XiaoPei = empire_east
set_counter yincan 1
end_if
将刘备最后一城为小沛设为触发条件1(自定义)
if I_SettlementOwner C-0501-b-Xiapi = empire_east
set_ counter yincan 1
end_if
将刘备最后一城为下丕也设为触发条件1
if I_SettlementOwner C-1105-b-XingYe = empire_east
set_counter yincan 2
end_if
将刘备最后一城为新野设为触发条件2
monitor_event HordeFormed FactionIsLocal
当玩家选择放浪时
if I_CompareCounter yincan = 2
console_command move_character J-0201-LiuBei, 42,84
如果触发条件2
把刘备移到42,84(就是梓潼附近)
inc_counter yincan 1
(inc是加1的意思(汇编中inc是加1,dec是减1,但全战脚本只可使用inc)。假设没有这个,刘备占有新野,计数器值为2,放浪,飞到梓潼(zitong),过了一段时间,又放浪,而此时计数器值仍为2,又被强制飞到梓潼。有了inc就不一样了,放浪飞到梓潼后,计数器值就加1变为3,下次再放浪就不会飞了。)
if I_CompareCounter yincan = 1
console_command capture_settlement C-1105-b-XingYe
console_command add_money 20000
console_command move_character J-0201-LiuBei, 105,86
console_command create_unit C-1105-b-XingYe "Gongshou Liubei" 1
如果玩家触发条件1
给玩家新野
加钱20000
把刘备移到105,86
在新野造出一队Gongshou Liubei
inc_counter yincan 1
(inc是加1的意思(汇编中inc是加1,dec是减1,但全战脚本只可使用inc)。假设没有这个,刘备占有新野,计数器值为2,放浪,飞到梓潼(zitong),过了一段时间,又放浪,而此时计数器值仍为2,又被强制飞到梓潼。有了inc就不一样了,放浪飞到梓潼后,计数器值就加1变为3,下次再放浪就不会飞了。)
Ok,结束还是那句话,希望有想象力的童鞋做出有趣的脚本本教程语言是自己斟酌,目的是让新手看懂。高手勿笑;P
有错误之处,请高手指正
楼主有空研究一下1.7a里面刘璋正确的抉择是怎么达成的:lol 回复 626983 的帖子
yes:lol 回复 626983 的帖子
地球人都知道1.8a刘璋武将不投降了啊{:5_131:} 本帖最后由 liu1412 于 2011-6-13 17:19 编辑
inc是加1的意思(汇编中inc是加1,dec是减1,但全战脚本只可使用inc)。假设没有这个,刘备占有新野,计数器值为2,放浪,飞到梓潼(zitong),过了一段时间,又放浪,而此时计数器值仍为2,又被强制飞到梓潼。有了inc就不一样了,放浪飞到梓潼后,计数器值就加1变为3,下次再放浪就不会飞了。1.8A取消了刘璋武将的投降,因为在中原开始发展。
最好改势力文件,特技文件和剧本文件 我无语又是回复 script
while I_TurnNumber < 2483
select_ui_element advisor_dismiss_button
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
suspend_unscripted_advice true
console_command date 194
console_command season summer
declare_counter Season_Year_Turn0_Thread
while I_TurnNumber = 0
monitor_conditions I_CompareCounter Season_Year_Turn0_Thread = 0
if I_CompareCounter Season_Year_Turn0_Thread = 0
advance_advice_thread Season_Year_Turn0_Thread
inc_counter Season_Year_Turn0_Thread 1
end_if
end_monitor
suspend_unscripted_advice true
end_while
console_command date 194
console_command season summer
declare_counter Season_Year_Turn1_Thread
while I_TurnNumber = 1
monitor_conditions I_CompareCounter Season_Year_Turn1_Thread = 0
if I_CompareCounter Season_Year_Turn1_Thread = 0
advance_advice_thread Season_Year_Turn1_Thread
wait 1
select_ui_element advisor_portrait_button
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
inc_counter Season_Year_Turn1_Thread 1
end_if
end_monitor
suspend_unscripted_advice true
end_while
console_command date 194
console_command season summer
declare_counter Season_Year_Turn2_Thread
while I_TurnNumber = 2
monitor_conditions I_CompareCounter Season_Year_Turn2_Thread = 0
if I_CompareCounter Season_Year_Turn2_Thread = 0
advance_advice_thread Season_Year_Turn2_Thread
wait 1
select_ui_element advisor_portrait_button
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
inc_counter Season_Year_Turn2_Thread 1
end_if
end_monitor
suspend_unscripted_advice true
end_while
console_command date 194
console_command season summer
declare_counter Season_Year_Turn3_Thread
while I_TurnNumber = 3
monitor_conditions I_CompareCounter Season_Year_Turn3_Thread = 0
if I_CompareCounter Season_Year_Turn3_Thread = 0
advance_advice_thread Season_Year_Turn3_Thread
wait 1
select_ui_element advisor_portrait_button
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
inc_counter Season_Year_Turn3_Thread 1
end_if
end_monitor
suspend_unscripted_advice true
end_while
console_command date 194
console_command season summer
declare_counter Season_Year_Turn4_Thread
while I_TurnNumber = 4
monitor_conditions I_CompareCounter Season_Year_Turn4_Thread = 0
if I_CompareCounter Season_Year_Turn4_Thread = 0
advance_advice_thread Season_Year_Turn4_Thread
wait 1
select_ui_element advisor_portrait_button
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
inc_counter Season_Year_Turn4_Thread 1
end_if
end_monitor
suspend_unscripted_advice true
end_while
console_command date 194
console_command season summer
declare_counter Season_Year_Turn5_Thread
while I_TurnNumber = 5
monitor_conditions I_CompareCounter Season_Year_Turn5_Thread = 0
if I_CompareCounter Season_Year_Turn5_Thread = 0
advance_advice_thread Season_Year_Turn5_Thread
wait 1
select_ui_element advisor_portrait_button
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
inc_counter Season_Year_Turn5_Thread 1
end_if
end_monitor
suspend_unscripted_advice true
end_while
console_command date 194
console_command season summer
declare_counter Season_Year_Turn6_Thread
while I_TurnNumber = 6
monitor_conditions I_CompareCounter Season_Year_Turn6_Thread = 0
if I_CompareCounter Season_Year_Turn6_Thread = 0
advance_advice_thread Season_Year_Turn6_Thread
wait 1
select_ui_element advisor_portrait_button
simulate_mouse_click lclick_down
simulate_mouse_click lclick_up
inc_counter Season_Year_Turn6_Thread 1
end_if
end_monitor
suspend_unscripted_advice true
end_while
页:
[1]