dusteaty
|
  |
| Joined: 14 Feb 2009 |
| Total Posts: 3590 |
|
|
| 27 Feb 2012 11:43 PM |
Is this the Script that I use for a NPC Shop Dialog? I want it to sell a player a certain item depending on which one they choose using the Dialog. Also im quite new to Dialogs, so where would I put it? So far im good with the Dialog Box and choices just not the scripts.
workspace.Dialog.DialogChoiceSelected:connect(function(player,choice) print(player.Name,choice.Name) end)
|
|
|
| Report Abuse |
|
|
|
| 27 Feb 2012 11:49 PM |
Wrong forum, try scripting helpers.
+-Fishy |
|
|
| Report Abuse |
|
|
dusteaty
|
  |
| Joined: 14 Feb 2009 |
| Total Posts: 3590 |
|
|
| 27 Feb 2012 11:52 PM |
| Technically its correct forum, since it has to do with Building aswell as Scripting. |
|
|
| Report Abuse |
|
|
69scott69
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6136 |
|
|
| 28 Feb 2012 02:19 PM |
| Technically that is a script, so try scripting helpers... |
|
|
| Report Abuse |
|
|
|
| 28 Feb 2012 03:53 PM |
Just go to the place you want it [Find "Head"]. Insert>Object>Dialog. (If theres no head insert one Aka middle) Click "DIalog" Go to properties. [Conversation distance: starts 25, change, "Distance of person from dialog"] Now the Initial prompt. It is the starter speech when you click the [?] [!] or [$] (Change color by tone, Friendly=green Nuetral=blue enemy=red) (Purpose (Shop = $) (Quest=!) Help is ? (starts with ?) To add more Insert>Object>dialog choice.
User dialog = Response (List at bottom) Response dialog = What he says to the user dialog. |
|
|
| Report Abuse |
|
|
|
| 28 Feb 2012 05:07 PM |
"Is this the Script that I use for a NPC Shop Dialog?".
Your asking about a script in your first sentence, and then you list a script later. Usually building and scripting are inter-related, but you ask your scripting Q's on scripting forum, and your Building Q's, on here.
+-Fishy |
|
|
| Report Abuse |
|
|
dusteaty
|
  |
| Joined: 14 Feb 2009 |
| Total Posts: 3590 |
|
|
| 28 Feb 2012 09:09 PM |
"I want it to sell a player a certain item depending on which one they choose using the Dialog. Also im quite new to Dialogs, so where would I put it? So far im good with the Dialog Box and choices"
Yes... Hm... Post the Script please..
Its alot simpler just posting the script and everything else. |
|
|
| Report Abuse |
|
|
dusteaty
|
  |
| Joined: 14 Feb 2009 |
| Total Posts: 3590 |
|
|
| 28 Feb 2012 09:10 PM |
@CaptainBlewy
Thanks but I already knew that. o.o |
|
|
| Report Abuse |
|
|