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?
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....
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.
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)
|
Very well - thanks for you help!