Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with Custom Dialogue and Smart NPCs? [closed]

Asked by 6 years ago

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.

Closed as Not Constructive by User#21908, Vulkarin, and User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Talveka 31
6 years ago
Edited 6 years ago

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.

0
Thank you so much! iCrestfallen -3 — 6y
Ad