What is the Action field?
Every XmlDialog entry (the stuff in .npc files that you can access with the [xmledit command) has 4 basic activation features.
1) The Keyword field that lists the set of possible strings that the player must say in order to activate the entry
2) the Condition test that must be passed to activate the entry
3) the Text field that is the text that will be displayed when the entry is activated
4) the Action field which is the action that will be taken when the entry is activated
Not every entry has to have all of these set. If they arent set, then they simply wont be used.
The Action string can basically be anything that can put in an xmlspawner entry. So you can spawn objects, give items, set properties, etc.
You can also specify multiple actions in the Action field of an XmlDialog speech entry. Just place them in the Action string separated by semicolons. For example, using an Action string like
GIVE/gold,500 ; GIVE/platehelm
would give the player a platehelm and 500 gold when that entry was activated.
Qu'est-ce que la case action?
Chaque entrée de XmlDialog (les lignes de commande des fichiers .npc auquels ont accede via la commande [xmledit) a 4 dispositifs de base d'activation.
1) le champ de mot-clé qui énumère l'ensemble des mots que le joueur doit dire afin d'activer l'entrée
2) le test de condition qui doit être rempli pour activer l'entrée
3) la zon de texte qui est le texte qui sera montré quand l'entrée est activée
4) le case action,qui est l'action qui sera effectuée quand l'entrée sera activée
Toutes les entrée ne necessitent pas d'être remplies. Si elles ne le sont pas, elles ne seront tout simplement pas utilisées
La case action peut tout simplement etre n'importe quelle commande utilisée dans le xmlspawner. Ainsi vous pouvez créer des objets (ADD/), donnez des articles (GIVE/), placer des propriétés (SET/), etc...
Vous pouvez également indiquer des actions multiples dans la case action d'une entrée de XmlDialog. Il suffit allors de mettre un point virgule ( ; ) comme séparateur de codes.
GIVE/gold,500 ; GIVE/platehelm
donnerait au joueur un platehelm et 500 gold quand cette entrée serait activée.