Site Tools
User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gameplay:guides:places:progtutvi [2023/11/21 23:07] – created kuhsodasgameplay: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, Part 1 ======
  
 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 "Yes" then show an extra page that you've decorated with your extra "It's raining!" description. 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 "Yes" then show an extra page that you've decorated with your extra "It's raining!" description.
  
-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__ number from one to seven, say five, and then you have a Contrivance which asks "Is the Weather Status Number currently equal to five?" Since we are looking for three different numbers (five, six and seven) we need three Weather Contraptions, one for each number we want to check. We take these, and setting the parameters on these to five, six or seven, we place them in the programming grid, together with a Show Page Contraption (with parameter set to show the page with our new "It's raining!" description) as follows.+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** number from one to seven, say five, and then you have a Contrivance which asks "Is the Weather Status Number currently equal to five?" Since we are looking for three different numbers (five, six and seven) we need three Weather Contraptions, one for each number we want to check. We take these, and setting the parameters on these to five, six or seven, we place them in the programming grid, together with a Show Page Contraption (with parameter set to show the page with our new "It's raining!" description) as follows.
  
 <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:guides:places:progtutvii|Tutorial VII]] for ideas about how to split the weather into two different groupings, each with their own page. See [[gameplay:guides:places:advtuti|Advanced Tutorial I]] and its following tutorial for tips as to how to split the weather into three or more different groupings.+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:guides:places:progtutIX|Tutorial IX]] for ideas about how to split the weather into two different groupings, each with their own page. See [[gameplay:guides:places:advtuti|Advanced Tutorial I]] and its following tutorial for tips as to how to split the weather into three or more different groupings.
  
  
gameplay/guides/places/progtutvi.1700608064.txt.gz · Last modified: 2023/11/21 23:07 by kuhsodas