Anonymous user
RCRPG/Ruby: Difference between revisions
→Commands
(Created page with '{{collection|RCRPG}} This Ruby version of RCRPG implements a text interface. ==Language Idioms== This program illustrates some of the interesting aspects of Ruby: * obj…') |
|||
Line 18:
Direction commands:<pre>north, south, east, west, up, down</pre>Type these in order to go in a certain direction. There must be a hole in the wall in that direction. All directions are aliased by their first letter (ie. you can go south by just typing s). In order to go up, you must have a ladder in your current room. In order to go down, the room below you must have a ladder in it.
Attack:<pre>attack <
Take/Drop:<pre>take <
drop <
View Inventory:<pre>inventory</pre>
Equip an item:<pre>equip <
Create an alias:<pre>alias <
==Code==
|