Black Magic Menu - Script #4

13 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€94.63
List Price:  €132.49
You save:  €37.85
£79.16
List Price:  £110.83
You save:  £31.66
CA$140.86
List Price:  CA$197.21
You save:  CA$56.35
A$154.79
List Price:  A$216.72
You save:  A$61.92
S$134.37
List Price:  S$188.13
You save:  S$53.75
HK$778.38
List Price:  HK$1,089.77
You save:  HK$311.38
CHF 88.58
List Price:  CHF 124.02
You save:  CHF 35.43
NOK kr1,109.01
List Price:  NOK kr1,552.66
You save:  NOK kr443.65
DKK kr705.86
List Price:  DKK kr988.23
You save:  DKK kr282.37
NZ$170.97
List Price:  NZ$239.37
You save:  NZ$68.39
د.إ367.25
List Price:  د.إ514.17
You save:  د.إ146.91
৳11,988.82
List Price:  ৳16,784.83
You save:  ৳4,796
₹8,438.50
List Price:  ₹11,814.25
You save:  ₹3,375.74
RM448
List Price:  RM627.22
You save:  RM179.22
₦166,661.33
List Price:  ₦233,332.53
You save:  ₦66,671.20
₨27,855.32
List Price:  ₨38,998.56
You save:  ₨11,143.24
฿3,480
List Price:  ฿4,872.14
You save:  ฿1,392.14
₺3,453.83
List Price:  ₺4,835.51
You save:  ₺1,381.67
B$582
List Price:  B$814.83
You save:  B$232.82
R1,810.30
List Price:  R2,534.49
You save:  R724.19
Лв185.12
List Price:  Лв259.18
You save:  Лв74.05
₩139,699.82
List Price:  ₩195,585.34
You save:  ₩55,885.51
₪372.91
List Price:  ₪522.10
You save:  ₪149.18
₱5,865.56
List Price:  ₱8,212.02
You save:  ₱2,346.45
¥15,476.27
List Price:  ¥21,667.40
You save:  ¥6,191.13
MX$2,042.88
List Price:  MX$2,860.12
You save:  MX$817.23
QR365.72
List Price:  QR512.03
You save:  QR146.30
P1,371.53
List Price:  P1,920.20
You save:  P548.67
KSh12,948.70
List Price:  KSh18,128.70
You save:  KSh5,180
E£4,941.27
List Price:  E£6,917.98
You save:  E£1,976.70
ብር12,149.92
List Price:  ብር17,010.38
You save:  ብር4,860.45
Kz91,156.95
List Price:  Kz127,623.37
You save:  Kz36,466.42
CLP$98,029.41
List Price:  CLP$137,245.09
You save:  CLP$39,215.68
CN¥724.13
List Price:  CN¥1,013.82
You save:  CN¥289.68
RD$6,045.02
List Price:  RD$8,463.27
You save:  RD$2,418.25
DA13,352.46
List Price:  DA18,693.98
You save:  DA5,341.52
FJ$227.67
List Price:  FJ$318.75
You save:  FJ$91.07
Q774.81
List Price:  Q1,084.77
You save:  Q309.95
GY$20,979.19
List Price:  GY$29,371.71
You save:  GY$8,392.51
ISK kr13,692.63
List Price:  ISK kr19,170.23
You save:  ISK kr5,477.60
DH1,000.16
List Price:  DH1,400.26
You save:  DH400.10
L1,814.70
List Price:  L2,540.66
You save:  L725.95
ден5,822
List Price:  ден8,151.04
You save:  ден2,329.03
MOP$804.45
List Price:  MOP$1,126.26
You save:  MOP$321.81
N$1,825.19
List Price:  N$2,555.34
You save:  N$730.14
C$3,691.77
List Price:  C$5,168.63
You save:  C$1,476.85
रु13,486.73
List Price:  रु18,881.96
You save:  रु5,395.23
S/380.85
List Price:  S/533.21
You save:  S/152.35
K403.41
List Price:  K564.79
You save:  K161.38
SAR375.33
List Price:  SAR525.48
You save:  SAR150.14
ZK2,754.38
List Price:  ZK3,856.24
You save:  ZK1,101.86
L470.92
List Price:  L659.31
You save:  L188.38
Kč2,392.66
List Price:  Kč3,349.82
You save:  Kč957.16
Ft38,766.07
List Price:  Ft54,274.05
You save:  Ft15,507.98
SEK kr1,098.44
List Price:  SEK kr1,537.86
You save:  SEK kr439.42
ARS$99,839.54
List Price:  ARS$139,779.35
You save:  ARS$39,939.81
Bs693.23
List Price:  Bs970.55
You save:  Bs277.32
COP$448,878.38
List Price:  COP$628,447.69
You save:  COP$179,569.31
₡51,059.73
List Price:  ₡71,485.67
You save:  ₡20,425.93
L2,533.73
List Price:  L3,547.32
You save:  L1,013.59
₲782,779.15
List Price:  ₲1,095,922.13
You save:  ₲313,142.97
$U4,288.31
List Price:  $U6,003.80
You save:  $U1,715.49
zł409.91
List Price:  zł573.89
You save:  zł163.98
Already have an account? Log In

Transcript

Welcome back everyone in this video we're going to pick right where we left off in the last video. That was we were creating a select magic macro inside of our w BP. B magic menu just to make sure we're all on the same page if you took a break between videos, we are here content Metroidvania widgets in our content browser in our w BP be magic menu over in our Graph tab and we were doing work inside of our select magic macro. That is how you can find your way on back here. Now we've gotten to a point where we are ready to branch off of our branch node here true or false, but before we do that, we need to create one variable that we're going to utilize within this macro. So over here in the My Blueprint panel, under the variable section right under the macro section.

Let's Click the plus variable to add one new variable. This is going to be called be selection made. Question mark. And I will put in a tooltip. For this just in case you're wondering what this is going to do, needed to ensure player doesn't simultaneously select two options at once by holding down D and A keys, for example. Maybe that'll help you in the future.

So um, we're gonna compile well it is already compiled, we want our default value here to be false. So ensure that you have that now with this variable made, we can start to build off of our branch here. The first thing we want to do is build off of the true branch. And we're going to be bringing in this variable right away by dragging it into our graph. Do we want to get it? Or do we want to set it, we're going to set this to false.

Saying, hey, if all of these things are true, that none of these keys are pressed down, not a single one, then bringing our output node on closer so I can frame this on the view, then we're going to say the user is not selecting any magic. Now eventually. Now eventually, we're going to utilize this macro in our Event Graph tab, right? We're going to drag and drop this select magic into an Event Graph. And out of here, this is what our macros going to look like. Ultimately, out of here, we're going to be able to do some things.

Right. So we're not at that stage yet that is to come, but just letting you know where we are going with this. So let me delete this for now, jump back to my select magic menu, select a magic tab, macro tab. And so that's what we have. So far, that seems simple enough. Now off the false branch is going to start getting more complicated.

So what we need to do is firstly, bring in a sequence node. And I want to have four possible outputs here. So add two more pins, one and two. And we are going to bring in another branch node. So hit the B key left click and out of the event zero of the sequence. Let's plug this into the branch.

We want to evaluate if there is some condition here. What condition Are we going to use? Well how about we check RB selection made Boolean let's drag and drop that right on top of there. We want to find out has a selection been made if that is false that a selection has not been made then we're going to plug this into a another branch in this branch we're going to check some more stuff What are we going to check? Well the first thing I want to check is if our player we should have a player variable over in your my blueprints panel drag and drop that into our graph get the player we want to find out if he has been magic fireball get has been magic fireball has he learned this? Or I should say she in this case, has she picked up that ability?

I want to check that and I want to check something else. We're gonna be checking to see if two things are true. Does our player have the black magic or the black magic fireball and, and I'm gonna steal some nodes over here I'm gonna come over to my fireball selection of nodes do fireball Yeah, let's go over here I'm gonna left click and drag around all the I don't actually need the knot node so I'm just gonna left click and drag to see if we've got those right there Ctrl C and Ctrl V to paste them right about here. And then out of any of these return values, doesn't matter which one of these you can just simply drag out and type in, or we're looking for an or Boolean. And we want to add three pins here, so 123 make sure all these are hooked up like so.

And then the output of this is going to be plugged into our and so let's just try to understand what we're saying here. We're trying to say back in this way up, our first thing is we're going to check this branch. Are we not pressing down any of these keys? If that is false, that we're not pressing them down, meaning we are pressing something down, we're then going to check. Okay, has this selection been made? And by default, a selection has not been made.

So then we're going to come to this branch and say, okay, does our player have the black magic fireball skill? And are they pressing down one of these particular keys or, in this case, a D pad or left thumbstick? Right. If that is true, then we're going to say, bringing in the selection made setter. If that is true, then we're going to say yes, a selection has been made. Then we're going to take the output of that and plug that into doo doo doo doo doo doo doo.

Plug that into where it is, there it is my output node. We're going to plug it into the fireball selected. So let me try to frame this all up on screen so you can see what we've got going on here. Okay, so I know this is looking rather complicated, but it's really not that bad and we got a lot of copy and paste work ahead of us here. So before I do anything, I want to drag out a marquee selection and kind of highlight that this is our fireball selected group of nodes going to left click and drag right around here. Tap the C key and say fire ball selected.

Okay, now I'm going to move my sequence node down As well as this output node down is we're kind of continuing to work here just so I can keep this all in view. And now all I really need to do is left click and drag around my fireball selected group of nodes, I'm going to hit Ctrl C, then I'm going to Ctrl V once and twice and three times. And then I'm going to rename these appropriately as they start working down. So my next one down that I'm going to be checking here as well. Let's see we've got electrical spark next on our queue. So instead of fireball selected, I'm going to double click here, call this electro spark and then I'm going to make sure I plug this then one out of the sequence node into here and then swap out the appropriate variable.

So here if this is my electro spark selected, I want to find out has electrical Spark. Does our player have the electric spark skill. So swap that out for the fireball. And of course, I don't want to be checking if these are the keys pressed down not for the electrical sparks, I can delete those three out and then over on the left hand side where I've got my electro spark input keys that I'm checking to see if those are down. I'm going to left click, drag out a marquee selection, then right click and copy these. I will right click and I'm sorry, just hit Ctrl V to paste these in over here a little bit easier to do and make sure you plug all these into your Ort node as well.

Then last but not least, you want to make sure that after we've said yes, a selection has been made. We're going to plug this into our electro spark selected. So again, evaluating here just to reiterate, we're going to see hey, are all of these buttons not selected? Is that true? Is that false? If that proves to be false that something is being pressed down one of these keys, we're going to then see which one has been pressed through the sequence.

So first we're going to come through and find out has a selection been made? And no, by default, the selection has not been made. And then we're going to come to this branch and find out okay, does our player have the fireball? And is it one of these keys pressed down. Now, if that is not true, nothing's gonna happen. And then we'll check in our next sequence here, if it is any of these keys being pressed down, or electro sparkies.

And you'll get to see this flow of execution when we actually try to make this work and I hope to show you that once we're finished here, but let's finish this off because I want to get this done within the time constraints. So moving along. Let's come on down to the next section of nosier bringing my sequence and my output node with I'm going to rename This to be blood less selected blood lust selected, hooking my sequence node into that branch. Checking here to see blood lust, get be has been magic bloodless. We're going to see if our player has acquired that skill, that dummy skill because we're not actually going to hook up that ability. And then I'm going to swap out these keys right here.

Left click and drag with our blood less selected possible key selections. Ctrl C there Ctrl V here. Lastly, let's hook up this to our bloodlust selected output node. Pause the video here if you need to, to make sure all this looks good. Then last but not least, let's drag this on down to our last group of nodes here, which is going to be our arctic blast selection, make sure that sequence node is plugged into that very first branch. We're gonna check if our player has arctic blast.

We're gonna get that. Plug that in there. And we're gonna swap out these guys right there with our possible arctic blast. Selection keys. Let's copy that. Control C if you need to Ctrl V to paste those guys down.

And then, whoops. Let's make sure that this is plugged into our arctic blast selected as well. Pause the video if you need here just to make sure all that is looking good. All right now that should do it that wasn't so bad was it just backing up here I'm gonna move our sequence node kind of back into a nor have a more normalized position, if you will, as well as our output node way over here. Yeah, that's a beast right there, but it's gonna get the job done for us. We're gonna start making use of this in the next video but before we wrap this up, let's do one more Compile and Save job well done, guys.

That will do it all for this video. See you in the next one.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.