2021-02-10 16:22:24 -05:00
|
|
|
maketangible('player')
|
|
|
|
|
|
2021-02-25 14:09:16 -05:00
|
|
|
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")
|
2021-02-10 16:22:24 -05:00
|
|
|
end
|
|
|
|
|
|
2021-02-25 14:09:16 -05:00
|
|
|
function player.action.north(actor, place, dialog)
|
2021-02-10 16:22:24 -05:00
|
|
|
print("Moving north")
|
|
|
|
|
end
|
|
|
|
|
|
2021-02-25 14:09:16 -05:00
|
|
|
function player.action.south(actor, place, dialog)
|
2021-02-10 16:22:24 -05:00
|
|
|
print("Moving south")
|
|
|
|
|
end
|
|
|
|
|
|
2021-02-25 14:09:16 -05:00
|
|
|
function player.action.east(actor, place, dialog)
|
2021-02-10 16:22:24 -05:00
|
|
|
print("Moving east")
|
|
|
|
|
end
|
|
|
|
|
|
2021-02-25 14:09:16 -05:00
|
|
|
function player.action.west(actor, place, dialog)
|
2021-02-10 16:22:24 -05:00
|
|
|
print("Moving west")
|
2021-02-20 19:17:20 -05:00
|
|
|
wait(0)
|
|
|
|
|
print("Moving west again")
|
2021-02-10 16:22:24 -05:00
|
|
|
end
|