Changed how userdata is handled

This commit is contained in:
2021-02-25 14:09:16 -05:00
parent 5f783e643b
commit 6405c34938
9 changed files with 88 additions and 167 deletions

View File

@@ -1,27 +1,25 @@
maketangible('player')
function player.interface(actor, place, gui)
gui:menu_item("north", "Go North")
gui:menu_item("south", "Go South")
gui:menu_item("east", "Go East")
gui:menu_item("west", "Go West")
function player.interface(actor, place)
gui.menu_item("north", "Go North")
gui.menu_item("south", "Go South")
gui.menu_item("east", "Go East")
gui.menu_item("west", "Go West")
end
function player.action.north(actor, place, gui)
function player.action.north(actor, place, dialog)
print("Moving north")
end
function player.action.south(actor, place, gui)
function player.action.south(actor, place, dialog)
print("Moving south")
end
function player.action.east(actor, place, gui)
function player.action.east(actor, place, dialog)
print("Moving east")
t = nil
t[3] = 4
end
function player.action.west(actor, place, gui)
function player.action.west(actor, place, dialog)
print("Moving west")
wait(0)
print("Moving west again")