I’m really struggling with how to implement a dialogue system into my game, watched a couple of YT tutorials that was not what i needed and even thought about buying a code plugin but the one that caught my attention isn’t updated for 5.4 yet… also this is my first time making a game with UE5, coming from Unity it’s one hell of a ride and it was quite easy designing the Lvls and jumpscares and stuff but i wrote a story that i can’t implement into the game made for it, bcz believe it or not, this is the hardest system to implement for me (:P), pls help!
I’m curious if you are looking for the typewriter effect or the dialogue system because your title asks one thing but your body asks another. I’m going to assume it’s the dialogue system as I think there are a few typewriting effect tutorials already on the internet.
Basically there is a lot of different ways to achieve a dialogue system and there probably are a few good tutorials out there that can show different ways of achieving this. In my personal opinion the easiest way to achieve it is to use Data Assets. Basically each data asset can store a line of dialogue, the character saying that, and anything else you need in a single line of dialogue. Then what you can have in each data asset is a variable that can point to the next data asset.
This is kind of a pain to actually use though if you are creating long dialogues, however, beats going into c++ and using Slate to create a custom editor which is cool but only recommended if you are on a big project and the game is based around dialogue!
What this ends up looking like in game though is that you feed a data asset into some sort of dialogue manager which could be an actor or a subsystem if you have access to c++ and the dialogue manager can manage the displaying of the data inside of the data assets. If you want choices you can make a choices variable. The theology is pretty simple, obviously the implementation is going to be a different.
Hopefully that’s enough to give you a start and hopefully I answered the right question that you were asking.
well it’s quite a big project but this is just a demo for it, the tutorials on YT isn’t really what i needed unfortunately but yeah maybe a data base or a C++ code would work thanks for your answer tho <3
Hey @Grespy1! Welcome to the Forums!
A few questions so I am clear what you are asking. Specifically, are you struggling with the typewriter effect for the dialogue or the system as a whole? What have you tried so far? Would you mind sharing what went wrong/did not work when trying to implement the videos you watched?
Any additional specifics or information you provide will go a long way in solving your problem!
Hi @Quetzalcodename
i’m struggling with the system as a whole, and for what went wrong
- I tried to make it into a Component but it was working good but it was saying only one sentence like if i wanted to say “Hello” then “How’re you” as separate messages it wouldn’t work and i couldn’t fix this one (this was my solution without videos).
*Found a couple of youtube suggesting a couple of Blueprints which wasn’t really what i was looking for but they work for now so i don’t stop the project, and if i found a solution i would edit the dialogue system as a whole… my problem with the solution i found is, the FULL text just appear randomly, which kind of work good since i have a couple of my friends voicing the characters buut, it looks so weird compared to the rest of the game…
also the Dialogue ends automatically instead of when you press the Interact button.
and last sometimes if you kept pressing the E button the text get smashed together making a random mash of letters.
yeah, i think that’s all, sorry if i’m a little unclear
Hey @Grespy1,
Are you not wanting to use blueprints but instead use only C++? Could you share what you have so far so we have a better understanding of what may be happening with the random text? In the meantime, check out these non-Epic affiliated tutorials that could give you the bones needed when combined to get what you are looking for:
Let me know if these work for you.
well the 2nd video was the closest to what i wanted, thank you for recommending these!.. but i’ll have to wait for the plugin i want to update to 5.4 and change all this again! but as a temporary solution this one works well tbh… i would prefer using mostly blueprints since as i mentioned i came from using Unity with C# and C++ is a little too confusing for me at the moment… but thanks a lot @Quetzalcodename
Hello,
if my understanding is right you would like to use a typewriter effect for your dialogue system.
I think you could use my asset I have published recently to accomplish that.
It is totally blueprint and you just need to configure the input pin and output pin and use it for the dialogue system. If you need support I am available on discord as well.
Take a look if you want: https://www.unrealengine.com/marketplace/en-US/product/advanced-typewriter-effect