======Shield====== **Description:** When you're attacked by creature, your HP will be deducted less and the creature will be stunned ---- ====Preview==== {{ :developer_center:developer_editor:trigger_skill:202410161856.mp4 |}} ---- ====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** {{ :developer_center:developer_editor:trigger_skill:202410161856_1_.mp4 |}} **UI Design** {{ :developer_center:developer_editor:trigger_skill:202410161856_2_.mp4 |}} ---- ====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. {{:developer_center:developer_editor:trigger_skill:screenshot_1729074795.png?nolink|}} {{:developer_center:developer_editor:trigger_skill:screenshot_1729074864.png?nolink|}} * You need to create a new boolean variable, and remember that it must be FALSE {{:developer_center:developer_editor:trigger_skill:screenshot_1729075016.png?nolink|}} {{:developer_center:developer_editor:trigger_skill:screenshot_1729075084.png?nolink|}} {{:developer_center:developer_editor:trigger_skill:screenshot_1729075121.png?nolink|}} * After identifying it's //false//, we will change to //true// {{:developer_center:developer_editor:trigger_skill:screenshot_1729075247.png?nolink|}} {{:developer_center:developer_editor:trigger_skill:screenshot_1729075284.png?nolink|}} **Step 2** - I will gain 'Shield Status' for the player {{:developer_center:developer_editor:trigger_skill:screenshot_1729075409.png?nolink|}} {{:developer_center:developer_editor:trigger_skill:screenshot_1729075565.png?nolink|}} **Step 3** - I will turn off the player's permission "Can take damage" {{:developer_center:developer_editor:trigger_skill:screenshot_1729075743.png?nolink|}} {{:developer_center:developer_editor:trigger_skill:screenshot_1729075858.png?nolink|}} * **Note:** Add wait time to avoid spam case {{:developer_center:developer_editor:trigger_skill:screenshot_1729076013.png?nolink|}} **Step 4** - Change the boolean variable to false and turn on the player's permission "Can take damage" {{:developer_center:developer_editor:trigger_skill:screenshot_1729076066.png?nolink|}} **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 {{:developer_center:developer_editor:trigger_skill:screenshot_1729076329.png?nolink|}} Then, we will check the boolean variables to see if they're true. Remember, THAT IS “TARGET PLAYER IN EVENT.” {{:developer_center:developer_editor:trigger_skill:screenshot_1729076751.png?nolink|}} After, add the gain status trigger {{:developer_center:developer_editor:trigger_skill:screenshot_1729076768.png?nolink|}} ---- For questions about Developer Tools, join our official Discord server. [[https://discord.gg/NVRZHBChBt|Mini World Global DEV discord]]