Re: If statements in Inform 7
It has been a long time, but as it seems to me you have to indent the instead block as well. If not, Inform doesn't know where it starts and where it ends. An example with nested statements would look like that:Instead of opening the fridge: if the cheese
Re: If statements in Inform 7
I fixed it by removing that whole section and replacing it with this.Instead of going to the Storage Room when the player is not carrying the backpack:Say "You don't want to go in there without your backpack."I can understand where you're coming fro
Re: If statements in Inform 7
I fixed it by removing that whole section and replacing it with this.Instead of going to the Storage Room when the player is not carrying the backpack:Say "You don't want to go in there without your backpack."I can understand where you're coming fro
Re: If statements in Inform 7
@8 @9The difference between the two of you is almost certainly that one of you has learned to program and the other hasn't. Inform 7 doesn't make sense to anyone who is used to some degree of formalism, because Inform 7 is intentionally anti-formalism. C
Re: If statements in Inform 7
Actually, this seems to make more logical sense than a traditional programming language. Something like Python or C makes my head hurt and if I can't get something to work, I want to throw my computer out the window. There are just a few things I'm still
Re: If statements in Inform 7
I can’t imagine writing apps in this. You have my props, OP.
URL: https://forum.audiogames.net/post/527149/#p527149
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman
Re: If statements in Inform 7
I made the change, but it doesn't help. I still get errors. Here's the full source of the test project I've been working with. It works perfectly as long as you remove everything starting with the instead rule."test" by testThe Hallway
Re: If statements in Inform 7
@5It should beOtherwise;notOtherwise:HTH
URL: https://forum.audiogames.net/post/527114/#p527114
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames
Re: If statements in Inform 7
This doesn't seem to work. I don't understand this. Here's the block of code I have now. I made a test game with the hallway and storage room, and it works as long as this block is removed. There's probably something really obvious I'm missing. This is why I
Re: If statements in Inform 7
A very strange programming language for making interactive fiction which attempts to read like a novel instead of a programming language and, in the process, manages to be incomprehensible to anyone who programs in a regular programming language. I'm being
Re: If statements in Inform 7
What is Inform 7? Never heard of it.
URL: https://forum.audiogames.net/post/527078/#p527078
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: If statements in Inform 7
There are two forms of if statements. One of them reqres spacial indentation, for example. Note the : instead of semicolon after the ifif the player holds the backpack: say "Now that you have your backpack, you 're ready to enter!"; Now
Re: If statements in Inform 7
There are two forms of if statements. One of them reqres spacial indentation, for example. Note the : instead of semicolon after the ifif the player holds the backpack: say "Now that you have your backpack, you 're ready to enter!"; Now
13 matches
Mail list logo