Multipling in skript not working...

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

novastosha

Well-Known Member
Jan 11, 2019
344
21
18
27
SkUnity Street
Hello, i was wondering why the multipling isn't working

set {_example} to {variable} * {variable2}

{variable} = 6
{variable2} = 8

Thanks for answers,
novastosha
 
Hello, i was wondering why the multipling isn't working

set {_example} to {variable} * {variable2}

{variable} = 6
{variable2} = 8

Thanks for answers,
novastosha
Can you show the part of the code where the variables are set?
 
Can you show the part of the code where the variables are set?
set {price::shop::%player%} to {Shop::Item::%arg 1%::%{_item}%::emoji_stuck_out_tongue:rice} * {amount::shop::%player%}
[doublepost=1574195173,1574195000][/doublepost]What??
[doublepost=1574195206][/doublepost]
code_language.skript:
set {price::shop::%player%} to {Shop::Item::%arg 1%::%{_item}%::Price} * {amount::shop::%player%}
 
set {price::shop::%player%} to {Shop::Item::%arg 1%::%{_item}%::emoji_stuck_out_tongue:rice} * {amount::shop::%player%}
[doublepost=1574195173,1574195000][/doublepost]What??
[doublepost=1574195206][/doublepost]
code_language.skript:
set {price::shop::%player%} to {Shop::Item::%arg 1%::%{_item}%::Price} * {amount::shop::%player%}
Well I actually meant the part where the variables you're multiplying are set
 
code_language.skript:
                set {amount::shop::%player%} to 1
                set {price::shop::%player%} to {Shop::Item::%arg 1%::%{_item}%::Price} * {amount::shop::%player%}
 
code_language.skript:
                set {amount::shop::%player%} to 1
                set {price::shop::%player%} to {Shop::Item::%arg 1%::%{_item}%::Price} * {amount::shop::%player%}
How about the other variable (shop item price)
 
code_language.skript:
                set {amount::shop::%player%} to 1
                set {price::shop::%player%} to {Shop::Item::%arg 1%::%{_item}%::Price} * {amount::shop::%player%}
Can you add this debug message right before the multiplication line:
Code:
broadcast "%{Shop::Item::%arg 1%::%{_item}%::Price}% * %{amount::shop::%player%}% = %{Shop::Item::%arg 1%::%{_item}%::Price} * {amount::shop::%player%}%"
 
Can you add this debug message right before the multiplication line:
Code:
broadcast "%{Shop::Item::%arg 1%::%{_item}%::Price}% * %{amount::shop::%player%}% = %{Shop::Item::%arg 1%::%{_item}%::Price} * {amount::shop::%player%}%"
I tryied everything ;( with this debug but still not working
 
Status
Not open for further replies.