 Hello world, it's the Serpent Scratcher here bringing you another video connecting the world of maths to Scratch. If you haven't already checked the description below, we'll link to previous videos as this one is part of the series. In this video, we're going to be using our Scratch project planner to plan a mathematical or our Scratch game, Wacker Mall. Are you ready? Let's get stuck into it. Okay, so here we are in our remixed Wacker Rule project. What you will need to do once you boot up this project is you'll need to search for the sprite custom rules. It's down next to the rule sprite and it's just an empty one that houses some code that we will use to create our custom rule. Okay, so I've got a little note here that I've created to step you through what you need to do to create a rule. We're going to be focusing on steps one and three in this video. So step one is to firstly define the rule. So to do that we need to create a new variable with the name of your rule in the define rules section. So we do that and we're going to look at step three to create the rule block, make a custom block that checks whether or not the rule has been met. So before we get into our Scratch coding, let's jump across into our planner. Okay, so here we are in the Scratch project planner. You'll see that we've got the empty sprite custom rules down here. We've got our stage. Let's just walk through the variables box over here. So we've got a space here to create our new variable name. This will house our rule. We've also got the answer variable, which is the return value of what the user inputs into this field right here after they press this check mark. I've also got some space here to define a custom block that will have the logic to meet our rule. So let's get stuck into it. The rule that we're going to be creating today is a rule where a number exists between 20 and 30. So to create a variable, that's the first thing we need to do. We're just going to write rule underscore between 20 and 30. Cool. That's for this sprite only. So whenever we get values like this, so on and so forth, this rule for this mole will activate. That's what we're, that's our goal here. So now we need to define our custom block to you. So is between 20 and 30. Now, I hope you can see the link between our custom block name and our variable name. We've actually just taken the part that relates exactly to what our rule will do. So if our answer is between 20 and 30, then we want to do something. And right then that sentence, I've actually just created the code that I will need in scratch. So if, if the answer, and that's our variable name here, if our answer, if this guy over here is between 20 and 30, then pop up the mole. That's exactly what we need to do. Pop up the mole. And that is the essence of what we need to be doing in our scratch project. So what we'll do in our next video is we are going to take this English and we're going to translate it into some scratch box. I'll see you in that one. That's all for this video. In the next one, we're going to take our mathematical rule that we just planned and translated into scratch blocks. Drop me a comment below and tell me what mathematical rule that you came up with and that you're going to put into your game. Hit the like button if you liked this video. Make sure you hit the subscribe button too and the bell so you're notified when another video is released. But until then, I'm off to go find a wave. Take it easy.