script.lua
· 744 B · Lua
原始文件
Playground
WeekOne = {}
function WeekOne.morning ()
player.at = "home"
player.x = bed.x
player.y = bed.y
add (home_door) (bed) (computer) (player) ()
interaction (home_door) (player) (then_go_to (WeekOne.work))
interaction (computer) (player) (
then_message "Wish I had time for a quick browse, but I can't afford the distraction."
)
interaction (player) (bed) (
then_message "haha, I wish I could sleep in more. But need to get that money."
)
sequence (function()
say "Whelp, time for another week of work. [>]"
say "Work's been super busy. [>]"
say "It's a tough market to be a software shop. [>]"
say "Anyways, I should probably get to work. [>]"
end)
end
| 1 | WeekOne = {} |
| 2 | function WeekOne.morning () |
| 3 | player.at = "home" |
| 4 | player.x = bed.x |
| 5 | player.y = bed.y |
| 6 | |
| 7 | add (home_door) (bed) (computer) (player) () |
| 8 | |
| 9 | interaction (home_door) (player) (then_go_to (WeekOne.work)) |
| 10 | |
| 11 | interaction (computer) (player) ( |
| 12 | then_message "Wish I had time for a quick browse, but I can't afford the distraction." |
| 13 | ) |
| 14 | |
| 15 | interaction (player) (bed) ( |
| 16 | then_message "haha, I wish I could sleep in more. But need to get that money." |
| 17 | ) |
| 18 | |
| 19 | sequence (function() |
| 20 | say "Whelp, time for another week of work. [>]" |
| 21 | say "Work's been super busy. [>]" |
| 22 | say "It's a tough market to be a software shop. [>]" |
| 23 | say "Anyways, I should probably get to work. [>]" |
| 24 | end) |
| 25 | end |