wmwmwmwmmwmwwwmm Posted August 9, 2020 Share Posted August 9, 2020 I was thinking of creating a shop GUI but i don't know how to make it check for "diamonds" then take a certain amount of diamonds from the players inventory and give a potion with potion effects Link to comment Share on other sites More sharing options...
0 _Tarna_ Posted August 9, 2020 Share Posted August 9, 2020 You could do set {_d} to amount of diamonds in player's inventory remove 5 diamonds from player's inventory The first line sets {_d} to how much diamonds a player has. And the 2nd is how to remove diamonds from a player. Also next, time ask for skript help in the skript category. https://forums.minehut.com/forum/18-discussion/ 1 Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
0 wmwmwmwmmwmwwwmm Posted August 9, 2020 Author Share Posted August 9, 2020 29 minutes ago, _Tarna_ said: You could do set {_d} to amount of diamonds in player's inventory remove 5 diamonds from player's inventory The first line sets {_d} to how much diamonds a player has. And the 2nd is how to remove diamonds from a player. Also next, time ask for skript help in the skript category. https://forums.minehut.com/forum/18-discussion/ If i did this would it check see 4 diamonds then it would stop or would it still try to remove 5 and then give the potion Link to comment Share on other sites More sharing options...
0 _Tarna_ Posted August 10, 2020 Share Posted August 10, 2020 40 minutes ago, wmwmwmwmmwmwwwmm said: If i did this would it check see 4 diamonds then it would stop or would it still try to remove 5 and then give the potion The thing i gave were just some examples. You would do set {_d} to amount of diamonds in player's inventory if {_d} > 5: # stuff if player has more than 5 diamonds remove 5 diamonds from player's inventory else: send "not enough diamonds" Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Question
wmwmwmwmmwmwwwmm
I was thinking of creating a shop GUI but i don't know how to make it check for "diamonds" then take a certain amount of diamonds from the players inventory and give a potion with potion effects
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now