Full Version : Usage of Namelist
xmlspawner >>Q&A >>Usage of Namelist
<< Prev | Next >>
Rabenschwinge- 10-20-2007
Hi,
I have a simple question: Can I use Namelists within XMLSpawner?
on a script i would say

CODE
Name = NameList.RandomName( "ancient lich" );

How could i make use of these lists with XMLSpawner?
Xerocrates- 10-20-2007
I haven't understood nothing...
But i think you try to give a random name to an npc right?
Try a entry like that:
Ogre/name/RNDNAME,nametype
Or you can organize one short list on the entry...
Ogre/name/RNDLIST,Mark,Eddy,Jhon,Mike,Lucius,Umbertolas
that will give a random name....
Rabenschwinge- 10-21-2007
I have runUO on d:\data\runuo1.0
in the folger d:\data\runuo1.0\data i can find a file named names.xml
within are namelists:

CODE
<?xml version="1.0" encoding="utf-8" ?> <names> <namelist type="bird"> a wren, a swallow, a warbler, a nuthatch, a chickadee, a thrush, a nightingale, a starling, a skylark, a finch, a crossbill, a sparrow, a towhee,
a woodpecker, a kingfisher, a tern, a plover, a lapwing, a hawk, a cuckoo, a swift
</namelist>
<namelist type="ancient lich">
Kaltivel, Anshu, Maliel, Baratoz, Almonjin
</namelist>
<namelist type="balron">
the Lord of the Abyss, the Collector of Souls, the Slayer
</namelist>
.. and so on ..

These names are yet defined and i would like to make usage of them without the need of hanging a complete namelist on every xmlspawner.
ArteGordon- 10-21-2007
yes, you can use the RANDNAME keyword for that
from xmlspawner2.txt

QUOTE
- added the RANDNAME,nametype keyword for assigning random names to mobs (thanks to brodockbr for the suggestion)

Rabenschwinge- 10-22-2007
Very well - thanks for you help!