求助脚本大神帮忙看看
以下是我参考资料设的1.9A名城围城暴兵以及名城复仇脚本 大神帮忙看下哪里错了围城暴兵
declare_counter C-1104-b-JiangXia
set_counter C-1104-b-JiangXia 0
monitor_event FactionTurnEnd FactionType armenia
and I_LocalFaction armenia
if I_CompareCounter C-1104-b-JiangXia = 0
and not I_SettlementOwner C-1104-b-JiangXia = armenia
if I_CharacterTypeNearTile armenia general,2 118,68
set_counter C-1104-b-JiangXia 1
end_if
if I_CharacterTypeNearTile armenia family,2 118,68
set_counter C-1104-b-JiangXia 1
end_if
end_if
if I_CompareCounter C-1104-b-JiangXia = 2
and not I_CharacterTypeNearTile armenia family, 2 118,68
and not I_CharacterTypeNearTile armenia general, 2 118,68
set_counter C-1104-b-JiangXia 0
end_if
end_monitor
monitor_event SettlementTurnEnd SettlementName C-1104-b-JiangXia
and I_CompareCounter C-1104-b-JiangXia = 1
and GarrisonSettlementRatio < 0.5
if not I_SettlementOwner C-1104-b-JiangXia = armenia
console_command create_unit C-1104-b-JiangXia "roman mirmillo gladiator" 6 9 3 3
console_command add_money -2000
console_command add_population City -1500
end_if
set_counter C-1104-b-JiangXia 2
end_monitor
名城复仇
declare_counter C-1104-b-JiangXia
set_counter C-1104-b-JiangXia 0
monitor_event FactionTurnEnd FactionType armenia
if I_CompareCounter C-1104-b-JiangXia = 0
and I_SettlementOwner C-1104-b-JiangXia = armenia
and I_NumberOfSettlements parthia > 0
set_counter C-1104-b-JiangXia 1
spawn_army
faction parthia
character M-12-0485-Xm, named character, age 31, x 118, y 67
unit JiangJun_JingZhou Aa, exp 3 armour 1 weapon_lvl 1
unit Jingzhou jingruizhongbubing exp 2 armour 0 weapon_lvl 0
unit Jingzhou jingruizhongbubing exp 5 armour 0 weapon_lvl 0
unit Jingzhou jingruizhongbubing exp 3 armour 0 weapon_lvl 0
unit Jingzhou jingruizhongbubing exp 3 armour 0 weapon_lvl 0
unit Jinzouzhongchangqiangbin Hanxuan_B exp 5 armour 0 weapon_lvl 0
unit Jinzouzhongchangqiangbin Hanxuan_B exp 3 armour 0 weapon_lvl 0
unit Jinzouzhongchangqiangbin Hanxuan_B exp 2 armour 0 weapon_lvl 0
unit Jinzouzhongchangqiangbin Hanxuan_B exp 6 armour 0 weapon_lvl 0
unit Jingzhou tiegongshou exp 5 armour 0 weapon_lvl 0
unit Jingzhou tiegongshou exp 3 armour 0 weapon_lvl 0
unit Jingzhou tiegongshou exp 2 armour 0 weapon_lvl 0
unit Jingzhou tiegongshou exp 6 armour 0 weapon_lvl 0
unit Jingzhou daoqibing exp 2 armour 0 weapon_lvl 0
unit Jingzhou daoqibing exp 6 armour 0 weapon_lvl 0
unit Jingzhou daoqibing exp 2 armour 0 weapon_lvl 0
unit Jingzhou daoqibing exp 6 armour 0 weapon_lvl 0 end
end_if
end_monitor
monitor_event FactionTurnEnd FactionType armenia
if I_CompareCounter C-1104-b-JiangXia = 1
and not I_SettlementOwner C-1104-b-JiangXia = armenia
set_counter C-1104-b-JiangXia 0
end_if
end_monitor
下面是我找到的参考资料
;**********************************************
; GARRISON SCRIPT 魔戒脚本设计者的教程 可是我套进去以后无效。。。
;**********************************************
script
declare_counter City1Besiged
set_counter City1Besiged 0
declare_counter City2Besiged
set_counter City2Besiged 0
;...per settlement
monitor_event FactionTurnEnd FactionType
and I_LocalFaction
if I_CompareCounter City1Besiged = 0
and not I_SettlementOwner =
if I_CharacterTypeNearTile general,2 x1,y1
set_counter City1Besiged 1
end_if
if I_CharacterTypeNearTile family,2 x1,y1
set_counter City1Besiged 1
end_if
end_if
if I_CompareCounter City1Besiged = 2
and not I_CharacterTypeNearTile family, 2 x1,y1
and not I_CharacterTypeNearTile general, 2 x1,y1
set_counter City1Besiged 0
end_if
if I_CompareCounter City2Besiged = 0
and not I_SettlementOwner = 围成国家
if I_CharacterTypeNearTile general,2 x2,y2
set_counter City2Besiged 1
end_if
if I_CharacterTypeNearTile family,2 x2,y2
set_counter City2Besiged 1
end_if
end_if
if I_CompareCounter City2Besiged = 2
and not I_CharacterTypeNearTile family, 2 x2,y2
and not I_CharacterTypeNearTile general, 2 x2,y2
set_counter City2Besiged 0
end_if
;...per settlement
end_monitor
;...a monitor per possible local faction
monitor_event SettlementTurnEnd SettlementName
and I_CompareCounter City1Besiged = 1
and GarrisonSettlementRatio < 0.5
if I_SettlementOwner = 被围国家?
console_command create_unit "unit name" 4
console_command add_money -2000
console_command add_population City -1500
end_if
if I_SettlementOwner = 围城国家?
console_command create_unit "unit name" 4
console_command add_money -2000
console_command add_population City -1500
end_if
set_counter City1Besiged 2
;...an if per faction
end_monitor
monitor_event SettlementTurnEnd SettlementName
and I_CompareCounter City2Besiged = 1
and GarrisonSettlementRatio < 0.5
if I_SettlementOwner =
console_command create_unit "unit name" 4
console_command add_money -2000
console_command add_population City -1500
end_if
if I_SettlementOwner =
console_command create_unit "unit name" 4
console_command add_money -2000
console_command add_population City -1500
end_if
;...an if per faction
set_counter City2Besiged 2
end_monitor
;...a monitor per settlement
while TrueCondition
end_while
end_script
复仇系统已解决 原来是移植茄子补丁出问题了 移植不是简单的复制黏贴。。。
页:
[1]