(IntFic = InteractiveFiction)
You can make duplicate objects by defining a class, e.g.
Class GoldCoin?
with name "gold" "coin" "coins//p",
short_name "gold coin",
plural "gold coins",
description "The coin is made of valuable gold, and must be worth a lot.";
GoldCoin? ->;
GoldCoin? ->;
I've also used:
Class GoldCoin?(20)
with name "gold" "coin" "coins//p",
short_name "gold coin",
plural "gold coins",
description "The coin is made of valuable gold.";
The (20) means that you can create up to 20 gold coins. When you want to create one, use:
i=GoldCoin?.create();
if (i==0) "<<Whatever error message for no remaining objects>>";
move i to player;
GoldCoin? is just an example class, and the object can be moved to any object, not just the player.
CategoryIntFic
EditText of this page
(last edited August 14, 2000)
FindPage by searching (or browse LikePages or take a VisualTour)