main.heritage 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. info():
  2. author: fr33domlover
  3. title: Loop
  4. license: CC0 Public Domain Dedication
  5. var(loaded,0)
  6. room(0.0.0):
  7. description: You are sitting in your work room, in front of your desk. The
  8. computer's screen is in front of you. It's displaying some
  9. small white text on black background.
  10. items: screen
  11. item(screen):
  12. on_examine: The web browser, GNU IceCat, is open. It's displaying a black
  13. page with white text. The text says:
  14. ============================================================
  15. Welcome to HERITAGE, the text adventure game engine!
  16. ============================================================
  17. $(equals:loaded,0;To start playing, you must first load a game.
  18. Use the command "load GAME", where GAME is the name of the
  19. game. After that, you can enter the command "start" to launch
  20. the game.)$
  21. $(equals:loaded,1;You have loaded the game called "loop". To
  22. launch the game, enter the command "start".)$
  23. $(equals:loaded,0;Here is a list of the installed games:
  24. 1. loop)$
  25. action(load_loop):
  26. succeed: You type in "load loop" and press Enter. The text on the screen
  27. changes. #(loaded=1)#
  28. equals: loaded,0
  29. fail: You type in "load loop" and press Enter. The screen displays a notice
  30. "game already loaded!", and goes back to its previous state. No harm
  31. done.
  32. action(start):
  33. succeed: You type in the command "start" and press Enter. The game
  34. launches. Now the screen displays the following: #(loaded=0)#
  35. --------------------------------
  36. You are sitting in your work room, in front of your desk. The
  37. computer's screen is in front of you. It's displaying some small
  38. white text on black background.
  39. equals: loaded,1
  40. fail: You type in the command "start" and press Enter. The screen displays
  41. a notice "no game loaded!", and goes back to its previos state. No
  42. harm done.