of     1   

Alpha31451
#182522731Wednesday, January 27, 2016 10:45 PM GMT

Hello, I'm pretty new at scripting, however I wanted to make a system of dialog that would immersion to a game, that does not seem to difficult to make. I'm sort of familiar with the way scripting works, and I'm trying to make a system of dialog that uses global variables to change what NPC's say. An example would be that a character could ask the player if they've seen the creepy cave over in the distance. Once in the cave, a touched function could be used to change a global variable. Upon returning to the NPC, they would say something different since you visited the location and changed the global variable. The issue is that, being new at scripting, I'm not sure where to start with such a system, however it does not seem like this would be too hard to make overall. I also have yet to see a model that sort of had this set up already. Any and all help, greatly appreciated!
ADM1RA1AB0RTION
#182522948Wednesday, January 27, 2016 10:48 PM GMT

Funny! I'm actually doing a dialog system right now. I'm storing the dialog in ReplicatedStorage, and loading it in to the dialog GUI whenever you chat with the NPC.
PureConcept
#182522999Wednesday, January 27, 2016 10:49 PM GMT

If you are not using GUIs use Chat service http://www.roblox.com/Schwarzesmarken-Opening-TV-Size-item?id=345656154 #code "Let's just say goodbye"
Alpha31451
#182523298Wednesday, January 27, 2016 10:53 PM GMT

Yeah I'm using the normal Roblox dialog, however being so new to scripting, I'm still trying to figure out how to make dialog work with scripting and all the functions I can use.
Alpha31451
#182532730Thursday, January 28, 2016 1:29 AM GMT

bump. really need some help please!
Alpha31451
#182533822Thursday, January 28, 2016 1:46 AM GMT

haveitem = 0 script.Parent.DialogChoiceSelected:connect(function(player,choice) end) if haveitem == 1 then script.Parent.ResponseDialog.Value = "Well look at that!" else if script.Parent.ResponseDialog.Value = "You don't have anything..." end end) I have this so far, and I'm not sure what's wrong. The idea is that going somewhere else and obtaining an item will set the haveitem variable to 1, however the value should start out as 0. I can't get the Response Dialog to change. This script is a normal script inside the DialogChoice object. Thanks!

    of     1