Lua-二维数组

梦想游戏人
目录:
脚本语言
vip.lua
local vip={
  [0] = {
    ['needGems'] = 0,
    ['point'] = 0,
  },
  [1] = {
    ['needGems'] = 50,
    ['point'] = 15,
  },
  [2] = {
    ['needGems'] = 460,
    ['point'] = 445,
  },
  [3] = {
    ['needGems'] = 960,
    ['point'] = 500,
  },
  
}
return vip
local vip=require("vip")

local function main()

  print(vip[2]["point"]);
  
end
main()
Scroll Up