- 好友
- 2
- 最后登录
- 2016-12-11
- 在线时间
- 134 小时
- 帖子
- 401
- 精华
- 1
- 相册
- 2
- 日志
- 0
- 记录
- 0
- 阅读权限
- 110
- 积分
- 5108 个
- 金钱
- 27391 Pb
- 存款
- 4000 Pb
- UID
- 181190
- 阅读权限
- 110
- 注册时间
- 2008-2-27
- 积分
- 5108 个
- 金钱
- 27391 Pb
- 存款
- 4000 Pb
- 臭鸡蛋
- 0 斤
- 切糕
- 21 斤
- 贡献
- 0
|
本帖最后由 yangfanzuozi 于 2013-2-12 23:39 编辑
语句集(FTM之前)03 效果
country_event
国家范围的效果
Triggers the specified country event for the current country.
Syntax: country_event = <event id>
指定国家触发指定事件
random
Effects within the block has an x percents chance of taking effect.
Syntax: random = {
chance = x
effects?
}
括号内的effects效果内容将以x%的几率触发
random_list
Effects within the block has an x percents chance of taking effect.
Syntax: random_list = {
x = { effects... }
x = { effects... }
x = { effects... }
}
# for example:
random_list = {
50 = { dissent = 4 }
20 = { dissent = 3 }
20 = { dissent = 2 }
10 = { dissent = 1 }
}
触发概率的分布,例子解释的很清楚了吧
ai_chance
A chance in x per cent that AI will choose the current option.
Syntax: ai_chance = { factor = x }
AI触发事件的百分比,x=100则一定触发
modifier
Multiplies the current ai_chance probability by x when certain conditions are met.
More modifiers for one ai_chance may be added.
Syntax: modifier = { factor = x ... }
# e.g. if Vichy France exists, the ai_chance will be doubled, i.e. 100% in this case:
ai_chance = {
factor = 50
modifier = {
factor = 2.0
exists = VIC
}
}
当modifier(调节器)以内的条件满足时,将特定影响因子(factor)叠加到当前效果上(这里的例子是ai_chance = {factor = 50}将变成100)
# Provinces ################################
省份效果
add_core
Make a certain province a core of the current country.
Syntax: add_core = <province id>
给当前国家添加核心省份(用id)
remove_core
The specified province will no longer be core province.
Syntax: remove_core = <province id>
给当前国家去除核心省份(用id)
capital
Move the capital to a new province.
Syntax: capital = <province id>
给当前国家调整首都(据说除了补给和燃油以外资源会清0,注意)
secede_province
Cede a certain province to the specified country.
Syntax: <province id> = { secede_province = tag }
割让指定省份给指定国家(注意,这条语句的调用者一定要是该省份的owner,否则无效),例如在一个tag = CHI的事件里直接写
5020(大连) = { secede_province = CHI} 是无效的。需要写 JAP = {5020 = {secede_province=CHI}}
change_controller
Change the controller of a province.
Syntax: change_controller = tag
修改省份的控制者
change_manpower
Increase/decrease the manpower available in a certain province.
Syntax: change_manpower = x # (x = +-1..)
增减当前省份的可用人力
leadership
Increase/decrease the leadership produced in a certain province.
Syntax: leadership = x # (x = +-1..)
增减当前省份可用领导力
crude_oil
Increase/decrease a province抯 max production of crude oil.
Syntax: crude_oil = x
增减当前省份原油产量
energy
Increase/decrease a province抯 max production of energy.
Syntax: energy = x
增减当前省份能源产量
metal
Increase/decrease a province抯 max production of metal.
Syntax: metal = x
增减当前省份金属产量
rare_materials
Increase/decrease a province抯 max production of rare materials.
Syntax: rare_materials = x
增减当前省份稀有金属产量
supplies
Increase/decrease a province抯 max production of supplies.
Syntax: supplies = x
增减当前省份补给产量
industry
Increase/decrease the IC available in a certain province.
Syntax: industry = x # (x = 1 - 10)
增减当前省份IC值(注意x为10的话是加10不是加到10)
change_province_name
Changes the name of the current province.
Syntax: change_province_name = <new name>
修改省份名称
create_revolt
Creates a revolt of the specified size.
Syntax: create_revolt = x # (x = 1 / 2 / 3)
给某省份添加x级的起义
# Modifiers ################################
调节器
add_country_modifier
Add a country modifier with certain effects to the country.
Syntax: add_country_modifier = <name of modifier>
给当前国家增加国家调节器
remove_country_modifier
Removes a certain country modifier from the current country.
Syntax: remove_country_modifier = <name of modifier>
从当前国家去除国家调节器
add_province_modifier
Creates a province modifier for the specified province.
Syntax: add_province_modifier = <name of modifier>
给当前省份增加省份调节器
remove_province_modifier
Removes a certain province modifier from the current province.
Syntax: remove_province_modifier = <name of modifier>
从当前省份去除省份调节器
set_variable
Creates a new variable and assigns it the specified value.
Syntax: set_variable = {
which = <name of variable>
value = x #(x = +-1..)
}
创建新变量并赋值
change_variable
Increases or decreases the value of an existing variable.
Syntax: change_variable = {
which = <name of variable>
value = x #(x = +-1..)
}
调节变量值
set_country_flag
Sets a flag for the current country.
Syntax: set_country_flag = <name of flag>
给当前国家设置flag标志
clr_country_flag
Removes the specified country flag.
Syntax: clr_country_flag = <name of flag>
去除当前国家的flag标志
set_global_flag
Sets a global flag regardless of country.
Syntax: set_global_flag = <name of flag>
设置全局flag标志
clr_global_flag
Removes the specified global flag.
Syntax: clr_global_flag = <name of flag>
去除全局flag标志
# National ################################
国家效果
form_government_in_exile
Create a government in exile for the current country.
Syntax: form_government_in_exile = yes / no
给当前国家创建一个**
government
Change the current type of government for the country.
Syntax: government = <government type> / THIS / FROM
government positions
Assign new ministers to a government positions.
Syntax:
head_of_state = <minister id>
head_of_government = <minister id>
foreign_minister = <minister id>
armament_minister = <minister id>
minister_of_security = <minister id>
minister_of_intelligence = <minister id>
chief_of_staff = <minister id>
chief_of_army = <minister id>
chief_of_navy = <minister id>
chief_of_air = <minister id>
指定各政府部长
do_election
Immediately triggers an election in the tag country, regardless of government type.
Syntax: do_election = tag
立刻在指定国家举行选举,不管是什么政体
remove_minister
Removes the minister (id removes a certain minister, yes removes one at random,
position removes the minister in a certain position;
can't remove the head_of_state or head_of_government randomly).
Syntax: remove_minister = <minister id> / yes / <position>
杀死一个部长(id杀死指定,yes随机去除一个,position去除对应职位的部长)
kill_leader
Kill the specified leader.
Syntax: kill_leader = <leader id>
杀死一名将领
organisation
Increase/decrease the ruling party抯 organisation.
Syntax: organisation = x #(x = +-1..)
调整执政党组织度
popularity
Increase/decrease the ruling party抯 popularity.
Syntax: popularity = x # (x = +-1..)
调整执政党支持率
national_unity
Increase/decrease a country抯 amount of national unity.
Syntax: national_unity = x #(x = +-1..100)
调整国家凝聚力
neutrality
Increase/decrease a country抯 base neutrality value.
Syntax: neutrality = x # (x = +-1..100)
调整中立度
manpower
Increase/decrease the amount of manpower a country has.
Syntax: manpower = x #(x = +-0..1)
调整当前人力值
dissent
Increase/decrease a country抯 dissent value.
Syntax: dissent = x # (x = +-1..)
调整不满
add brigade
Give the current country a new brigade (militia_brigade, infantry_brigade etc).
Syntax: <province id> = { <brigade type> = current }
在指定省份给当前国家新建一个旅
remove_brigade
Removes specified brigade from the map.
Syntax: remove_brigade = <name>
从地图上抹杀一个旅
load_oob
Adds units (including their hierarchy) defined in txt file to the current country's OOB.
Syntax: load_oob = "destroyers_for_bases.txt"
Syntax: load_oob = "scenarios\desert_fox\Extra_OOBs\ita1.txt"
读取oob文件
# International ################################
国际效果
relation
Increase/decrease the relations value between two countries by x.
Syntax: relation = { who = TAG/THIS value = x }
增减两国之间的关系
threat
Increase/decrease the specified country抯 threat value towards the current country by x.
Syntax: threat { who = tag / all value = x }
增减指定(tag)国家对于当前国家的威胁
inherit
Allow the current country to inherit the specified country.
Syntax: inherit = tag
允许当前国家继承指定国家(?这个不懂)
create_alliance
Creates an alliance with the specified country.
Syntax: create_alliance = this / from / tag
和指定国家创立联盟
leave_alliance
Remove the current country from an alliance with the specified country.
Syntax: leave_alliance = this / from / tag
从指定国家的联盟中去除当前国家
join_faction
Makes the current country a member of the specified faction.
Syntax: join_faction = axis / allies / comintern
加入某个阵营
leave_faction
Remove the current country from the specified faction.
Syntax: leave_faction = axis / allies / comintern
从某阵营中去除
guarantee
The current country will guarantee the specified country.
Syntax: guarantee = tag
保障某国的独立
end_guarantee
The current country will no longer guarantee the specified country.
Syntax: end_guarantee = tag
停止保障独立
military_access
Gives the specified country, tag1 military access to the current country, tag2.
Syntax: tag1 = { military_access = tag2 }
tag2国家给tag1国家军事通行权
end_military_access
Ends the military access between the specified country, tag1 and the current country,
tag2.
Syntax: tag1 = { end_military_access = tag2 }
tag2停止给予tag1军事通行权
non_aggression_pact
Creates a non-aggression pact between the current country and the specified
country.
Syntax: non_aggression_pact = tag
和指定国家签订互不侵犯条约
end_non_aggression_pact
Ends a non-aggression pact between the current country and the specified country.
Syntax: end_non_aggression_pact = tag
停止和指定国家的互不侵犯条约
end_war
Ends any war between the specified country, tag1 and the current country, tag2.
Syntax: tag1 = { end_war = tag2 }
结束tag1和tag2之间的战争状态
release
Allows the current country to release the specified country and thereby create a new
independent nation.
Syntax: release = tag
当前国家释放tag对应国家为独立国家
release_vassal
Allows the current country to release the specified country as a vassal.
Syntax: release_vassal = this / from / random / tag
当前国家释放对应国家为傀儡
split_troops
Gives the specified country, x percent of the current country抯 troops.
Syntax: tag = { split_troops = x }
# ex. Give Germany 10% of your troops.
GER = { split_troops = 0.10 }
将当前国家x%的军队给予tag指定国家
war
Start a war between the current country and the specified country with a defined wargoal.
The "Aquire Territory" wargoal requires also region = <region_name> to be specified.
Wargoals can be found in common/cb_types.txt file.
Syntax:
war = {
target = TAG
attacker_goal = { casus_belli = <wargoal type> }
defender_goal = { casus_belli = <wargoal type> }
}
在当前国家和目标国家之间发起战争并指定双方的战争目标。如果以获得地区为目标,需要指定地区名。战争目标可以在common/cb_types.txt里面找到
# example of Winter War:
SOV = {
war = {
target = FIN
attacker_goal = { casus_belli=aquire_territory region=Soviet_claims_FIN }
}
}
add_wargoal
Adds a War Goal to the current country towards the target country.
It won't start a new war, only works if there's already one in progress.
Syntax:
add_wargoal = {
target = TAG
war_goal = { casus_belli = <wargoal type> }
}
添加战争目标。只对进行中的战争有效。
undeclared_war
Allows units of the current country and tag country to fight each other in a delimited area.
Works properly just for sea zones so far, as the attacker cannot capture provinces this way.
Syntax:
undeclared_war = {
target = TAG
region = <region_name>
}
静默战争。将双方的战争局限在某个限定区域内。目前只对海战有效。
war_exhaustion
Increase/decrease the amount of war exhaustion a country has.
Syntax: war_exhuastion = x # (x = +-1..)
增减厌战度
# Resources ################################
资源(对于国家的)
crude_oil
Increase/decrease a country抯 amount of crude oil.
Syntax: crude_oil = x
增减原油
energy
Increase/decrease a country抯 amount of energy.
Syntax: energy = x
增减能源
metal
Increase/decrease a country抯 amount of metal.
Syntax: metal = x
增减金属
money
Increase/decrease the amount of money a country has.
Syntax: money = x #( x = +-1..)
金钱
rare_materials
Increase/decrease a country抯 amount of rare materials by x.
Syntax: rare_materials = x
稀有金属
supplies
Increase/decrease a country抯 / province amount of supplies.
Syntax: supplies = x
增减补给
fuel
Increase/decrease a country抯 / province amount of fuel.
Syntax: fuel = x
增减燃油
strategic_resource
An effect to add or remove a strategic resource from a province.
Syntax: strategic_resource = <resource_name> / none
指定或去除一个省份的战略资源
|
|