Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gameplay:guides:places:progtutvi [2023/11/21 23:07] – created kuhsodas | gameplay:guides:places:progtutvi [2023/11/21 23:20] (current) – kuhsodas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Programming Tutorial VI - Raindrops Keep Falling On My Bonce - Part 1 ====== | + | ====== Programming Tutorial VI - Raindrops Keep Falling On My Bonce - Weather, |
You've got an outside area, be it sylvan woodland, grotty industrial estate, medieval courtyard, or something else. You've been into the master settings and set things up so that you get those nice background effects depending on the weather. Very nice. But you want something more. You want to have extra descriptions depending on the weather. Descriptions that you've written yourself. Here we will describe how to do that. We will start with a fairly crude example and then at the end talk briefly about how to make it more sophisticated. | You've got an outside area, be it sylvan woodland, grotty industrial estate, medieval courtyard, or something else. You've been into the master settings and set things up so that you get those nice background effects depending on the weather. Very nice. But you want something more. You want to have extra descriptions depending on the weather. Descriptions that you've written yourself. Here we will describe how to do that. We will start with a fairly crude example and then at the end talk briefly about how to make it more sophisticated. | ||
Line 11: | Line 11: | ||
If we look at the weather table above, we notice that rain occurs when the Weather Status Number is five, six or seven. So what we want to set up is a program which asks: "Is the Weather Status 5,6 or 7?" and if the answer is " | If we look at the weather table above, we notice that rain occurs when the Weather Status Number is five, six or seven. So what we want to set up is a program which asks: "Is the Weather Status 5,6 or 7?" and if the answer is " | ||
- | Well we can't quite use a Weather Contrivance like that. The way that the Contrivance works is that it has a parameter which you set to a __single__ | + | Well we can't quite use a Weather Contrivance like that. The way that the Contrivance works is that it has a parameter which you set to a **single** |
<WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
Line 22: | Line 22: | ||
C'est Voila! We have built our weather description program. | C'est Voila! We have built our weather description program. | ||
- | Suppose that you want to differentiate a little more. Two, three or even more extra page descriptions depending on the weather. Currently you can do this by having two, three or even more programs running in the room, one for each different page that might be displayed. There are ways round this, but they use tricks that have not yet been covered in the tutorials. See [[gameplay: | + | Suppose that you want to differentiate a little more. Two, three or even more extra page descriptions depending on the weather. Currently you can do this by having two, three or even more programs running in the room, one for each different page that might be displayed. There are ways round this, but they use tricks that have not yet been covered in the tutorials. See [[gameplay: |
gameplay/guides/places/progtutvi.1700608064.txt.gz · Last modified: 2023/11/21 23:07 by kuhsodas