数组:修订间差异

无编辑摘要
(错字)
标签移动版编辑 移动版网页编辑 可视化编辑
无编辑摘要
标签移动版编辑 移动版网页编辑 可视化编辑
第61行: 第61行:
警告:截止1.15版,跨单位数组引用在下标中包含逻辑时。由于游戏bug,单位参考将被重定向。
警告:截止1.15版,跨单位数组引用在下标中包含逻辑时。由于游戏bug,单位参考将被重定向。


{{折叠|例子|<pre>
使用消息接受数组,将返回空数组。
代码:
customTarget1.readUnitMemory("obj",type="unit[]").get(memory.index)


customTarget1.readUnitMemory("obj",type="unit[]").get(self.hp)
eventData("get",type="float[]")=[]


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

个编辑