I am a college student brand new to IF. We are required to develop a game for a project, but I need help with writing the text/code.
Our story is about a secret agent in an airport who has to find a “bad guy” placing a couple bombs throughout the airport. My specific part of my group is finding the flight manifest on a computer in a control tower.
I need to set it up so there are three people in the control working at three different computers. One of the computers has the manifest. But to get to the computers, you have to kill the the air traffic control guys. My code so far:
The Control Tower is a room. “After walking up several flights of steps, you are now at the top of the control tower. The tower is surrounded by windows. There are three air traffic control men in the room: John, Alex, and Patrick. You know their names from nameplates on their desks. Each person has a computer in front of them. To the west back down the stairs is the Gate.”
The player carries a knife and a camera.
John is a man in the Control Tower. “John is working to the left of you at a desk.” The description of John is “John is wearing a headset.”
Alex is a man in the Control Tower. “Alex is in the middle working in front of you at a desk.” The description of Alex is “Alex is wearing a headset.”
Patrick is a man in the Control Tower. “Patrick is working to the right of you at a desk.” The description of Patrick is “Patrick is wearing a headset.”
Understand the command “kill” as something new.
Killing it with is an action applying to two things.
Understand “kill [someone] with [something]” as killing it with.
Understand “murder [someone] with [something]” as killing it with.
Understand “stab [someone] with [something]” as killing it with.
After killing John, say “You have murdered John! His computer is now accessible.”.
After killing Alex, say “You have eliminated Alex! Feel free to use his computer.”.
After killing Patrick, say “You have sliced Patrick to shreds! You can now access his computer”.
But in this last part, I encounter a problem. “Problem. You wrote ‘After killing John’ , which seems to introduce a rule taking effect only if the action is ‘killing John’. But that did not make sense as a description of an action. I am unable to place this rule into any rulebook.”
And that problem occurs for each person? Any ideas on how to fix that? I am also having trouble creating three computer objects? How do I make it so you cannot examine the computers without killing people first? If they do try to examine without killing, how do I make it so security comes and takes me to end the game? Help please?!?