RCRPG/PureBasic: Difference between revisions

m
code comment correction
mNo edit summary
m (code comment correction)
Line 2:
This version is a more or less direct translation of the version done in Perl (See [[RCRPG/Perl]]) with some additional functionality added. Commands include attack, drop, take, equip, alias, name, inventory, and directions. The 'name' command can use a double-quoted string if spaces wanted to be included in the name (i.e. 'name "this room").
 
An additional command 'ask' was implemented for providing hints in finding the randomly placed Prize Room. The program also allows the stacking of commands if they are separated by a space (i.e. 'take all equip sledge a north n' will perform four actions: take all, equip sledge, [a]ttack north, [n]orth).
<lang PureBasic>;Here is a description of all of the commands:
;
Line 46:
;At the start of the game, only two rooms exist, the Start and the Prize room.
;All other rooms the player creates by moving around. The Prize room is randomly
;located each game. If you get need a hint just 'ask'.
;
;To move out of the start room, the player needs to break a hole in a wall,
Anonymous user