数组:修订间差异

无编辑摘要
(错字)
标签移动版编辑 移动版网页编辑 可视化编辑
无编辑摘要
标签移动版编辑 移动版网页编辑 可视化编辑
第61行:
警告:截止1.15版,跨单位数组引用在下标中包含逻辑时。由于游戏bug,单位参考将被重定向。
 
使用消息接受数组,将返回空数组。
{{折叠|例子|<pre>
代码:
customTarget1.readUnitMemory("obj",type="unit[]").get(memory.index)
 
customTarget1.readUnitMemoryeventData("objget",type="unitfloat[]").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方法不受此影响。
 
255

个编辑