Full Version : How do I - Make talking npcs
xmlspawner >>XMLSpawner - How do I? >>How do I - Make talking npcs
<< Prev | Next >>
ArteGordon- 10-28-2007
if you have a space in the filename like "npc file", then that is exactly how you need to refer to it when you load it.
tailor/ATTACH/xmldialog,npcfile
is not the same as
tailor/ATTACH/xmldialog,npc file
Erica- 10-28-2007
Ok im confused remember i xmledit a xmlspawner thats called TownsPeople #31 as you see on picture above so that spawner is laying there or am i suppose to delete that spawner and if so whats the command to load the one in my runuo folder.
ArteGordon- 10-28-2007
[xmledit is a utility for creating and editing xmldialogs.
Once you create or edit an xmldialog, you have the option to save that information out to a file.
You do that from within the [xmledit gump. Look for the "Save to File" dialog at the bottom of the [xmledit gump.
Once you have saved the xmldialog information out to a file, you can load that file into a spawned npc using a spawner entry like the one you showed.
Escortablemage/ATTACH/xmldialog,npcfile
"npcfile" is the name of the file that you saved earlier.
You do not need to use [xmedit on the spawner.
Once you spawn the npc using the spawn entry above, try use [xmledit on the npc to see the dialog information that has been attached to it.
Then you can modify and save that information using [xmledit on the npc as many times as you like and then just respawn the npc.