A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
naknak
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
Supernapalm
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
m27frogy
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
slayer9365
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
myrco919
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
branefreez
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
ninga95
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
CloneTrooper787
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
raboy117
Blueymaddog's Dialog NPC tutorial Vote_lcapBlueymaddog's Dialog NPC tutorial Voting_barBlueymaddog's Dialog NPC tutorial Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
Blueymaddog's Dialog NPC tutorial EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
Blueymaddog's Dialog NPC tutorial EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
Blueymaddog's Dialog NPC tutorial EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
Blueymaddog's Dialog NPC tutorial EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
Blueymaddog's Dialog NPC tutorial EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
Blueymaddog's Dialog NPC tutorial EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
Blueymaddog's Dialog NPC tutorial EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
Blueymaddog's Dialog NPC tutorial EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
Blueymaddog's Dialog NPC tutorial EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
Blueymaddog's Dialog NPC tutorial EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
Blueymaddog's Dialog NPC tutorial EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
Blueymaddog's Dialog NPC tutorial EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
Blueymaddog's Dialog NPC tutorial EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
Blueymaddog's Dialog NPC tutorial EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
Blueymaddog's Dialog NPC tutorial EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
Blueymaddog's Dialog NPC tutorial EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
Blueymaddog's Dialog NPC tutorial EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
Blueymaddog's Dialog NPC tutorial EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
Blueymaddog's Dialog NPC tutorial EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
Blueymaddog's Dialog NPC tutorial EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 Blueymaddog's Dialog NPC tutorial

Go down 
2 posters
AuthorMessage
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 26

Blueymaddog's Dialog NPC tutorial Empty
PostSubject: Blueymaddog's Dialog NPC tutorial   Blueymaddog's Dialog NPC tutorial EmptyDecember 9th 2010, 8:15 am

I've seen some people making threads on how to use dialog chat bubbles so I decided to make a tutorial!!!

Part 1: making that chat bubble appear above something!

select the part you want to talk in the explorer then insert a dialog into the part. Insert>Object>Dialog

Dialog properties:
ConversationDistance - how close you have to be to talk. Measured in studs.
InUse - true if NPC (non player character) is being talked to.
InitialPrompt - what the NPC first says when a player starts chatting to it.
Purpose - sets the icon in the dialog when NPC isn't chatting.
Tone - sets the color of the dialog

The rest are just global variables. Eg. Name, Parent, className...

Part 2: Choices!
If we just put a dialog that says one thing when you chat to it it wouldn't be that great. Why not make it more exciting by respond to what it says with a few options to choose from!

I will be introducing another instance type called DialogChoice.


Select the dialog and insert a DialogChoice instance. Insert>Object>DialogChoice

DialogChoice properties:
ResponseDialog - what the NPC says in reply to what the choice is.
UserDialog - the choice you see near the bottom-left of your screen.

The rest are global variables.

You can put more than 1 choice/reply within a dialog. And make choices inside choices!!!
1 last thing before I make a dialog shop example.
There is a special event for Dialog. It's .DialogChoiceSelected. It triggers when you click a choice. It's useful for quests and shops.

Part 3: Shop Example

Structure of the game:
-game
--Workspace
---Base - Part
---Part - Part
----Dialog - Dialog
-----Script - Script
-----Weapons - DialogChoice
------Sword - DialogChoice
--Lighting
---Sword - Tool

Script:
---------------------------------------
tool = game.Lighting.Sword:Clone() -- sword tool

function onDialogChoiceSelected(player, DialogChoice) --triggers when someone chooses a choice
if DialogChoice.Name == "Sword" then
tool:Clone().Parent = player.Backpack
end
end

script.Parent.DialogChoiceSelected:connect(onDialogChoiceSelected)

----------------------------------------
Rate and comment my tutorial!!!

-blueymaddog-
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

Blueymaddog's Dialog NPC tutorial Empty
PostSubject: Re: Blueymaddog's Dialog NPC tutorial   Blueymaddog's Dialog NPC tutorial EmptyDecember 15th 2010, 6:45 pm

Nice. Did you write this?
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 26

Blueymaddog's Dialog NPC tutorial Empty
PostSubject: Re: Blueymaddog's Dialog NPC tutorial   Blueymaddog's Dialog NPC tutorial EmptyDecember 18th 2010, 8:30 am

Yes, I made a thread on the Scripting Helpers forum on roblox of this tutorial and it had some errors in the tutorial so I posted the fixed version here.
Back to top Go down
Sponsored content





Blueymaddog's Dialog NPC tutorial Empty
PostSubject: Re: Blueymaddog's Dialog NPC tutorial   Blueymaddog's Dialog NPC tutorial Empty

Back to top Go down
 
Blueymaddog's Dialog NPC tutorial
Back to top 
Page 1 of 1
 Similar topics
-
» Tutorial on: 'for' loops
» Instance.new() tutorial
» Metatables Tutorial
» LocalParts
» Data Persistence Tutorial [ Numbers Saving ]

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Tutorials and Resources :: Intermediate-
Jump to: