跳转到内容

数组:修订间差异

无编辑摘要
无编辑摘要
标签移动版编辑 移动版网页编辑 可视化编辑
无编辑摘要
标签移动版编辑 移动版网页编辑 可视化编辑
第60行: 第60行:
}}
}}
警告:截止1.15版,跨单位读数组,由于游戏bug,单位参考将被重定向。
警告:截止1.15版,跨单位读数组,由于游戏bug,单位参考将被重定向。
{{折叠|例子|<pre>
代码:
customTarget1.readUnitMemory("obj",type="unit[]").get(memory.index)


customTarget1.readUnitMemory("obj",type="unit[]").get(self.hp)
customTarget1.readUnitMemory("obj",type="unit[]").get(memory.unit.readUnitMemory("index",type="float"))
实际运行结果:(伪代码)
customTarget1.memory.obj.get(customTarget1.memory.index)
customTarget1.memory.obj.get(customTarget1.hp)
customTarget1.memory.obj.get(customTarget1.memory.unit.memory.index)
</pre>}}
thisActionIndex/index方法不受此影响。
thisActionIndex/index方法不受此影响。


292

个编辑