七日杀A20.6 gameevent.xml文档翻译
Game Events - These events are each a sequence of actions with Requirements.
游戏事件 (Game Events) - 这些事件是由一系列带有要求 (Requirements) 的动作构成。
Event Requirements:
These check values for the player before allowing game events to be fired.
事件要求:
这些要求会在游戏事件被触发前检查玩家的值。
FullHealth - Checks if the Target has full health.
满血量 (Full Health) - 检查目标是否有满的血量.
HasBuff - Checks if the Target has a buff.
buff_name - The name of the buff to check for.
拥有buff (Has Buff) - 检查目标是否有某个buff。
buff名字(buff_name) - 要检查的buff的名称。
HasSpawnedEntities - Check if there are spawned entities.
entity_tags - The entity tags of the spawned entities.
target_only - If the spawned entities must be spawns of the Target.
出现的实体 (Has Spawned Entities) - 检查是否有已经生成的实体,
实体标签(entity_tags) - 生成实体的标签。
仅限于目标的生成实体(target_only) - 是否只允许目标生成实体。
InQuestZone - Checks if the target is in a quest zone.
InSafeZone - Checks if the target is in a safe zone.
InVehicle - Checks if the target is in a vehicle.
NearbyEntities - Check if the Target has nearby entities.
entity_tags - The entity tags of the nearby entities. (If no tag is supplied, defaults to any enemies or animals)
max_distance - The maximum distance to check for nearby entities.
target_is_owner - If the vehicle/turret is owned by the target.
在任务区域内 (In Quest Zone) - 检查目标是否在任务区域中。
在安全区内 (In Safe Zone) - 检查目标是否在安全区内。
在车辆中 (In Vehicle) - 检查目标是否在车辆中。
附近的实体 (Nearby Entities) - 检查目标是否有附近的实体。
实体标签(entity_tags) - 附近实体的标签。(如果未提供标签, 将默认为任意敌人或动物)
最大距离(max_distance) - 检查附近实体的最大距离。
目标是否是车主(target_is_owner) - 车辆/炮塔是否是目标的所有物。
Action Requirements:
These check values for the player before allowing certain actions in a game event to be activated.
Gamestage - Checks the gamestage of the player
operation - Allows for checking common (None, Equals, NotEquals, Less, LessThan, LT, Greater, GreaterThan, GT, LessOrEqual, LessThanOrEqualTo, LTE, GreaterOrEqual, GreaterThanOrEqualTo, GTE)
game_stage - The gamestage number to check for.
IsIndoors - Checks if the player is indoors
invert - can be used to check if they are not indoors.
RandomRoll - Checks the value against a random roll.
min_max - The numbers to check between.
operation - Allows for checking common (None, Equals, NotEquals, Less, LessThan, LT, Greater, GreaterThan, GT, LessOrEqual, LessThanOrEqualTo, LTE, GreaterOrEqual, GreaterThanOrEqualTo, GTE)
value - The value to check the number with.
动作要求:
这些要求会在允许某些游戏事件中的动作激活之前检查玩家的值。
游戏阶段 (Gamestage) - 检查玩家的游戏阶段
操作(operation) - 允许检查 常见的(无, 等于, 不等于, 小于, 小于等于, 小于等于,小于等于,大于等于)
游戏阶段(game_stage) - 要检查的游戏阶段数字
室内环境 (Is Indoors) - 检查玩家是否处于室内。
反相(invert) - 用于检查他们是否不在室内。
随机卷轴(Random Roll) - 检查数值大小与随机判定结果。
最小和最大值(min_max) - 随机取出的区间范围。
操作(operation) - 允许检查 常见的(无, 等于, 不等于, 小于, 小于等于, 小于等于,小于等于,大于等于)
数值(value) - 与随机判定的数值比较。
Common Properties for all Actions:
Phase - This is the phase that the action runs in.
Target Actions:
Most actions can be supplied a target_group for the actions. These actions listed below will add entities to those groups.
AddClosestEntityToGroup - Adds the closest entity to the group.
AddEntitiesToGroup - Adds all entities to the group with the defined criteria.
group_name - The group to add to. This can be any name you want to define.
entity_tags - The entity tags to search for. (If no tag is supplied, defaults to any enemies or animals)
max_distance - The distance from the target.
twitch_negative - This defines if the twitch disabled targets can be added or not. Note: Players are considered twitch disabled when they die.
target_is_owner - If the vehicle/turret is owned by the target.
y_height (AddEntitiesToGroup) - overrides the height used.
AddPartyToGroup - Adds the party members of the Target to the group.
group_name - The group to add to. This can be any name you want to define.
twitch_negative - This defines if the twitch disabled targets can be added or not. Note: Players are considered twitch disabled when they die.
AddPlayerToGroup - Adds the specified party member to the group. (NOTE: They must be in the target's party.)
player_name - The name of the party member to add.
group_name - The group to add to. This can be any name you want to define.
twitch_negative - This defines if the twitch disabled targets can be added or not. Note: Players are considered twitch disabled when they die.
AddSpawnedEntitiesToGroup - Adds all the spawned enemies to the group.
group_name - The group to add to. This can be any name you want to define.
entity_tags - The entity tags to search for.
target_only - If the zombies must be spawned on the target or any zombies that have been spawned.
ClearGroup - Clears all the entities in a group.
group_name - The group to clear.
通用动作属性:
Phase(阶段)- 动作运行的阶段。
目标操作:
大多数操作都可以提供一个target_group来定义操作对象。列出如下操作可以向这些组中添加实体:
AddClosestEntityToGroup - 将最近的实体添加到该组。
AddEntitiesToGroup - 在满足定义条件的情况下将所有实体添加到指定组中。
group_name - 要添加进入的组,它可以由你自己定义任何名称。
entity_tags - 要搜索的实体标签。(如果未提供标签, 将默认为任意敌人或动物)
max_distance - 到目标的距离。
twitch_negative - 这定义了twitch失效的目标是否可以被添加。请注意:当玩家死亡时,他们被视为twitch失效状态。
target_is_owner - 该车辆、炮塔是否为目标所拥有的。
y_height(AddEntitiesToGroup) - 重写了高度使用。
AddPartyToGroup - 将目标的团队成员添加到该组中。
group_name - 要加入的组名,可以自己定义任何名称。
twitch_negative - 定义是否可以将 twitch 失效的目标添加到组中。请注意:当玩家死亡时,他们被视为 twitch 失效状态。
AddPlayerToGroup - 将指定的一位团队成员添加到该组中。(注意:他们必须在目标的队伍中。)
player_name - 要添加的团队成员姓名。
group_name - 要加入的组名,可以自己定义任何名称。
twitch_negative - 定义是否可以将 twitch 失效的目标添加到组中。请注意:当玩家死亡时,他们被视为 twitch 失效状态。
AddSpawnedEntitiesToGroup - 将所有的生成的敌对势力实体添加到该组中。
group_name - 要加入的组名,可以自己定义任何名称。
entity_tags - 要搜索的实体标签。
target_only - 是否只将丧尸对象作为目标.
ClearGroup - 清空该组中的所有实体。
group_name - 要清除的组名。
Player Actions:
Common Properties:
target_group - The target group to target for this action.
AddBuff - Adds the buff to target or target_group.
buff_name - The buff to add to the target.
removes_buff - If this buff is active, remove it instead of adding the defined buff.
alt_vision_buff_name - If this is defined then if someone has "Allow Vision Effects" set to false, it will apply this buff instead.
check_already_exists - Checks to see if it already exists before allowing the buff to be added.
AddItemDurability - Adds durability to items on your player.
items_location - The location that is affected by this. (Toolbelt, Backpack, Both, Equipment, All).
amount - the amount of durability to add.
is_percent - If the amount is a percent.
AddItems - Adds items to your player.
added_items - Comma delimited list for items to be added. Must have matching entry in the added_item_counts.
added_item_counts - Comma delimited list for item counts to be added. Must have matching entry in the added_items.
AddJournalTip - Adds a journal tip to the player.
tip_name - Name of the journal tip.
show_window - Should it show the pop up tip window.
AddQuest - Adds a quest to the player.
quest - Quest added for player.
AddXP - Adds x amount of XP to the target or target_group.
xp_amount - The amount of XP to add.
AddXPDeficit - Adds an XP deficit to the target player.
BeltTooltip - Shows a belt tooltip.
text - Text to show.
text_key - Localization key to show.
sound - Sound that can play with the toolbelt message.
CallGameEvent - Calls another game event from this game event.
NOTE: This could cause an issue if you accidentally cause too many events to be fired. Be very careful when using this.
game_events - The list of game events to pick from. This will pick a single one at random. This can be used like a mystery random event.
Delay - Used to put a delay in between actions. Common use is to put this in it's own phase so that phase is delayed until this is done.
time - The time to delay.
玩家动作:
通用属性:
target_group - 要为该动作设定的目标组。
AddBuff - 为玩家或玩家目标组添加buff。
buff_name - 添加到玩家的buff名称。
removes_buff - 如果该buff已经存在,则删除它而不是添加定义过的buff。
alt_vision_buff_name - 如果这个被定义了,那么如果有人将“Allow Vision Effects”设置为false,则会应用此buff。
check_already_exists - 在允许添加buff之前检查是否已存在buff。
AddItemDurability - 为玩家物品添加耐久度。
items_location - 受此影响的位置。(工具腰带、背包、两者、装备、全部)
amount - 添加的耐久度量。
is_percent - 如果数量是百分比。
AddItems - 给你的玩家添加物品。
added_items - 以逗号分隔的项目列表来进行添加。必须与added_item_counts中的记录相匹配。
added_item_counts - 以逗号分隔的条目数量列表。必须与added_items中的记录相匹配。
AddJournalTip - 将提示加入日志中。
tip_name - 提示名称。
show_window - 是否显示弹出式提示窗口。
AddQuest - 将任务添加到玩家。
quest - 玩家添加任务。
AddXP - 为目标或目标组添加一定数量的XP。
xp_amount - 要添加的XP数。
AddXPDeficit - 为目标玩家添加XP亏欠度。
BeltTooltip - 显示腰带提示。
text - 要显示的文本。
text_key - 用于显示的本地化密钥。
sound - 可以通过工具栏消息播放声音。
CallGameEvent - 从此游戏事件中调用另一个游戏事件。
注意: 如果你无意中导致太多事件被触发,这可能会导致问题发生。在使用时非常小心。
game_events - 可供选择的游戏事件列表。这将随机选择其中一个。可以像神秘随机事件一样使用。
Delay - 用于在动作之间设置延迟。通常是在它自己的阶段中使用,所以该阶段将延迟到完成它。
time - 要延迟的时间量。
DropHeldItem - Drops the held item for the target.
EjectFromVehicle - Causes the targets to be ejected from the vehicle.
Explode - Causes an explosion on the target.
blast_power - Power of the blast.
block_damage - Amount of damage done to the blocks.
block_radius - The radius of the block damage.
block_tags - The blocks that are affected by the block damage.
entity_damage - Amount of damage done to the entities.
entity_radius - The radius of the entity damage.
FlipRotation - Changes the direction the player is facing to behind them.
GetNearbyPoint - Sets a target point that can be used for spawning multiple zombies together.
min_distance - The minimum distance from target.
max_distance - The maximum distance fromt target.
safe_spawn - If the point can happen in a safe zone.
air_spawn - This defines if it should complete a ground check to see if the point is valid. Vultures use this to allow spawning in flight.
yOffset - This allows the point to be offset on the y.
Kill - Kills the target or target_group
PlaySound - Play a sound for the target.
sound - Name of the sound to play.
inside_head - If the sound plays in the head of the target.
behind_player - If the sound should pick a spot behind the player. (Does not work with inside_head.)
loop_duration - If it's a looping sound, only play for this many seconds.
PrimeEntity - Primes the cop/demo zombie's explosive to explode in the specified seconds.
override_time - The number of seconds from when it starts the beep to when it explodes.
min_override_time - The minimum amount of time for the random explosion time.
max_override_time - The maximum amount of time for the random explosion time.
PullEntities - Forces all entities to respawn around the target.
target_group - The group to pull to the Target. (This is different then most uses so the property name may change.)
min_distance - minimum distance they can spawn.
max_distance - maximum distance they can spawn.
pull_sound - sound that is played when an entity is pulled.
PushEntity - Pushes the player/zombie in a direction the specified distance.
direction - The direction to push the entity. (Random, Forward, Backward, Right, Left)
distance - The distance to push the entity.
Ragdoll - Ragdolls the target or target_group
stun_duration - The stun duration applied to the target/target_group.
DropHeldItem - 丢弃目标手中的物品。
EjectFromVehicle - 导致目标从车辆中弹出。
Explode - 在目标上造成爆炸。
blast_power - 爆炸的威力。
block_damage - 对方块造成的伤害。
block_radius - 方块损坏半径。
block_tags - 受方块损害影响的方块。
entity_damage - 伤害实体的数量。
entity_radius - 实体受害半径。
FlipRotation - 将玩家面朝的方向改变为其背后。
GetNearbyPoint - 设置一个目标点,可用于同时生成多个僵尸。
min_distance - 到目标的最小距离。
max_distance - 到目标的最大距离。
safe_spawn - 如果该点可以在安全区产生。
air_spawn - 这定义了是否应进行地面检查以查看该点是否有效。秃鹫使用此功能允许在飞行中产生。
yOffset - 这可以使点在y轴上偏移。
Kill - 杀死目标或目标组。
PlaySound - 为目标播放声音。
sound - 播放的声音名称。
inside_head - 如果声音在目标头部播放。
behind_player - 如果声音应在玩家后面播放。(与inside_head不兼容。)
loop_duration - 如果是一个循环声音,则只播放这么多秒钟。
PrimeEntity - 开始执行蓝图,从而定时引爆zombie的爆炸。
override_time - 从启动倒计时到引爆的秒数。
min_override_time - 随机爆炸的最短时间。
max_override_time - 随机爆炸的最长时间。
PullEntities - 强制所有实体围绕目标重新生成。
target_group - 拉到目标组。(这与大多数用途不同,因此属性名称可能会更改。)
min_distance - 他们可以产生的最小距离。
max_distance - 他们可以产生的最大距离。
pull_sound - 当实体被拉出时播放的声音。
PushEntity - 将玩家/僵尸推向指定方向一定距离。
direction - 推动实体的方向。(随机、向前、向后、向右、向左)
distance - 推动实体的距离。
Ragdoll - 让目标或目标组进入布娃娃状态。
stun_duration - 施加在目标/目标组上的眩晕持续时间。
RandomDelay - Delay with a random value.
min_time - minimum amount of time the delay can be.
max_time - maximum amount of time the delay can be.
RandomTeleport - Randomly teleports the target/target_group.
min_distance - minimum distance they can teleport.
max_distance - maximum distance they can teleport.
RemoveBuff - Removes the specified buff.
buff_name - The name of the buff that should be removed.
RemoveEntities - Removes the target_group entities. This will probably throw a huge error if you try it on the Target.
RemoveItems - Removes the items from the player.
items_location - The location that is affected by this. (Toolbelt, Backpack, Both, Equipment, All).
remove_item_tag - The tag of the items you want removed.
RemoveVehicles - Removes a vehicles/turrets from the world.
return_items - places all items from the vehicle on the ground in a bag.
include_vehicle - includes the vehicle itself in the bag on the ground.
ReplaceEntities - Replaces the target_group entities. This will probably throw a huge error if you try it on the Target.
entity_names - The entity to replace the target_group with. If more than one it will choose one at random.
single_choice - If more than one entity is being replaced, only choose the zombie type once and use it for all.
ReplaceItems - Replaces the specified items with another item.
items_location - The location that is affected by this. (Toolbelt, Backpack, Both, Equipment, All).
replaced_by_item - The item that you replace the tagged items with.
replace_item_tag - The item tag for the items that should be replaced.
ResetPlayerData - Resets the player back to level one and optionally removes all landclaims / bedrolls.
reset_levels - Resets the level back to 1.
remove_landclaims - Removes all land claims.
remove_bedroll - Removes the bedroll for the player.
RespawnEntities - Respawns all dead entities from the supplied target_group.
target_group - The group of entities to respawn.
is_multi - Should this run continuously or one time.
respawn_sound - Sound played when an entity is respawned.
SetCVar - Sets the value of a CVar.
cvar - The cvar to set.
value - The value to set the CVar to.
SetScreenEffect - Sets the screen effect for the local player.
screen_effect - The screen effect to set.
intensity - The intensity of the screen effect.
fade_time - The amount of time it takes to fade to that intensity in seconds.
RandomDelay - 以随机值的方式延迟。
min_time - 延迟时间的最小值。
max_time - 延迟时间的最大值。
RandomTeleport - 随机传送到目标或目标组。
min_distance - 可传送的最短距离。
max_distance - 可传送的最长距离。
RemoveBuff - 删除指定的buff。
buff_name - 应删除的buff的名称。
RemoveEntities - 删除目标组实体。如果在目标上尝试,可能会产生错误。
RemoveItems - 移除玩家的物品。
items_location - 受此影响的位置。(工具栏、背包、两个位置、设备、全部)。
remove_item_tag - 您想要移除的物品的标记。
RemoveVehicles - 从世界中删除车辆/炮塔。
return_items - 将车辆中的所有物品放置在地面上的袋子中。
include_vehicle - 单独的车辆装在地上的包里。
ReplaceEntities - 替换目标组实体。如果在目标上尝试,可能会产生错误。
entity_names - 用于替换目标组的实体。如果不止一个,则随机选择一个。
single_choice - 如果替换了多个实体,则仅选择一次僵尸类型,并将其用于所有实体。
ReplaceItems - 用另一种物品替换指定的物品。
items_location - 受此影响的位置。(工具栏、背包、两个位置、设备、全部)。
replaced_by_item - 要使用的项目替换标记项。
replace_item_tag - 应更换的物品标签。
ResetPlayerData - 将玩家重置为第一级,并可选择删除所有土地声明/床单。
reset_levels - 将等级重置为1。
remove_landclaims - 删除所有土地声明。
remove_bedroll - 为玩家删除床单。
RespawnEntities - 从提供的目标组中重新生成所有死亡实体。
target_group - 要重生的实体组。
is_multi - 是否持续运行或一次性运行。
respawn_sound - 实体重生时播放的声音。
SetCVar - 设置CVar的值。
cvar - 要设置的cvar。
value - 要将CVar设置为的值。
SetScreenEffect - 设置本地玩家的屏幕效果。
screen_effect - 要设置的屏幕效果。
intensity - 屏幕效果的强度。
fade_time - 淡入淡出到该强度所需的时间,以秒为单位。
ShuffleContainers - Shuffles the contents of all nearby block containers. NOTE: This could make players very angry. Try to use with caution.
max_distance - maximum distance of the containers.
SpawnContainer - Spawns a container on the ground. (Handles the crate sharing code)
SpawnEntity - Spawns an entity on the ground.
entity_names - The entities to spawn. If more than one it will choose one at random.
single_choice - If more than one entity is being spawned, only choose the random choice once.
spawn_count - The number of entities to spawn.
min_distance - The minimum distance to spawn.
max_distance - The maximum distance to spawn.
safe_spawn - If the spawn can happen in a safe zone.
target_group - Can be used to spawn on a group of players such as the party.
add_to_group - Adds the spawned entities to the specified group. (Probably should rename this to avoid confusion)
attack_target - If the spawn should immediately attack the target. (Doesn't work for crates or animals that don't attack.)
air_spawn - This defines if it should complete a ground check to see if it should spawn. Vultures use this to allow spawning in flight.
yOffset - This allows the spawn to be offset on the y.
spawn_from_position - This action selects a position then spawns around that position.
clear_position_on_complete - Clears the target position on completion.
Teleport - teleports target to defined location or offset.
target_position - The position/offset to teleport the target to.
offset_type - None: teleports to a world position.
Relative: teleports relative to your position.
World: teleports relative to the world based on your position.
TeleportToSpecial - teleports the target to special location. (Only works for players.)
special_type - this can be Bedroll, Landclaim, or Backpack.
TimeChange - moves time forward or back based on the offset.
min_time - minimum amount of time to move time.
max_time - maximum amount of time to move time.
WaitForDead - Similar to the Delay, this doesn't move to the next phase until the specified target_group is all dead.
phase_on_despawn - the phase to go to if one of the targets is despawned.
POI Actions:
POISetLightState - Allows setting the state of lights in a POI.
enable_lights - If the lights should be on or off in the POI.
index_block_name - The indexed blocks name set for the lights that need to be turned on/off.
POIReset - Resets the POI chunks.
ShuffleContainers - 随机重排附近的所有容器的内容。注意:这可能会引起玩家非常生气。请谨慎使用。
max_distance - 容器的最大距离。
SpawnContainer - 在地面上生成一个容器。(处理创建共享代码)
SpawnEntity - 在地面上生成一个实体。
entity_names - 要生成的实体。如果不止一个,则随机选择一个。
single_choice - 如果要生成多个实体,则仅选择一次随机选择。
spawn_count - 要生成的实体数量。
min_distance - 最小生成距离。
max_distance - 最大生成距离。
safe_spawn - 生成是否可以发生在安全区域。
target_group - 可用于在一组玩家(如派对)上生成。
add_to_group - 将生成的实体添加到指定的组中。(可能应该重命名以避免混淆)
attack_target - 生成时是否应立即攻击目标。(对于不攻击的板条箱或动物无效。)
air_spawn - 这定义了它是否应完成地面检查以确定是否应生成。秃鹫使用此功能允许在飞行中生成。
yOffset - 这允许在y轴上偏移出生。
spawn_from_position - 此操作选择位置,然后在该位置周围生成。
clear_position_on_complete - 完成时清除目标位置。
Teleport - 将目标传送到定义的位置或偏移量。
target_position - 要将目标传送到的位置/偏移量。
offset_type - None:传送到世界位置。相对:相对于您的位置进行传送。World:基于您的位置相对于世界传送。
TeleportToSpecial - 将目标传送到特殊位置。(仅适用于玩家。)
special_type - 这可以是Bedroll、Landclaim或Backpack。
TimeChange - 根据偏移量向前或向后移动时间。
min_time - 要移动的最小时间量。
max_time - 要移动的最大时间量。
WaitForDead - 类似于Delay,直到指定的目标组全部死亡才进入下一个阶段。
phase_on_despawn - 如果其中一个目标被删除,则要转到的阶段。
POI操作:
POISetLightState - 允许设置POI中灯光的状态。
enable_lights - 是否在POI中点亮或关闭灯光。
index_block_name - 用于打开/关闭需要打开/关闭的灯的索引块名称。
POIReset - 重置POI块。

