|
| 27 Dec 2013 09:04 AM |
I'm playing a bit around with conversations, and I am trying to give the player the choice of saying his/her own name. I've got this code so far:
function changeDialog(player, choice) script.Parent.Dialog.DialogChoice1.DialogChoice1.UserDialog = tostring("My name is" .. player.Name) end
script.Parent.Dialog.DialogChoiceSelected:connect(changeDialog)
I get no errors, but when I test it, I just get the choice of saying "..." instead of "My name is Player1" |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 09:07 AM |
| read dialogues instead of conversations |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 09:10 AM |
| I don't think you can do that with Dialog. |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Dec 2013 10:08 AM |
| Wait! Do you test online in your place or with f6? |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 10:09 AM |
| If you test with f6, its ok, because in f6 your name is Player1 |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 10:10 AM |
| What you're trying to do is totally possible. |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 10:12 AM |
| I think you need to remove tostring |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 10:36 AM |
| Yeah, I don't think tostring is necessary. |
|
|
| Report Abuse |
|
|