RCRPG/Inform 7: Difference between revisions
m
Fixed syntax highlighting.
(→Code: sledge damage, "sledging with", moved "every turn" rule for equipped items) |
m (Fixed syntax highlighting.) |
||
(3 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}}▼
==
(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")
==
▲{{works with|Z-machine|8}}
<lang inform7>"RCRPG"▼
▲{{works with|Glulx virtual machine}}
The story headline is "An implementation of http://rosettacode.org/wiki/RCRPG".
Line 265 ⟶ 268:
Definition: a thing is accessible if the location of it is a connected room.
Definition: a room is connected if the number of moves from it to the location
is not -1.
Carry out sledging when a random chance of 1 in 4 succeeds and an unequipped
sledge is accessible:
remove the active sledge from play.
Line 308 ⟶ 313:
Report unequipping:
say "You unequip [the noun]."</
|