• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Two NPC with the same name?

BugaS

Donżuan
Joined
Mar 12, 2009
Messages
1,219
Reaction score
9
Location
NYC
Hey guys!

Is it possible to make two NPC with other scripts, but with the same name? TFS 0.4
 
You can make one NPC script with 2 behaviors.
For example when player says "hi" NPC checks it's position and depending on that response in different way.
 
You can have as many NPC with the same name as you want because fileName has nothing to do with the name of the NPC itself.
HTML:
<!--  Donald.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<npc name="MR Donald" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
i dont know how RME handle it, but knowing it it must be aware of what i said.
If you dont mind using script you could do something like doCreateNpc( NAME, POS )
 
Make sure they have different outfits, so when you import them to RME, you can distinguish them by how they look.
 
Make sure they have different outfits, so when you import them to RME, you can distinguish them by how they look.

RME will use the name of the XML file, so you can use npc_thais.xml and npc_venore.xml and they will show up as npc_thais etc
 
Back
Top