%POPULATION := %POPULATION * 99/100
IF %RESEARCHPT = 0 THEN
$PAGETEXT := " You have not gained any technology yet."
IF %REASEARCHPT > 0 THEN
BEGIN
IF %COMMERCE = 1 THEN
$PAGETEXT := $PAGETEXT + " You have invested in commerce. This means that you are no longer a bartering system market. Instead you swap smaller goods to replace the bulky goods. You can use paper, metal, seashells, or anything else that is readily handy and in great quantities."
IF %STONETOOLS = 1 THEN
$PAGETEXT := $PAGETEXT + " Stone tools are used to make other more useful items. From animal skin pelts to the mining of ore stone tools are what gets the ball rolling to make the higher end items."
IF %CLOTHING = 1 THEN
$PAGETEXT := $PAGETEXT + " Clothing shields the wearer from the elements."
END
The green parts work out fine and do what is intended, the red on the other hand has been giving me problems. REASEARCHPT is a counter, whenever you research a technology it will add 1 to the PT and 1 to the variable given to the specific area of research. The page this is used on is basically a scoreboard on what you have accomplished so far. When I first made the code it would only show one block of text and skip the rest, I then tinkered a little more and with this code nothing shows up. Could really use some clarification.
Code has to:
1. be initiated by REASEARCHPT not being zero
2. The block of code has to check all of the variables and add all the ones you have together
Example:
You have invested in commerce. This means that you are no longer a bartering system market. Instead you swap smaller goods to replace the bulky goods. You can use paper, metal, seashells, or anything else that is readily handy and in great quantities.
Clothing shields the wearer from the elements.
that would show up if you researched both clothing and commerce