PotatoLord442 Posted April 9, 2021 Share Posted April 9, 2021 I have recently started learning Skript and I am having trouble with a skript. I want to have it so when a zombie spawns, there is a 2% chance it has diamond armor, a diamond sword, and 5 extra health, but I didn't know how to add the chance or how to give it the diamond weapons and armor. Current Code: on spawn of zombie: give a diamond sword to the zombie equip zombie with all diamond armour set the maximum health of the zombie to 15 The zombie gets extra health, but it doesn't have a sword or armor. I also need help making it so when a drowned spawns, there is a 5% chance it could be riding a squid. Current Code: on spawn of drowned: make the drowned ride a squid Help would be appreciated! Link to comment Share on other sites More sharing options...
CoolProgrammer Posted April 11, 2021 Share Posted April 11, 2021 On 4/10/2021 at 4:33 AM, PotatoLord442 said: I have recently started learning Skript and I am having trouble with a skript. I want to have it so when a zombie spawns, there is a 2% chance it has diamond armor, a diamond sword, and 5 extra health, but I didn't know how to add the chance or how to give it the diamond weapons and armor. Current Code: on spawn of zombie: give a diamond sword to the zombie equip zombie with all diamond armour set the maximum health of the zombie to 15 The zombie gets extra health, but it doesn't have a sword or armor. I also need help making it so when a drowned spawns, there is a 5% chance it could be riding a squid. Current Code: on spawn of drowned: make the drowned ride a squid Help would be appreciated! Here is a hint for what you are trying to do : on spawn of zombie: chance of 2%: set event-entity's helmet to diamond helmet Hello there! If you're reading this, hope you're having a wonderful day! Feel free to contact me via Discord (CoolProgrammer#1920) for any help. My DMs are always open for help. You can also message via. forum messages for help. Also, don't hesitate to leave a like on my post if I helped you in any way. Link to comment Share on other sites More sharing options...
PotatoLord442 Posted April 11, 2021 Author Share Posted April 11, 2021 6 hours ago, CoolProgrammer said: Here is a hint for what you are trying to do : on spawn of zombie: chance of 2%: set event-entity's helmet to diamond helmet Thanks! It worked! Link to comment Share on other sites More sharing options...
CoolProgrammer Posted April 11, 2021 Share Posted April 11, 2021 1 hour ago, PotatoLord442 said: Thanks! It worked! Hello there! If you're reading this, hope you're having a wonderful day! Feel free to contact me via Discord (CoolProgrammer#1920) for any help. My DMs are always open for help. You can also message via. forum messages for help. Also, don't hesitate to leave a like on my post if I helped you in any way. Link to comment Share on other sites More sharing options...
Jockerlight Posted April 13, 2021 Share Posted April 13, 2021 to late ..... Link to comment Share on other sites More sharing options...
PotatoLord442 Posted April 14, 2021 Author Share Posted April 14, 2021 On 4/13/2021 at 4:33 AM, Jockerlight said: to late ..... ? Link to comment Share on other sites More sharing options...
JustDogYT Posted April 15, 2021 Share Posted April 15, 2021 They wanted to answer. Link to comment Share on other sites More sharing options...
Jackson85 Posted April 16, 2021 Share Posted April 16, 2021 Question answered. Topic locked. Joined on January 17th 2016 VIP since April 5 2017 - August 1st 2019 JrMod since August 1st Mod since October 1st SrMod since November 2nd - 2/7/21 Patron since February 8 - 3/7/21 Mod since March 8 2021 Retired since idk when If I helped or entertained you at all today, please react with a heart. Link to comment Share on other sites More sharing options...
Recommended Posts