RCRPG/Inform 7: Difference between revisions

m
Fixed syntax highlighting.
m (→‎Code: wrapped)
m (Fixed syntax highlighting.)
 
(2 intermediate revisions by one other user not shown)
Line 2:
This [[Inform 7]] version of [[:Category:RCRPG|RCRPG]] simulates an XYZ space of rooms using a fixed pool of in-game objects.
 
Player-defined aliases are not supported, although some common abbreviations are built in. Equipped items are marked with a flag instead of being removed from inventory. The sledge has a chance of breaking each time the player breaks through a wall (but only after a replacement has been discovered somewhere).
{{works with|Z-machine|8}}
{{works with|Glulx virtual machine}}
 
== =Language Idioms ===
(Add to this list if you see anything of interest not mentioned.)
 
Line 22 ⟶ 21:
* Relations (wielding)
* Chronology tests ("for the first time")
* Pathfinding ("number of moves")
* Customized action patterns ("sledging with")
 
== =Code ===
{{works with|Z-machine|8}}
<lang inform7>"RCRPG"
{{works with|Glulx virtual machine}}
<langsyntaxhighlight lang="inform7">"RCRPG"
The story headline is "An implementation of http://rosettacode.org/wiki/RCRPG".
Line 310 ⟶ 313:
Report unequipping:
say "You unequip [the noun]."</langsyntaxhighlight>
9,476

edits