#Need help with pvp timer

1 messages · Page 1 of 1 (latest)

turbid grail
#
while player is online:
        set {_health} to player's health
        set {_maxhealth} to player's max health
        if time since {lastHit::%player's UUID%} < 12 seconds:
            set {timer::%player's UUID%} to 12
            loop 
            send action bar "&cHealth: %{_health}%/&c%{_maxhealth}%❤ &f(%{timesince::%player's UUID%}%)"
        else:
            send action bar "&cHealth: %{_health}%/&c%{_maxhealth}%❤"
        wait 2 ticks


on damage of a player:
    set {lastHit::%victim's uuid%} to now
    set {lastHit::%attacker's uuid%} to now
    set {pvp12second::%victim's uuid%} to true
    set {pvp12second::%attacker's uuid%} to true

im trying to make the timer go downward but cant think of how

#

like this: 12, 11, 10, 9

lapis steppe
#

just set timer to 12 seconds, then every second you remove 1 second from it lol

turbid grail
#

it just stucks at 11 and nothing happens idk why

lapis steppe
#

you are just removing 1 from it once

#

you need to do this every second

turbid grail
#

but its while loop

lapis steppe
turbid grail
#
    while player is online:
        set {_health} to player's health
        set {_maxhealth} to player's max health
        if time since {lastHit::%player's UUID%} < 12 seconds:
            broadcast "laba"
            set {timer::%player's UUID%} to 12
            wait 1 second
            remove 1 from {timer::%player's UUID%}
            send action bar "&cHealth: %{_health}%/&c%{_maxhealth}%❤ &f(%{timer::%player's UUID%}%)"
        else:
            send action bar "&cHealth: %{_health}%/&c%{_maxhealth}%❤"

alr let me show you again

lapis steppe
turbid grail
#

how

dawn relic
#

AHAHAHA

lapis steppe
#

set timer to 12
wait 1 second
remove 1 from it

why is it stuck at 11

turbid grail
#

iiiiiiiiiiiiiiiddddk

lapis steppe
turbid grail
#

oh yeah lol

#

sometimes im dumb af

#

now its okay thank you 😉 (〃 ̄ω ̄〃)ゞ

#

(ꈍᴗꈍ)♡

#

ฅ^•ﻌ•^ฅ

#

( ˶ˆ꒳ˆ˵ )

#

( ˶ˆ꒳ˆ˵ )

#

UwU🥺👉👈

dawn relic
turbid grail
dawn relic
#

Please stop this

  • **As you can clearly see @lapis steppe he is being a bit weird. Please stop this. @turbid grail **
lapis steppe
#

ur the one who has ghost pinged him 5 times

#

is this a competition to be weird or something

dawn relic
#

thats all

lapis steppe
#

i wouldnt wanna know him

turbid grail