Table of Contents
Shield
Description: When you're attacked by creature, your HP will be deducted less and the creature will be stunned
Preview
Creating features
- Please remember that we have 2 statuses; the 1st status(shield status) will impact the player, and the 2nd status(stun status) will impact the target creature.
Creating status
UI Design
Trigger
Step 1 - You will add a conditional structure to check if it is active or not; if it is false, then activate; otherwise, if it is true, then do not activate.
- You need to create a new boolean variable, and remember that it must be FALSE
- After identifying it's false, we will change to true
Step 2 - I will gain 'Shield Status' for the player
Step 3 - I will turn off the player's permission “Can take damage”
- Note: Add wait time to avoid spam case
Step 4 - Change the boolean variable to false and turn on the player's permission “Can take damage”
Step 5 - Now, our task is to determine if the player is using a shield when the creature attacks, if so then stun the creature, otherwise don't. To do that, we use 2 events
Then, we will check the boolean variables to see if they're true. Remember, THAT IS “TARGET PLAYER IN EVENT.”
After, add the gain status trigger
For questions about Developer Tools, join our official Discord server. Mini World Global DEV discord