2021-12-28 13:56:16 -05:00
|
|
|
makeclass('login')
|
2021-06-02 15:00:14 -04:00
|
|
|
|
|
|
|
|
function login.interface(actor, place)
|
2021-12-28 14:07:15 -05:00
|
|
|
gui.menu_item("cb_becomeplayer", "Become a Player")
|
|
|
|
|
gui.menu_item("cb_p123", "Print 1, 2, 3")
|
2021-06-02 15:00:14 -04:00
|
|
|
end
|
|
|
|
|
|
2021-12-28 14:07:15 -05:00
|
|
|
function login.cb_becomeplayer(actor, place, dialog)
|
2022-03-16 15:47:46 -04:00
|
|
|
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})
|
2021-06-02 15:00:14 -04:00
|
|
|
tangible.setclass(actor, player)
|
2022-02-03 16:23:14 -05:00
|
|
|
tangible.animate(actor,{action="warp",plane="main",x=0,y=0,z=0})
|
2021-06-02 15:00:14 -04:00
|
|
|
end
|
|
|
|
|
|
2021-12-28 14:07:15 -05:00
|
|
|
function login.cb_p123(actor, place, dialog)
|
2021-11-26 15:45:36 -05:00
|
|
|
print(1)
|
|
|
|
|
wait(1)
|
|
|
|
|
print(2)
|
|
|
|
|
wait(1)
|
|
|
|
|
print(3)
|
|
|
|
|
end
|
|
|
|
|
|
2021-12-15 23:03:43 -05:00
|
|
|
-- this is function documentation for setfoo.
|
2021-11-21 13:35:39 -05:00
|
|
|
function setfoo(n)
|
|
|
|
|
tangible.nopredict()
|
2021-11-23 13:18:23 -05:00
|
|
|
tangible.actor().inventory.foo = n
|
2021-11-21 13:35:39 -05:00
|
|
|
end
|
2021-11-23 16:10:48 -05:00
|
|
|
|
|
|
|
|
function buildq()
|
|
|
|
|
return tangible.build{class="login", x=10, y=0, z=0, plane="nowhere", graphic="what"}
|
|
|
|
|
end
|