RCRPG/MiniScript: Difference between revisions

m
Fixed syntax highlighting.
(Created page with "This MiniScript version of RCRPG attempts to go beyond the requirements of the task to make something a little more game-like. In particular, the goal location is ran...")
 
m (Fixed syntax highlighting.)
 
Line 1:
This [[MiniScript]] version of [[RCRPG]] attempts to go beyond the requirements of the task to make something a little more game-like. In particular, the goal location is randomized, but clues are hidden in the dungeon to guide your way. In addition, pointless busywork (like having to explicitly bash open a passage before moving) have been mostly eliminated. Also, some "color" comments are randomly added to the rooms, but both these comments and the room contents are persistent, even between levels. This strengthens the illusion of moving around a realistic virtual space.
 
== =Objective ===
The objective of the game is to find your way to the mystical Room of MacGuffin, whose location is unknown. Watch for messages scratched on the walls by previous travelers, which may provide clues on your quest.
 
===Commands===
 
Direction commands: '''north''', '''south''', '''east''', '''west''', '''up''', '''down'''. Enter these (or their one-letter abbreviations) to move in the given direction, bashing open a passage if necessary. Note that such bashing requires a sledgehammer; one has been provided to you. In order to go up, there must be a ladder in the room.
Line 16:
To get in-game help, enter '''help''' (optionally followed by the command you want to know more about).
 
===Code===
 
<langsyntaxhighlight MiniScriptlang="miniscript">pos = [0,0,0]
goal = [floor(rnd*10), floor(rnd*10), floor(3+rnd*5)]
 
Line 300:
print "Invalid command. For help, enter: help"
end if
end while</langsyntaxhighlight>
 
{{out}}
9,476

edits