Damge by var is 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.

zeibo

Member
May 16, 2017
11
0
0
27
ver. 1.13.1 | skript beta.2 | skquery 3.6.2

working
code_language.skript:
make attacker damage victim by 5

not working
code_language.skript:
make attacker damage victim by {_test}
code_language.skript:
make attacker damage victim by {test}
code_language.skript:
make attacker damage victim by {test.%attacker%}

Can it be solved by other ways?
 
Last edited:
Show the code where you are setting those variables
Also I recommend updating to 1.13.2 and 2.3-beta5
 
that's all of the code.

code_language.skript:
on damage:
    if attacker is a player:
        if victim is not dead:
            wait 3 ticks
            if {class.%attacker%} = "warrior" or "nothing":
                set {_moredamage} to {moredamage.%attacker%}*0.75
                    make attacker damage victim by {_moredamage}

I don't want to update now, cuz there're some bugs in that beta5.
I'm waiting for beta6.
 
Last edited:
that's all of the code.

code_language.skript:
on damage:
    if attacker is a player:
        if victim is not dead:
            wait 3 ticks
            if {class.%attacker%} = "warrior" or "nothing":
                set {_moredamage} to {moredamage.%attacker%}*0.75
                    make attacker damage victim by {_moredamage}

I don't want to update now, cuz there're some bugs in that beta5.
I'm waiting for beta6.
Why do you have random intendation at line 7?
Also are you sure {_moredamage} is set?
 
Why do you have random intendation at line 7?
Also are you sure {_moredamage} is set?

I found the reason

I can't do this
code_language.skript:
set {_test} to {test2}*0.75
make attacker damage victim by {_test}

I have to do this
code_language.skript:
set {_test} to {test2}
set {_test} to {_test}*0.75
make attacker damage victim by {_test}

This is really weird. @@
 
Status
Not open for further replies.