Difference between revisions of "A beginner's guide, lesson 6 - Quest Dialogue"

m
imported>Nightlithium
imported>Nightlithium
Line 597: Line 597:
It doesn't stop the quest running. You can repeatedly play the on-screen text by selecting the topic message for you until you get the message
It doesn't stop the quest running. You can repeatedly play the on-screen text by selecting the topic message for you until you get the message


The second problem deals with the script as it currently stands and may not be so obvious to a non-scripter. Remember the quest script works every 5 seconds. That means that every 5 seconds this script adds the topic message4u to the players list. I don't honestly know the effect of repeatedly adding a topic to the player list. I suspect that having done this the first time the rest of the time the script is ignored.  
The second problem deals with the script as it currently stands and may not be so obvious to a non-scripter. Remember the quest script works every 5 seconds. That means that every 5 seconds this script adds the topic BGMMessage4u to the players list. I don't honestly know the effect of repeatedly adding a topic to the player list. I suspect that having done this the first time the rest of the time the script is ignored.  


However, this is still an untidy way to script. If we only want the script to do something once we should write script that does this.  
However, this is still an untidy way to script. If we only want the script to do something once we should write script that does this.  
Anonymous user