Transcript
UEFN for Storytellers: Mastering the Conversation Device and NPC Spawner · about 5,174 words · timestamps jump thereFrom YouTube's automatic captions, lightly cleaned. Names and game terms can come out wrong.
Hello. Hello everyone. Oh, what a surprise. I see a lot of familiar faces in the audience. I was not expecting. This is pretty cool. Thank you guys for coming. Welcome to UEFN. For the storytellers out here that I want to say is pretty much all of us. Uh I am John Diaz. Welcome. This will be building upon if you were in this room already, this will be building upon the talk that was happening a little bit ago and also this is for the people that will be watching this talk in the future. Uh so for the people that are heavy into UI and UMG, we'll be touching upon some of the things that Joey already spoke about. And then for the people that can't make it because you guys are here, uh there is an adjacent talk happening by my non relative Derek Diaz. They had to put the Diaz's on at the same time, separate them pretty far from each other, but he is going much more in depth in UI. I'll be kind of somewhere in the middle. So with that, I generally like to get a sense of who
is in the audience from I guess who is first time in Orlando. Oh yeah. Okay, great. Yeah. Uh first time at Unreal Fest. Oh, fantastic. Yeah, welcome. Yeah, these are amazing. Like uh I'll be biased, but these are my favorite uh game events. like bang for your buck takeaways, things you learn. The people that come here, right, are generally all people that are on similar tech stacks, right? So, you can't help but to cross-pollinate and share ideas and get inspiration and things of that nature. Um, curious who is here that was a participant in a game jam that happened at Fullale University. All right. Oh, yeah. Well, yeah. Yeah. Yeah. Great to have you, Ian. For sure.
For sure. And Phoebe. Uh, then who all is I like to get a sense of who comes from like an Unreal background. All right. Fantastic. And who is you more UEFN, Fortnite creative side? All right. A good healthy mix. A good healthy hybrid. Fantastic. Um, so I like to start with saying how we are all storytellers. Who who would identify themsel as a storyteller here? Yes, that's what I'm talking about. I want to see all the hands. I want to see all the hands. I want to see them up. I want to see them up. Uh, no matter what you may consider a story, what brings you to this presentation? Um, you know, from writings on cave walls, sharing knowledge to uh, sto we all have a story to tell.
Whether it's how we got here, where we're going, how our trips were, um, the things we're looking forward to, things we write, things we record ourselves, content we create, right? Those are all forms of stories. My story, uh, you know, I'm a New York City native. I've been all around the States working across different studios. I've had some time over in Canada. I graduated from right down the road and fullale around 2006. I come here by way of Sweden. I'm working uh for Epic Games out in Sweden. And um I started as a game designer who's transitioned into tooling. And that's kind of my why. That's kind of what's brought me here to Epic was the opportunity to work on UEFN and help others tell their story on that tool set. What I like to call kind of the next generation of developer, right?
if you walk that transition in the tool set, some might say it was very inaccessible. You had to go to school, you had to learn, you had to have somebody to kind of keep teach you those tools to where we find ourselves today where ideally, you know, and and kind of seeing it this weekend, some people can get kind of a brain dump in a couple of hours and quickly get their idea realized on the UEFN stack, right? like with a couple of clicks and such, you have a multiplayer network game that can be played on PC, on Switch, on Xbox, on PlayStation, and you can quickly kind of iterate that way. building on the idea that we all have stories to you now have tools available to you that allow you to reach as wide of an audience as can go as wide as the world, right? Like, how many times have you seen a video post go viral, right? and you share it because it's funny or engaging or it meant something to you, right? Um, I mention here some of the things that have been worked on and some
of the tools and updates that we've released over the years to help improve what you have access to. So, we have some of the AI tools that we've released over the years. We've have the narrative device. we've released new and in addition to that we have animation updates that we've dropped. Uh so that allows you to bring in whatever character, pose them out, act through them, have them react to anything that happens in the world. And where we come today is now recently uh probably earlier this we have opened up the library of Fortnite characters that you have access to to pick from, right? cuz we kind of have I mean we all have called out the importance of visibility um seeing yourself represented um being able to identify with the character you're playing or the character you're communicating through.
So that was kind of one of the bigger things that we worked towards at the end of last year and a bit more at the beginning of this year. Right? When you open up that tool, you have a pretty much like an infinitely scrolling list of characters to pick from, right? I have yet to see someone kind of get through it all and and uh say that, "Hey, we need more. We want more. One second. I think I have a moment that I'd like to take advantage of." Yeah. I think the big thing to realize as for indie developers right now is like there's massive massive competition in every major genre. And so it's very unlikely that unless you just happen to be the world's best at a particular thing that you're going to release a game in an existing highly competitive genre and win. Um a much better chance of success uh is in releasing something that hasn't been done before being really unique and reaching an audience even if big or medium size or small.
reaching an audience and becoming really popular with that, making some money from it, being able to reinvest and then expand towards your ultimate dream. You know, I think the oneshot uh go from idea to commercial success at massive scale is a lot less likely uh than the multi-step process of continually build better and better stuff over time until you get into a position of excellence. So you heard it from the man himself. Uh and I really resonate with this because we live in a world or basically you live on the platform where um it can be hard to stand out. It can be very hard to stand out. And there's an opportunity that I see where rather than try to fight against the tide, why not kind of carve out a completely different lane, right? You have a much better chance of succeeding, being unique, and finding an audience, no matter what size, than you do trying to kind of magically or luckily land something, right? to be that kind of viral hit that somebody clicks on and checks out and posts
And that's the opportunity that I want to bring to you today is where are the narrative experiences? Where are those really compelling singleplayer tales, right? Where is the epicotic content? Think about the shows that you consume. Think about the things that you're really excited about made by whatever author, whatever creator, whatever interviewer, presenter, right? That you're really eager for their next thing to come out. That's kind of the thought that I propose to you today is building smaller pieces of content that take advantage of these tools that I'm going to walk through to tell a story. No matter what size, big or small, build out maybe a character that someone can attach themselves to and be really interested in their oncoming chapters.
That's the opportunity that I see. Uh, quickly worth touching on to that point of characters, takes advantage of kind of those staple UE tools of the trade, right? like so heavily cinematic, character-driven drama, really state-of-the-art facial capture and animation in all of the performance and the VO. And a lot of people might think that, hey, you need, you know, excise ninja theory, Microsoftbacked studio to put something of that caliber on. And for sure, not to take anything away from the work that they did and we helped a lot on that as well. Um, but we've made those same tools accessible in UEFN, right? So, um, I think it was shown recently that with a webcam, you can record yourself and play it back with some of the Metahuman Animator tools that you have, right? And then I'm going to walk through setting up some VO, triggering it to play, and then using some of our latest devices to kind of tell that tale, right? On Fortnite, we use all the tricks, right? We have cinematics,
we have conversations that you read, that you listen to, that you find in the world when you pick up audio logs, um, and that you can interact with. I think always worth mentioning the gambits that we as game developers have that no other medium has currently is our interactivity. Right? That's the thing that we always have to leverage. they exist in Fortnite, but they're not easy to find. The ones that are easy to find are, you know, the jump in, the running gun, the you die, the wait to respawn, the what happened? I don't know what I'm supposed to do, right? And so this is where I would love to carve out a niche, right? to carve out a lane where people have time to walk through and engage with the world and discover and adventure and find hidden little stories or artifacts in the world or meet new characters, right? And grow with them and even have them as companions and things like this.
I think now would be a good time to go for it all. Put the slide down, open the editor, say, "What the heck? What's the worst that could happen?" And walk through building a little something something. Um, what do you guys think? >> All right. Excellent. Thank you. Let's get it going. Uh, while I get stuff loaded, table setting conversation device. By default, most Fortnite players will immediately be uh will immediately recognize the radio menu, right? So, you have you're limited to like five options or so. You talk to somebody, you can pick from them. Uh, and then the new version is kind of a more modern dialogue window with a bunch more options. And then we have a kind of like a roll your own from scratch.
Ah, I'm immediately at home. Goodbye PowerPoint. All right. Um, yeah. So, I had a good mix of UE and UEFN. So, this is not new to anybody. Fantastic. So, I'm just going to kind of cruise on by and I will do my best to leave a good 10 minutes or so for Q&A. So, anything that comes to mind, write it down and we'll get to it when I get through at least some of the stuff that I want to show. I wonder if it's worth cooking that off while that does its thing. Don't lock me out. All right. Fantastic. Outliner. Okay. So, the star of the show, conversation device. And what I'm really excited about when we dropped this in November is UI. Here we go.
And we have a few in the map, but just want to drag one out into the world. Let's drag one out. And as always in Unreal, you got five different ways to do the same thing. You can add it from your class. I like to generally add it in line on the device where it instantly sets up that link. So down here. Okay. Yeah, not a bad view. Do you guys need me to zoom that at all? Does that look okay to the people in the >> Good. Thumbs up. All right. How about over here? You guys okay? I know we got TVs on both sides, but you guys, I think have the worst view. So, I don't know if you want to slide on over or anything like that. Uh, except All right, cool.
So, right from over here, make a new com. Ah, make a new one. Make a new one. Make a new one. UE Fest Oldtown And so that sets it up already associated. So as soon as I launch in Okay. So nice and blank. Nice and blank canvas. Uh how many of you guys I don't know familiar with behavior trees, conversation trees? Yeah. Okay. Fantastic. It's uh I think so we make it pretty nice and simple, right? Like uh you know UE superpower user everything's exposed enough rope to do all the things to your bodyly to your body and harm yourself with UEFN aims to kind of like you know put some guard rails on and the the uh the bowling bumpers as I like to call it, right? Like you can't gutter the ball too easily, right? So we limit we set you up pretty nicely where you got kind of a handful of nodes to get going, right? So everything starts with this default entry point. A gotcha worth calling out is you can't string two nodes of the same type together.
Um, and then the pretty straightforward. Whatever you want your characters in the world to say go into a speech node and then everything you type in over here. You only have one field again. So, I really love where we started you guys off at, right? Like straight to the point, the bare minimum to get the job done. Uh, and then it's pretty much speech and response, right? Right. So you drag out of there, you get a response note. It's nice and color coded that it's a separate thing and you write the text over here. What I really enjoy is anytime that there is some semblance of blueprint available to you in UEFN, right? Keep the dream alive blueprint in UEFN. So uh some of those familiar paradigms are available to you. So, you know, marquee select and press C to drop a comment.
Um, you have reroute nodes by double clicking on a connection. Uh, so that's really helpful if you end up having something monstrous let me open up another example. My project intro. How about this one? This one's nice and organized. You can tell that someone on the documentation and education side set this up because it's beautifully readable. So, it's not a great example for me to butcher. But you can see how they make use of reroute nodes as opposed to if I if I delete this, is it going to take everything with it? Yes, it will. >> Shift delete, my man. Thank you. Nah, maybe maybe we put the protection on there. Um, but just want to call out some of the the blueprint usuals that are available, right? Reroute nodes, comment nodes, uh, the good old click on the show bubble when zoomed to read things from afar.
pretty much speech and response branches. Okay, branching dialogue, right? So, key point of interactivity having multiple selections, right? Like you love any classic RPG game, you know, you have your like superheroic response. You have maybe your neutral I don't really know which way I want to roll response. And then you have your kind of like maybe more cif aligned dark side response, right? Uh and you know, and then there's shades of gray within there. And uh from any speech node, yeah, from any speech node, you are free to drop out as many different response and those will present themselves as options in the conversation that the player can pick from.
Okay, the game is up and running over here. This is great. Ooh, one call out for the narrative people, the people that want to jump in this. I always love to highly, highly recommend that before you set off to go typing away in editor. Take time to set up your big beats in like a spreadsheet, right? Tried and true, old, reliable. Uh there's a lot of new tools that are pretty slick these days that um people might shout out if you know of any uh because I'm not going to do it on stage from an Epic sponsored event. Uh but let me think. Um yeah, figure out kind of your big beats outside of the editor and that way you get a sense of how things might flow, where your starts and ends are, where your filler is. keep that spreadsheet and also the good thing about it is that it's like um collaboration friendly, right? Like easy to kind of send across, get feedback, iterate on things, change things, and then you might have an agreed upon cadence to like, okay, hey, let's update
every Friday, right? Like let's go in and you know, someone checks out the uh asset and goes and makes all the M um a huge thing for the interactivity and the way UEFN is set up right event binding right that's where kind of the real power in this lies you have the ability to call out a conversation event right now these are limited to 10 I believe. And I think in an update we're going to obviously scale that out. Um, has anybody run into that 10 limit and been like I don't know pissed off or upset? Curious if if to me it seems low, but like if nobody's run into it then I think we're doing fine. >> Okay. Okay. And then have you worked around it by any means or >> Okay. have multiple conversations.
>> Gotcha. Yeah. Yeah. For sure. For sure. Yeah. Yeah. That's what I was going to kind of say is um the the way around it, right, is to you kind of have nested sub trees, right? Where you have, let's say, uh conversation for John, right? But you have John chapter 1, John chapter 2, or John chapter 3, right? And then you kind of drill down. event one goes to conversation two event, right, and kicks that off and closes the the conversation. Um, another way to kind of go about it and generally the way I like to steer people and it will also give me the opportunity to check out something that we call what is it like the UEFN dev assistant. You guys saw this at the keynote.
I got to see how this thing works, man. uh, I do have a prompt prepared, so I am going to cheat. That's what I'm talking about. That's what I'm talking about. Thank you. Uhuh. So, write me a verse device script that takes in a character device reference. When it's interacted with, it will initiate initiative a conversation from a conversation device. Add a handle conversation event function that has a switch statement from one, two, three that will listen to any conversation event. Also, the first event in the conversation will play an audio device and call the characters devices play emote function. Right? Why write verse anymore? I mean, like this is kind of the thing we've been waiting for.
I saw one on Twitter that made me laugh, right? That it was like, "Make me a red versus blue map that makes mad money or whatever." And it's like genius. Genius. That's it. Uh, yeah. So, this does a pretty good job, honestly, like to walk you through the steps, point you to some docs that may be useful, should be useful, and then gives you the code snippet to just copy and paste. And not going to lie, you got to correct it every now and then, but this one looks like it might play. It might just compile and work. Uh, and yeah. So, so back to the point of hand, um, yeah, you have your events that you can call from the dialogue tree. I generally really like to kind of consolidate all of my events in a simple Verse script, right? So that I can kind of see everything. And more often than not, I'm going to duplicate this, right? I'm going to kind of recycle these functions across all of my characters in the world. um and maybe make some modifications here or there, but
generally they're all going to kind of follow the same paradigm, right? So, reusability and scalability is the name of the game really when you get going. let's see how we're doing here. All right, so I think that's everything I wanted to show for the conversation One other gotcha wanted to call out. I've run into situations where you set up the options like you have your your keep going, can you repeat that? I'm done for now. Right off of a speech node and you don't really have any feedback like generally I would expect if I move this over to the left that this would now take the first position as a response. And I don't think that's true. at least when I was kind of running into this yesterday and you don't get any feedback like you do in a behavior tree to say hey this definitely happens first this happens second this happens third I think the way to work around that is you have to detach that right so it's like altclick to break off connections and then it'll remember the order that
you connected them in okay I just want to call that gotcha out we have the different typ types of uh play, launch, save. We have the different types of menus, right? You the radio, the message box, and then the custom. I think now is a good time to jump into the custom widget workflow and set up a UE widget blueprint. So, let's pop one open uh from the same in the outliner I'm just going to go and come down here to its custom motor widget and create a new one and save it off. Widget blueprint custom modal. Oh, I'm in the HL layer. My bad. Not there. This one. I didn't like that. I didn't like that Let me my project. Add UI widget blueprint. Here we go.
Modal dialogue variant All right, here we go. How many of you guys work in widget blueprints? You Oh, fantastic. All right, man. So, we can kind of fly through this. All right. So, for custom me uh dialogue window, you just need a few text blocks, right? Oh, no, no, no. I just kind of jumped the gun there. Um, you guys are are you guys more like free flowing canvas panel type people or you guys like nice grided boxes within boxes in an overlay All right. So, so, so, all right, we're going to go we're going to go best practices mode, right? So, like canvas panel super wizzywig, right? I can drop in boxes and position them wherever and it doesn't get in the way and it doesn't interfere with anything. Um, and it's wonderful and it works, right? However, as your game grows and you have different HUD elements and health bars and timers and mini maps and stuff like that, you try to layer it on.
Um, I think you're going to struggle, right? I think this is where canvas panel and wizzywig kind of falls apart. Uh versus relying on overlays and all the kind of like um constrained pallet items that we have lend themselves much better to to to layers and things like this. So I'm going to replace this with a Uh, we'll drop we'll drop a text box for your like I don't know body. We'll scale this up. Font, something like that. We'll drop a few buttons for your different options. regular, loud, loud, There we go. So, notice here I kind of try to click and drag, try to position it, and it doesn't let me. It slaps my hand, right? And that's kind of what we want. Uh, I'm going to duplicate this a few times. So, we got a few different options.
Uh, you know, kind of like the the hero the neutral response, and the you're like angry, angry, not so happy I think one of the best things we have and that I tend to use over and over and over and over are stack boxes, right? So group select all the elements of a particular type. Um at a high level, we're going to kind of break this down into thirds, right? Left left hand side is going to be kind of the image of your NPC. Middle is going to be the body and the text. And the right hand side is going to be all the different buttons. So, we're going to group select those and wrap them in a stack box. And you get immediately you get some nice behavior with it where it kind of aligns them horizontally.
We can go ahead and change that default by selecting the stack box, throwing it inside, changing its orientation. Uh, we got the body. I'm going to also throw an image over here that's going to take the place of character's face and we'll we'll probably grow that up later. Okay. And then I'm going to take everything and throw it into another stack box. And that's the name of the game really. Boxes within boxes as you guys said. I'm going to push the body over here. image to the left. Let me think. Buttons to the far right. How's that looking? Uh overlay. Let's throw some sample text in here. hey, welcome to the event. You got your responses. We want an image over here.
Uh, let me see if I can grab something. Okay, fantastic. I at least those copied over. All right. Uh, let's go and import some textures. How we doing on time? 14 minutes. All right, let's do this. Uh, import. No. Mega folder uh textures gonna import again. Let me read this project. Jonesy. Yeah, sweet. Bring him in. Bring in my Jonesy. How's this look? Look at that guy, man. Look okay. I think I think I have time. Let me see see if I can make a little flip book real quick. Uh some best practices just cuz I'd feel bad if we didn't kind of walk through these. Uh I think they're a power of two. Let's double check. 1280 720. Let's make these down. Let's bring these down to 256.
uh and then I'm going to make a little texture array. And this will give me that whole kind of library to kind of flip through. Uh save. There's probably some other thing I want to do here. Texture group UI, right? You're just kind of saving memory and optimizing and the such. No maps. Good enough for now. Um, and now we want to make a material off of that. Where'd it go? Texture 2D array. That's what I get for not renaming. T A TS Tsa texture array. Okay, we're going to right click, make a material, and I'm going to do some like material interpolating to kind of get it working. Let me see. Uh, I'm going to change this to user interface. I'm going to set this up to translucent or masked.
Uh, I think bear with me, guys. Texture Um, probably going into a uh vector make vector thing. Make vector append vector. Gosh. See, this is what happens when you become too dependent on AI, man. You don't got them. You start forgetting stuff. Get a time node in here. uh multiply that by some factor. We can call that like frames per second. Just something like I don't know 30. Uh and then I think we have to figure out how many textures we're flipping through. And if I hover over this guy, I can see there's 66 elements in there. So that's the number you want. So I'm going to make another scaler. num frames. Give that the value that we saw 66. Modulate between that and the time.
and I think we can plug into here and hopefully if everything works. Time text cord append frames per second number of frames here. Here. Oh, yeah. This was what was missing. There we go. All right. We got our little flip book. Now we can go back to the widget. assign that material. Uh, how do I grow that guy? I think I can wrap it in a size box. Yes, maybe. Min width, I don't know, 100, 200. Min height Uh, this probably needs to come down. Wrap width size box. Uh, let me see. Overlay the whole thing. Can I pin this? Let me see. Overlay. No. I got my stack box. Can I center pin down? Why is this big? Do I have to wrap it? Wrap it. This will get me. This will get me from time to time. I hope it doesn't happen to you guys.
I'm fighting the auto size because I just want this to Let me see if I compile. No, I want this to be bigger. Stack box size box image size. Will this do it? Kind of >> Oh, yes. Thank you so much. Uh, all right. So, stackbox. I want it to be No, no, no, no, no, no. I don't want that. I want that. I want my size. Okay. Okay. Now it's kind of respecting. Well, it's taking up it's taking up more real estate. Uh, can I >> wrap this whole stack box in overlay? >> Just the image. size to content. >> Size to content, my man. >> Of the overlay. >> Nested. I'm in the child. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. This is the fun. This is the fun. We can be here uh untangling this, getting it to look just right. Um, I think for the intents of the educational part, we laid out the thing.
Um, it's going to map to the conversation device. We got the flip book playing. Um, we got the options. Oh. Oh, okay. Okay. View bindings. I I have to show you guys view bindings and then we'll have five minutes for Q&A. This always got me when I was working in UEIE and I think it's the most important thing I want to show and then I can call it a wrap. Um, oh, it already has a view. Oh, okay. Okay. Okay. The project already has a view model. This is great. So then now that we have kind of the end result where we want the information from the device to display on, we have to set up the view bindings to map the information from the conversation device to these end outputs, right? So like the body text and the buttons, the label for the buttons, right? And so that looks like for each widget, you can come in here when you have something selected, it'll automatically create a widget for you.
And then you want to select which one of its properties you want to overwrite or bind to. So pretty straightforward. For all of these, we're just going to overwrite the text. And then we're going to go into our creative modal dialogue view model. And the key ones that we care about are either body title for the name of the NPC or one of the six buttons that we have access to. Right? So you'll do button one main text and you do that rinse and repeat for each For the for the body is a similar thing. Add text block. Overwrite the text. Select. Come to the view model and make sure that you select the body. And then the same for the buttons and rinse and repeat and compile and set it up. Hook it in. You should play. It should run. I can't get it to run. I'm going to blame uh conference Wi-Fi.
Um, so, uh, thank you for bearing with me, That was not my PowerPoint that I was hoping that it would be when I came through. So, we kind of had to wing it a little bit. So, thank you so much for your patience and helping to get to this point in the presentation. Um, with four minutes left, I love to open it up to Q&A. I want to I do want to end coming back to reemphasizing the opportunity that exists in everybody getting on a platform of choice and telling a story that they have, creating characters, taking advantage of the tools that you have there. Thank you very much. Come on up, man.
Plain text: outofplayarea.com/videos/uefn-for-storytellers-mastering-the-conversation-device-and.txt