-- ending.i -- version 2 -- by Anssi Räisänen, Nov 19, 2011 -- This extension provides a way to write the winning, losing or other ending messages for a game -- and then call those messages easily within the game code by declaring ‘DESCRIBE winning’, -- ‘DESCRIBE losing’ and ‘DESCRIBE ending’. THE winning ISA OBJECT DESCRIPTION "$p$p$t$t$t$t* * *$t You have won$t * * *$p" QUIT. END THE. THE losing ISA OBJECT DESCRIPTION "$p$p$t$t$t$t* * *$t You have died$t * * *$p" QUIT. END THE. THE ending ISA OBJECT DESCRIPTION "$p$p$t$t$t$t* * *$t The end$t * * *$p" QUIT. END THE. -- When you import this file to your game (or copy the text to your source code), you will be able to -- -- DESCRIBE winning. -- -- or -- -- DESCRIBE losing. -- -- or -- -- DESCRIBE ending. -- -- and the appropriate text, modifiable within the quotes above, will display at the end of the game. -- e.g: -- -- THE diamond ISA OBJECT AT cave -- VERB take -- DOES ONLY -- DESCRIBE winning. -- END VERB. -- END THE diamond. -- -- or -- -- THE bomb ISA OBJECT AT laboratory -- VERB detonate -- DOES -- "Maybe you shouldn't have done that..." -- DESCRIBE losing. -- END VERB. -- END THE bomb. -- You are free to modify this file in any way you like.