Welcome back everyone. In this video we are going to be editing some scripts inside of our w BP white magic menu to provide proper feedback to the user regarding that white magic is being selected. So find your way on over to this directory double click on w BP w magic menu. This video is going to be pretty simple find your way on over to the Graph tab, not the Designer tab and we want to be on our Event Graph. I know we've got a million tabs open along the top here from all of our various functions and our macro. If you don't see your Event Graph tab along the left hand side with your My Blueprint panel, you can double click on your Event Graph right here.
That'll bring you over to the tab. And here we have all this should kind of be renamed from the last video we just did. So what we're doing here is off of event Now all of our select magic outputs are updated per the last video. Most of the stuff in here is all correct. However, if you follow any one of these flows of execution to the end, you will note that we are setting What magic is slotted into the Big Magic. Remember when I was toggling which white magic was selected and it was showing the wrong sort of image, well, this may have had something to do with it.
So let's go ahead and fix all of these. Let's start off with our no magic selected following that all the way to the top. Everything here is correct for our no magic selected except for this last center. So we can delete that out and out of our player, we want to bring in w slotted get w magic slotted rather set w Magic slotted, make sure your execution wires are plugged in like so, I'm going to bring these do once nodes and all this kind of stuff up here, like we did before. Out of no magic being selected, we're going to set our white magic slotted to be none. And the output of this is going to be set into the reset of the do once node.
Okay, let's bring these on down to our next category here. This is where we were going to be slotting in our Lens of Truth. So let me actually I'm gonna copy of this node right here instead of searching for it all the time. So w magic slot, I'm going to hit Ctrl C. gonna hit Ctrl, V down here. And now I'm just going to plug these all in appropriately. Get rid of be magic slotted here, I want to tell our script that the Lens of Truth is the one that is slotted in remember this variable inside of our BP player just to hammer home the point here.
Let's go into our character BP player. It's in our player info we created this w magic slotted variable and this is an enumeration that we created way earlier in the course and right now its default value is set to none. So this in our w BP magic menu is where we are actually setting it to be one of our different white magic skills. Okay, so bring this on down as well. I'm gonna hit Ctrl V again because I still got my w magic slotted copied. Make sure all these are getting plugged into the do once node right there.
And instead of electrical spark here, I want to set our magic slotted To be the missed Miss name, this is our missed section. Okay, then we're gonna come down to the shield section, hit Ctrl V to paste w magic slotted in here. And let's just make sure that here we slot this to our shield, and this plugs into our do once node. Then last but not least, zooming out a little bit, we got our time slow being selected. So I'm gonna hit Ctrl V to paste Whoops, I don't know what I hit there. Ctrl C Ctrl V to paste another one of our white magic slotted let's set this to be time slow and make sure that this gets done.
Plugged into our do once node as well. That is some of the benefits of being able to reuse an existing Widget Blueprint. All we had to do was swap out a few variables there. And we were good to go. Let's Compile and Save. And how about we give us a quick play?
Shall we go ahead and play and bring on a menu there? Of course, yes, we can't actually see really any difference other than we are showing the appropriate icon in the the HUD area, we actually need to acquire some of these other skills. Let's acquire that Lens of Truth. Let's acquire our myths. And there we see our various icons, and we can set any of those into our HUD suites. Of course, we need to make our mist and our Lens of Truth functional yet we're not going to make the shield or time slow.
Functional because this is already a mess of course but that will come later. All right guys that will do it all for this video. We will see you in the next one