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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
command /test1:
trigger:
add player to {test1::*}
command /test2:
trigger:
add player to {test2::*}
command /test3:
trigger:
if {test1::*} or {test2::*} contains player:
broadcast "he is added"
if "%{test1::*}% %{test2::*}%" contains "%player%":
i guess the comparison is still broken on ExpressionListshm ya it doesnt i tested with
@Pikachu explain yourselfcode_language.skript:command /test: trigger: add "cool" to {test1::*} add "hey" to {test2::*} if {test1::*} and {test2::*} contains "cool": send "hi"
function contains(l: objects, v: object) :: boolean:
loop {_l::*}:
if loop-value is {_v}:
return true
return false
on script load:
set {_123::*} to 1, 2 and 3
set {_456::*} to 4, 5 and 6
if contains(({_123::*} and {_456::*}), 4) is true:
broadcast "contains dude"
I will use this one. Thanks to both of you. appreciate the help. can you make this example so it will check if a player is added?i guess the comparison is still broken on ExpressionLists
works as expectedcode_language.skript:function contains(l: objects, v: object) :: boolean: loop {_l::*}: if loop-value is {_v}: return true return false on script load: set {_123::*} to 1, 2 and 3 set {_456::*} to 4, 5 and 6 if contains(({_123::*} and {_456::*}), 4) is true: broadcast "contains dude"
if contains(({test1::*} and {test2::*}), player) is true:I will use this one. Thanks to both of you. appreciate the help. can you make this example so it will check if a player is added?
[doublepost=1525818082,1525817994][/doublepost]for the 2 list variables and not local ones.