This commit is contained in:
2022-03-23 17:03:07 -04:00
parent 70ae9627ee
commit 93e1ab63b9
4 changed files with 58 additions and 26 deletions

View File

@@ -8,7 +8,8 @@ end
function login.cb_becomeplayer(actor, place, dialog)
actor.kind='P'
actor.Count={}
setmetatable(actor.Count,{jones=5,__index=function(t,k) return 0 end,__newindex=function(t,k,v) if v~=nil and v~=0 then rawset(t,k,v) end end})
actor.Count.Foobar=42
setmetatable(actor.Count,NilIsZero)
tangible.setclass(actor, player)
tangible.animate(actor,{action="warp",plane="main",x=0,y=0,z=0})
end