Full Version : error in GETONTHIS
xmlspawner >>Troubleshooting >>error in GETONTHIS


<< Prev | Next >>

Foruno- 02-09-2007
Hello, i want my npc say "Hello, pjName, how are you.

I use this: Hello, {GETONTHIS,Name}, how are you.

but the npc response: Hello, (-null-), how are you.

Any can help me? thx.

ArteGordon- 02-10-2007
if you want it to substitute the name of the triggering player, use GETONTRIGMOB. If you want it to substitute the name of the npc, use GETONPARENT.

Foruno- 02-10-2007
ahh thx xDDD im fukin rooky xDDDDDDDDD

ArteGordon- 02-10-2007
some more info

from xmlspawner2.txt
QUOTE

- added the new GETONPARENT,property and GETONTHIS,property keywords. These are the GET counterparts to the SETONPARENT and SETONTHIS keywords.  For attachments, the GETONPARENT keyword allows access to properties on the object that it is attached to.  This is generally useful when trying to include properties in substitution strings, such as an XmlDialog where you could have a text string like this

Hello, my name is {GETONPARENT,name}

- added the example .npc file "getonparent.npc" demonstrating the use of these new keywords along with an example .xml file "getonparent.xml" to load it in.  Just type "[xmlload getonparent.xml" to try it out.

Foruno- 02-12-2007
yes, i dont remember of this i have actualice the spanis tutorial. thx