Difference between revisions of "Dialogue Tutorial"
added note about topic lists
imported>Neokusama |
imported>Elessar VPR (added note about topic lists) |
||
Line 79: | Line 79: | ||
Now we have two different lines for the topic, but which one will the NPC say? First of all let's ensure that only the NPC we want says the lines, so add the ''GetIsID'' condition to both lines. Now, when determining which line to play, the game starts at the top of the list of info lines and proceeds done until it finds one that satisfies current conditions. In this case, only the top line will ever play, however, we can change that. In the 'Response Details' section of the tab, you will notice a column of checkboxes. The ones we are interested in at the moment are the ones to do with random (i.e. 'Random' and 'Random End'). If you check the random flag on a line of info, the game will check all random infos that appear sequentially in the NPC's list of possible Infos and chose one at random to be spoken. The 'Random End' checkbox is used if you have two sequences of random Infos end up adjacent to one another. An Info marked Random End will terminate the random set even if the next info is also marked Random. | Now we have two different lines for the topic, but which one will the NPC say? First of all let's ensure that only the NPC we want says the lines, so add the ''GetIsID'' condition to both lines. Now, when determining which line to play, the game starts at the top of the list of info lines and proceeds done until it finds one that satisfies current conditions (If a topic has no lines in it that have all their conditions met, then the topic will not appear in the list of options presented to the player.) In this case, only the top line will ever play, however, we can change that. In the 'Response Details' section of the tab, you will notice a column of checkboxes. The ones we are interested in at the moment are the ones to do with random (i.e. 'Random' and 'Random End'). If you check the random flag on a line of info, the game will check all random infos that appear sequentially in the NPC's list of possible Infos and chose one at random to be spoken. The 'Random End' checkbox is used if you have two sequences of random Infos end up adjacent to one another. An Info marked Random End will terminate the random set even if the next info is also marked Random. | ||