GuesterEXE2 Posted December 8, 2020 Share Posted December 8, 2020 So I'm making a Sell Command but this is the problem. I need a Math Script for it to multiple by the count and the value. Link to comment Share on other sites More sharing options...
_Tarna_ Posted December 8, 2020 Share Posted December 8, 2020 What do you mean Math Script? Skripts itself already has math operators. Use + for addition, - for subtraction, * for multiplication, and / for division. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
notminehut Posted December 8, 2020 Share Posted December 8, 2020 gain = price * quantity Founder - Minehut.xyz The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better. Support | 28/08/20 -13/09/20 Senior Support | 13/09/20 - 19/10/20 Link to comment Share on other sites More sharing options...
GuesterEXE2 Posted December 8, 2020 Author Share Posted December 8, 2020 That kind of helped but you did not show a way that I can add the number in a effect or something then add it to {value::%player's uuid%} Link to comment Share on other sites More sharing options...
GuesterEXE2 Posted December 8, 2020 Author Share Posted December 8, 2020 I meaning setting {number1} then {number2} then multiplying that to {value::%player's uuid%} Link to comment Share on other sites More sharing options...
notminehut Posted December 8, 2020 Share Posted December 8, 2020 set {variable} to {price} * {amount} 1 Founder - Minehut.xyz The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better. Support | 28/08/20 -13/09/20 Senior Support | 13/09/20 - 19/10/20 Link to comment Share on other sites More sharing options...
GuesterEXE2 Posted December 8, 2020 Author Share Posted December 8, 2020 never mind I found that I just needed to set it to {number1}*{number2} Link to comment Share on other sites More sharing options...
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