Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with Custom Dialogue and Smart NPCs?

Custom Dialogue:

How do you apply text boxes that contains the dialogue of the characters? Like, when ever you click it, you go to the next line. I would also like to know how to customize the dialogue. (An example is Pokemon Brick Bronze’s character dialogue)

Smart NPCs:

I highly doubt this is possible, but is there a way for the NPCs to be smart enough to attack you using certain moves instead of swords, touching, or punching? An example is Super Smash Bros., where the CPUs are smart enough to evade your moves and attack you with melee and physical moves. In ROBLOX Studio, is it possible for NPCs to be that smart? If so, I think it would be great.

Your help will be appreciated.

1 answer

Ive got an idea for the custom dialogue here.

Now here's a script for clicking the character and awakening the conversation. (Make sure you have a ClickDetector in the part)

Put this script inside the part you want to awaken the character from.

local button = (path to button here) -- should be invisible atm
script.Parent.ClickDetector.MouseClick:Connect(function()
	button.Visible = true
end)

The custom dialogue should be easy. The idea behind it is that you have everything for 1 piece of text stuffed in a Frame. If the Frame goes invisible, so does the content inside it. So the script could be really basic, something like this;

local frame1 = (path of your frame here)
local frame2 = (path to next frame here) -- this also should be invisible at the moment
local button = script.Parent
local button2 = (path of button that appears after this) -- this should be invisible at the moment
-- edit the paths

script.Parent.MouseButton1Down:Connect(function()
	frame.Visible = false
	frame2.Visible = true
	button.Visible = false
	button2.Visible = true

end)

This should go into a TextButton, the same one you made visible earlier.

1 comment

0

Thank you so much!

This discussion is preserved as it was. New answers, comments, and votes are closed.