Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 01 Sep 2014 07:39 AM |
How do I make a GUI appear when a dialog choice is selected? And then when a tool called "Book" is found in the inventory, that GUI switches transparency and a new GUI takes its place until the tool called "Book" is not found? This is a bit complicated so please read through.
****IMPORTANT THE TEXT NEEDS TO ALSO APPEAR (EVERYTHING HAS A TRANSPARENCY OF 1 TO START)*****
Wouldnt I start with definitions?
local questgetframe = game.StarterGui.QuestGui.LostBook local questgettext = game.StarterGui.QuestGui.LostBook.LostBookText local Dialog = script.Parent.Parent.Parent.Parent.Parent local questreturnframe =game.StarterGui.QuestGui2.FoundBook local questreturntext = game.StarterGui.QuestGui2.FoundBook.FoundBookText
|
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 01 Sep 2014 06:16 PM |
There may be an event that fires upon dialog selection. Wiki it.
-=Robo=- |
|
|
| Report Abuse |
|
|
connor954
|
  |
| Joined: 24 Jul 2008 |
| Total Posts: 947 |
|
|
| 01 Sep 2014 06:19 PM |
There is.
~My home in the forums is Scripting Helpers...[Twitter: C-RBLX] |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 01 Sep 2014 06:33 PM |
So something like this?
local questgetframe = game.StarterGui.QuestGui.LostBook local questgettext = game.StarterGui.QuestGui.LostBook.LostBookText local Dialog = script.Parent.Parent.Parent.Parent.Parent local questreturnframe =game.StarterGui.QuestGui2.FoundBook local questreturntext = game.StarterGui.QuestGui2.FoundBook.FoundBookText
workspace.Dialog.DialogChoiceSelected:connect(function(player,choice) if choice.Name == "Accept" then questgetframe.BackgroundTransparency = 0 and ---This to questgettext.TextTransparency = 0 until--this will work right? game.Players.Player.Backpack:FindFirstChild("Book") then ---line I am pretty sure will not work and don't know how to fix it.. questreturnframe.BackgroundTransparency = 0 and questreturntext.TextTransparency = 0 until
game.Players.Player.Backpack:FindFirstChild("Book") = nil ---I am not familiar with nil
and I have no idea how many ends there are. I am almost certain that this will not work and need help in fixing it. I am a beginner scripter. Thanks, Cheeso |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 01 Sep 2014 08:01 PM |
| anyone join got answer ro do I have to keep spamming? |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 03 Sep 2014 02:19 PM |
| bumpety. btw look at the last real post. |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Sinblade
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 2782 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 04 Sep 2014 04:51 PM |
local questgetframe = game.StarterGui.QuestGui.LostBook local questgettext = game.StarterGui.QuestGui.LostBook.LostBookText local Dialog = script.Parent.Parent.Parent.Parent.Parent local questreturnframe =game.StarterGui.QuestGui2.FoundBook local questreturntext = game.StarterGui.QuestGui2.FoundBook.FoundBookText
workspace.Dialog.DialogChoiceSelected:connect(function(player,choice) if choice.Name == "Accept" then questgetframe.BackgroundTransparency = 0 and ---This to questgettext.TextTransparency = 0 until --------------****IMPORTANT**** here it says unexpected symbol near =. game.Players.Player.Backpack:FindFirstChild("Book") then questreturnframe.BackgroundTransparency = 0 and questreturntext.TextTransparency = 0 until
game.Players.Player.Backpack:FindFirstChild("Book") = nil |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 04 Sep 2014 04:52 PM |
local questgetframe = game.StarterGui.QuestGui.LostBook local questgettext = game.StarterGui.QuestGui.LostBook.LostBookText local Dialog = script.Parent.Parent.Parent.Parent.Parent local questreturnframe =game.StarterGui.QuestGui2.FoundBook local questreturntext = game.StarterGui.QuestGui2.FoundBook.FoundBookText
workspace.Dialog.DialogChoiceSelected:connect(function(player,choice) if choice.Name == "Accept" then questgetframe.BackgroundTransparency = 0 and questgettext.TextTransparency = 0 until --------****IMPORTANT**** Here it says that unexpected symbol near =? game.Players.Player.Backpack:FindFirstChild("Book") then questreturnframe.BackgroundTransparency = 0 and questreturntext.TextTransparency = 0 until
game.Players.Player.Backpack:FindFirstChild("Book") = nil |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 04 Sep 2014 05:01 PM |
| bump. what is wrong with it? |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2014 05:03 PM |
| I can't script but I am pretty sure there are suppose to be some ends in there :P |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 04 Sep 2014 05:08 PM |
| In output it does not say there should be but....why is it saying unexpected symbol near =????? |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 04 Sep 2014 05:11 PM |
| Oh and this is a local script descended from the dialog... |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|