跳转到内容

单位引用:修订间差异

→‎全局:​添加例子。
标签移动版编辑 移动版网页编辑
→‎全局:​添加例子。
标签移动版编辑 移动版网页编辑
第135行: 第135行:
这些单位引用的特点很明显,都是指向具体的某个单位。
这些单位引用的特点很明显,都是指向具体的某个单位。
<code>attacking</code>为<code>activeWaypointTarget</code>为攻击时套上单位的快捷引用方式。<code>lastDamagedBy</code>在事件来源为tookDamage时的快捷引用方式。<code>parent</code>在单位自身为他人附属时可使用。
<code>attacking</code>为<code>activeWaypointTarget</code>为攻击时套上单位的快捷引用方式。<code>lastDamagedBy</code>在事件来源为tookDamage时的快捷引用方式。<code>parent</code>在单位自身为他人附属时可使用。
{{折叠|全局单位引用的例子|<pre>
isVisible: if parent.attachment(slot= 5) == self
[hiddenAction_repair]
autoTriggerOnEvent: newWaypointGivenByPlayer
requireConditional: if self.hasActiveWaypoint(type= "repair")
showMessageToPlayer: 你正在治疗%{activeWaypointTarget}。
</pre>}}


==存储==
==存储==
==其他==
==其他==
39

个编辑