Advertisement
plirof2

adventuron_initial_gr_script.txt 231013_OLD

Oct 13th, 2023 (edited)
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Για μεταφραση ιδέες https://github.com/paravaariar/adventuron_french_notes
  2. start_at = outside_cave
  3.  
  4. ## Defines locations in the world
  5.  
  6. locations {
  7.    lakeside      : location "You are by the side of a beautiful lake." ;
  8.    outside_cave  : location "You are outside a cave. The entrance lies north." ;
  9.    treasure_room : location "You are in a room of treasures." ;
  10. }
  11.  
  12. # Defines things in the world (scenery cannot be carried)
  13.  
  14. objects {
  15.    apple          : object  "an apple" msg="Delicious." at = "lakeside";
  16.    troll          : scenery "an enormous troll"  at = "outside_cave" msg="Hungry.";
  17. }
  18.    
  19. connections {
  20.  
  21.    ## Connects locations together (bidirectional)
  22.    
  23.    from, direction, to = [
  24.       lakeside,     north, outside_cave
  25.       outside_cave, north, treasure_room,
  26.    ]
  27. }
  28.  
  29. barriers {
  30.  
  31.    ## Blocks Access To Cave Whilst Troll Exists (with message)
  32.    
  33.    block_cave : block {
  34.       location           = treasure_room
  35.       message            = The troll is guarding the cave.
  36.       block_when_exists  = troll
  37.       show_blocked_exit  = true
  38.    }
  39.    
  40. }
  41.  
  42. ## Print the objective when the game starts
  43.  
  44. on_startup {
  45.    : print "CAVE OF MAGIC !" ;
  46.    : print "ΕΞΕΡΕΥΝΗΣΤΕ ΤΟΝ ΧΩΡΟ." ;
  47.    : print "MOVE by typing Βόρεια(Β)/North,Ανατολικά(Α)/East,Δυτικά(Δ)/West, Νότια(Ν)/South." ;
  48.    : press_any_key ;
  49. }
  50.  
  51. ## Execute this every time a player moves or redescribes a location
  52.  
  53. on_describe {
  54.    : if (is_at "treasure_room" ) {
  55.       : print "CONGRATULATIONS YOU FOUND THE TREASURE. YOU WIN!" ;
  56.       : win_game ;
  57.    }
  58. }
  59.  
  60. ## Test VERB NOUN that the player types and executes conditional actions
  61.  
  62. on_command {
  63.    : match "give apple"  {
  64.       : if (is_present "troll" && is_carried "apple") {
  65.          : print   "The troll eats the apple then wanders off." ;
  66.          : destroy "apple" ;
  67.          : destroy "troll" ;
  68.       }
  69.    }
  70. }
  71.  
  72. themes {
  73.    mytheme : theme {
  74.       # order of the compass directions matters, and must be translated in full (all 12)
  75.       system_messages {
  76.          #compass = [north, northeast, east, southeast, south, southwest,  west, northwest, up, down, inside, outside]      
  77.          compass = [Βόρεια, northeast, Ανατολικά, southeast, Νότια, southwest,  Δυτικά, northwest, up, down, inside, outside]
  78.          compass_short = [n, ne, e, se, s, sw, w, nw, u, d, in, out]
  79.       }
  80.    }
  81. }
  82.  
  83.  
  84.  
  85. vocabulary {
  86.  
  87.    // Here we assocated new words with the already supported english system vocab
  88.    : verb / aliases = [e,  Α ,ανατολικά ,ανατολικα  ]    
  89.    : verb / aliases = [south,   Ν ,Νότια ,Νοτια  ]  
  90.    : verb / aliases = [north,   Β ,Βόρεια ,ΒΟΡΕΙΑ  ]  
  91.    : verb / aliases = [west,   Δ ,Δυτικά ,δυτικά  ]  
  92.      
  93.    : verb / aliases = [examine,   εξέτασε,ΕΞΕΤΑΣΕ   ]
  94.    : verb / aliases = [get, ΠΑΡΕ, πάρε             ]
  95.    : verb / aliases = [drop,ρίξε,ριξε,αφησε,άφησε  ,    droptranslated      ]
  96.    : verb / aliases = [inventory,τσέπες,τσεπες, inventorytranslated ]
  97.    : verb / aliases = [look, κοίτα,δες,κοιτα ]
  98.    : verb / aliases = [quit,      quittranslated      ]
  99.    : verb / aliases = [help, βοήθεια,βοηθεια,     helptranslated      ]
  100.  
  101. }
  102.  
  103.  
  104. assets {
  105.    graphics {
  106.      
  107.  
  108.  
  109.    }
  110. }
  111.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement