Posts: 100
Threads: 18
Joined: Jan 2010
Reputation:
0
Is it possible and if is then how ?
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
It is, but not native.
Create a global string for a specific dialog and put the listitem text in it when showing the dialog.
In OnPlayerDialogResponse use a separatorfunction, something to get a single line (element) of the string by its index and you got it. There might be such a function somewhere here in the forum, else it shouldnt be hard to make one yourself.
Posts: 973
Threads: 11
Joined: Mar 2008
Reputation:
0
Well when you get a response, it gives you the ID of the listitem. If you used an array to build the dialog, use it as an index. If you used static text, make a switch statement based on the id (since its static text, you have to make this part static as well).
If you need me to go more indepth, PM me.