This commit is contained in:
2022-03-29 15:47:44 -04:00
parent 945e5fc847
commit 3da06c8226
2 changed files with 9 additions and 10 deletions

View File

@@ -3,16 +3,15 @@ makeclass('login')
function login.interface(actor, place)
gui.menu_item("cb_becomeplayer", "Become a Player")
gui.menu_item("cb_p123", "Print 1, 2, 3")
end
end
function login.cb_becomeplayer(actor, place, dialog)
actor.kind='P'
actor.Count={}
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
end
function login.cb_p123(actor, place, dialog)
print(1)
@@ -20,14 +19,14 @@ function login.cb_p123(actor, place, dialog)
print(2)
wait(1)
print(3)
end
end
-- this is function documentation for setfoo.
function setfoo(n)
tangible.nopredict()
tangible.actor().inventory.foo = n
end
end
function buildq()
return tangible.build{class="login", x=10, y=0, z=0, plane="nowhere", graphic="what"}
end
end