#How would you give a player stregth when they are in a certain region?

1 messages · Page 1 of 1 (latest)

hushed vale
rancid latch
#

kk ty

hard wedge
#

NOOOOO

#

not the skunity docs

rancid latch
#

Can anyone make the skript im not the best at it

#

acually nvm how would i fix this?

#

or how to i spezifiy a region

hard wedge
rancid latch
#
    if "%region at player%" contains "koth":
        apply strength 2 to the player
 
on region exit:
    remove strength from the player```
#

any idea why this wont work?

vast holly
#

apply <potion> of tier <tier> to player for <duration>

hushed vale
hard wedge
#

Skript hub is just better

rancid latch
#

still doesnt work

#

can someone make a skirpt

hushed vale
#
on region enter:
  if "%event-region%" contains "koth":
    apply strength 2 to player

the issue is the "to the player", which should be "to player" (unless that doesnt matter)
and "region at player" should be "event-region" as the event is the player entering the region.

rancid latch
#

alright lemme test it

#

ill let u know

#

it works tysm

warm jay
#
  while region at player contains "Koth":
    apply strength 2 to player for 1 second
    wait 1 second```
#

smth like this

rancid latch
#

doesnt work

#

i just gotta find out how to make them keep the stregth once they pop

#

:/

rancid latch
#

ye

#

like they use the totem

lusty crypt
weary salmon
#
function kotheffect(p:player):
  if region at {_p} = ("Koth" parsed as region)
    apply strength 2 to {_p} for 1 day
    set metadata tag "KothStrength" of {_p} to true
  else if metadata tag "KothStrength" of {_p} is true:
    remove strength from potion effects of {_p}
    set metadata tag "KothStrength" of {_p} to false

on region enter:
  kotheffect(player)

on region exit:
  wait 1 tick
  kotheffect(player)```
bitter grotto
#

dmh

#

smh

warm jay
#

should the server remove the koth anyone who was in it and logged out would have it

weary salmon
#

i mean just add a join event and a condition to check if the koth is on

rancid latch
#

Can u add that?

vast holly
#

Do people not know the definition of no spoonfeeding?

vast holly