跳转到内容

单位引用:修订间差异

第57行: 第57行:
===thisActionIndex的用法===
===thisActionIndex的用法===
<code>thisActionIndex</code>能在遍历过程中同时知道每个元素的位置信息,<code>index</code>为其缩略形式。受<code>alsoTriggerActionRepeat</code>与<code>takeResources_triggerActionForEach</code>影响。值为int(整数)类型,从0开始,用于遍历数组。
<code>thisActionIndex</code>能在遍历过程中同时知道每个元素的位置信息,<code>index</code>为其缩略形式。受<code>alsoTriggerActionRepeat</code>与<code>takeResources_triggerActionForEach</code>影响。值为int(整数)类型,从0开始,用于遍历数组。
eg:<code>[hiddenAction_1]
<pre>eg:
[hiddenAction_1]
alsoTriggerAction:2
alsoTriggerAction:2
alsoTriggerActionRepeat:memory.array.size
alsoTriggerActionRepeat:memory.array.size
[hiddenAction_2]
[hiddenAction_2]
setUnitMemory:array[index]=select(memory.array[index]==0,0,memory.array[index]-1)</code>
setUnitMemory:array[index]=select(memory.array[index]==0,0,memory.array[index]-1)</pre>


===对应的情况===
===对应的情况===
376

个编辑