Lastly, we're going to MOVE the Screen Picture with the ID number 99 to the Zoom Width% determined by calculate.So far, we're just using Simple Math that we've learned in Elementary School calculate - is a variable that creates a percentage value based off Current and Maximum HP.hp - is a variable that retrieves the Current HP of Party Member #1.mhp - is a variable that retrieves the Maximum HP of Party Member #1.Let's break down this Script that we've created If you would like to add additional Sliders, you will use the following Format:Ĭonditional Branch: Switch = ON.Insert the Script that calculates the HP values and changes the Zoom Width of the Picture.I prefer Comments, because you can use them to describe your actions in great detail, and you can format them so they jump out at you. Create a Comment that lets you know what this Script is going to do.We do not need to do anything if the Switch is OFF. Uncheck the box labeled " Set handling when conditions do not apply".Create a Conditional Branch that executes when Switch HUD: Toggle is ON.Instead, we will only change the Zoom Width% for the HP Slider. In the HUD, we won't be accessing the Background or Foreground Images (if you're using any). This is the Common Event that will hold all of the necessary changes to the HUD, specifically the Slider Data. You could always insert a quick Script snippet that will Show or Erase Images for you. The Common Event can get pretty extensive if you're using multiple images. Questions will be addressed in the Comments If you add additional Images to your HUD, you should Initialize ( Show Picture) and Delete ( Erase Picture) them here. Ideally, you would want to create an Options Scene that does this for you, but for the purposes of this Tutorial, we're going to create an Event that Toggles this Switch ON or OFF. This Common Event will be called when you want to Toggle the HUD ON or OFF. You can use this Common Event to set all default values for your Game as well, but for now, you should only have the following 3 lines in this Common Event: In my Game, this Common Event is used to 1) Turn on the Game Initialize Switch 2) Set a Default Gender 3) Set a Default Game Mode 4) Set Default Settings for the HUD. It should typically hold Switch and Variable data. This Common Event should be used in your Game to set any and all default settings.