Full Version : Target on Xml dialog, GetVar By a Word of pg
xmlspawner >>Q&A >>Target on Xml dialog, GetVar By a Word of pg


<< Prev | Next >>

Xerocrates- 10-18-2007
Hello, Various Question smile.gif


-I can make by a XmlDialog a target by mouse?
or i must allways use GETONNEARBY,1,*,basemobile,condictiontest
dha, my english is orrible...

Example:

Follow This *targeting by cursor* *Click on the npc to follow*

i hope is better understable...




-I Can Set a Var by a word Sayed by a player?

example:

"Hi Xerocrates, what's your's Nickname?"
"Xero"
SETVAR,nickname/"Xero"


-Is possible get one part of a Get or I must take always all of the props?

If i want take only until the 6th letter, or only the first word...




Tnx for any help, Bye smile.gif



Xerocrates- 10-20-2007
? *sigh*

ArteGordon- 10-23-2007

QUOTE

I can make by a XmlDialog a target by mouse?


I'm afraid that there is no targeting ability in xmldialogs. It is something that I have considered but there is no immediate plan for it although it is still on the list of possible features.

QUOTE

I Can Set a Var by a word Sayed by a player?

example:

"Hi Xerocrates, what's your's Nickname?"
"Xero"
SETVAR,nickname/"Xero"


To access the speech text that activated an xmldialog entry, refer to the ResponseString property on the xmldialog, like

SETVAR,nickname/{GETONTHIS,responsestring}

QUOTE

Is possible get one part of a Get or I must take always all of the props?

If i want take only until the 6th letter, or only the first word...


Currently there are no keywords that let you parse strings, but that is a good idea. I'll think about adding that.