#Help

1 messages · Page 1 of 1 (latest)

solid sedge
#
variables:
    {%player%.LumberjackABC} = 5

        
on rightclick on entity:
  if name of entity is "&eLumberTEST":
    if {%player%.LumberjackABC} = 5:
      send "test"     
``` Nothing happends when i right click the npc
runic pulsar
#

debug

solid sedge
#

how

runic pulsar
#

!debug

crimson flickerBOT
#

Debug

Try broadcasting your variables, with broadcast "%{variable}%" to check if they really are set. If you are using variables starting with _, make sure they are set in the current trigger as they do not save between different triggers. Also make sure any conditions in your skript are being met.

solid sedge
#

soo /broadcast {%player%.LumberjackABC} in chat?

runic pulsar
#

no

#

put broadcast {yourvariable} in the code when you right click it

solid sedge
#

Alright when i rightclick it now it says 5

runic pulsar
#

put the broadcast after if name ... is ...

solid sedge
#
  if name of entity is "&eLumberTEST":
    broadcast {%player%.LumberjackABC}
      if {%player%.LumberjackABC} = 5:```
runic pulsar
#

mhm

solid sedge
#

Anyone know the problem?

solid sedge
#

yes

sterile badger
#

I think its sending to the clicked entity

#

You might need to specify you are sending to the player

runic pulsar
#

^

solid sedge
#

hmm how

runic pulsar
#

thats also why its better to use broadcast instead of send when you are testing

runic pulsar
solid sedge
#

ayy it works