Forum:Variables

Hello World!

Is there a way to keep information from one article to another? Such as the fact that a character has picked up a gun? In Interactive Fiction, of course.

This is the use: The IF begins with the character in a room, there is a gun in the room, if they choose to they can pick the gun up. If they do they will later have the choice of using it.

Only way I know is by having the names of the articles be different. In the example: at first they start in Room#1 (which leads to Room#2) if the pick up the gun they will now be in Room#1(Gun) (which leads to Room#2(Gun)'') --from  Modred . (speak to) 03:42, 28 February 2007 (UTC)