Outdoor shop.
Author | Topic: Outdoor shop. |
---|---|
Warrior
Member # 1451
|
written Friday, July 2 2004 11:02
Profile
Homepage
My code: Now, why doesn't it work like it's supposed to? There is no response from the game, no matter if I choose option one or two. Just as if I put end(); in both choices. It's clearly supposed to be a shop. Anyone has a clue? [ Friday, July 02, 2004 11:07: Message edited by: Abu Dhabi ] -------------------- I am pleased to make contact with your entities. Posts: 123 | Registered: Sunday, July 7 2002 07:00 |
Warrior
Member # 286
|
written Friday, July 2 2004 14:18
Profile
You haven't actually set the variable "choice" to anything. You have to explicitly assign it to run_dialog(), like this: choice=run_dialog(1) -------------------- Z: "I just feel so insignificant." Psych: "You ARE. You're an ANT." --Antz Posts: 104 | Registered: Saturday, November 17 2001 08:00 |
Infiltrator
Member # 154
|
written Saturday, July 3 2004 00:37
Profile
Also, a question. Why are you putting the { bracket on a new line? You don't need to and it looks weird. -------------------- Apparently still annoying. Posts: 612 | Registered: Saturday, October 13 2001 07:00 |
Warrior
Member # 1451
|
written Saturday, July 10 2004 10:05
Profile
Homepage
quote:It may look weird to you, but I have issues about condition statements in programming -- if I don't put them there I end up confused as to where the statement ends and where the next begins. I guess it's a personal thing. -------------------- I am pleased to make contact with your entities. Posts: 123 | Registered: Sunday, July 7 2002 07:00 |