Ruddle
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 121 |
|
|
| 23 Apr 2015 09:28 PM |
Okay so in my game I want to make it so unless a player talks to lets say Person A, they do not get the dialog option for Person B.
In other words, if a player talks to person B without talking to person A, there will be no dialog choice for them to say anything but once they complete the dialog with person A, they can interact further with person B.
Is there anyway to do this? |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Apr 2015 09:33 PM |
Sorry dont understand. But let me try hear it out... If i want to talk to person B without talking to Person A you cannot get the dialog of Person B. Am i correct? |
|
|
| Report Abuse |
|
|
Ruddle
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 121 |
|
|
| 23 Apr 2015 09:35 PM |
Yes sorry for making it confusing. You must talk to person A in order to get the dialog for person B.
|
|
|
| Report Abuse |
|
|
|
| 23 Apr 2015 09:40 PM |
Basically, he wants to require players to speak to person A to get a dialog option from person B.
This is quite easy to do: Bind a DialogChoiceSelected to person A's dialog, then within the event run a findFirstChild for Person B's dialog. If not found, add the dialog option to person B (to prevent duplicates)
If you need an actual script I could whip you one up, though it might take some time; I don't remember anything about dialogs :[ |
|
|
| Report Abuse |
|
|
Ruddle
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 121 |
|
|
| 23 Apr 2015 09:57 PM |
| Yes the actual script would be amazing but I will try to make it with your advice right now. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2015 10:10 PM |
I'll make a model with the raw basics as an example of how to implement it. If you know rudimentary scripting then you should be able to apply the basic principles to your own dialog.
as long as nothing goes wrong (i.e. roblix not getting the right parameters whenever i call remote functions grumble grumble) |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2015 10:24 PM |
Here ye go.
http://www.roblox.com/Modern-Art-item?id=241380401
Don't hesitate to tell me if you need help understanding the script or if you think I should get mental help. |
|
|
| Report Abuse |
|
|
Ruddle
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 121 |
|
|
| 23 Apr 2015 10:33 PM |
| Thanks a bunch! And I will be sure to haha |
|
|
| Report Abuse |
|
|
Ruddle
|
  |
| Joined: 01 Jan 2009 |
| Total Posts: 121 |
|
|
| 23 Apr 2015 10:36 PM |
| Oh my this is perfect, I'll never do drugs!!! |
|
|
| Report Abuse |
|
|