![]() It is recommended to put your quest stages into a comment block at the beginning of the script, so that everyone may be able to understand it easier. The resulting script is, in the end, very linear and quite easy to understand. Each NPC that is involved in the quest can now get an if-endif block that checks for each quest stage to then display a dialogue. If we structure our quest like this, we are now able to create a script - in a very simple manner. Talked to the guard and accepted a reward Returned the items from the defeated bandits to the merchants Received Instructions to return to the guard Talked to the merchant, accepted the merchants request for help We would have those stages for Q_STOLEN_GOODS: Let's give our quest the key Q_STOLEN_GOODS. Now if we take that rough "script", we can turn it into quest stages. Let the player go back to the guard to receive their reward, which completes the quest.Speak to the merchant again to give back the goods, where the merchant tells the player to go back to the guard for the reward.Let the player go towards the bandit camp and defeat the bandits to gain the merchants goods back.Let the player talk to the merchant, where the merchant tells the player where those bandits are.That Town Guard informs the player that there has been a theft, and that the merchant from whom goods were stolen is looking for someone to get the stolen goods back from the bandits Take a simple quest, for example, that has the player do these things: Quest keys can be used to structure quests into various stages. Quest Keys are, in the end, just sudo char vars that store an arbitrary number, but there are special means to access and work with these quest key In order to better structure your quest, TWU comes with a Quest Key feature. Which should display some of the flexibility and give you ideas on what to do yourself.īefore we take a look at some things, let us first examine how to use quest keys. An NPC that gives a player a random riddle that will send them to the location of a treasure chest, together with an item to open the chest.A quest chain that has multiple steps, together with pointers on what to do on each step when they return to the NPC that gave the quest.An NPC that opens the a merchant dialog when the player selects one option, and tells the player a little tale when they select the other.We'll be going over the following use cases: ![]() TWU Script can be quite versatile, but sometimes it helps to have examples to study what can be done with TWU script. 1.4 Server Guardian - Manual Validation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |