#1v1 match
1 messages · Page 1 of 1 (latest)
set {var} to "hello"
Yes but that requires knowing two players
If you just have a variable that only requires knowing the hit player, then it's easier to deal with
Mhm
Yep
You did say that yes
What's your question
No, it wouldn't
set {match::%playerA%} to playerB``` and vice versa
It's kind of a mess
Gimme a sec
# mark two players as being in a duel:
set {match::%playerA%} to playerB
set {match::%playerB%} to playerA
# Is playerC in a duel?
if {match::%playerC%} is set:
# yes!
else:
# no!
# Is playerB the opponent of playerA?
if {match::%playerA%} is playerB:
# yes!
else:
# no!
# end the duel:
delete {match::%playerA%}
delete {match::%playerb%}```
some random player
who cares
depends on what you're doing
these are just examples of how to use the variables
yeah that's what this is for
i would remove the arcade var entirely
but otherwise good
well what do you want to do next
ok so you have an on damage where 1 player is attacking another
you want to check if the victim and attacker are both in the same match, right?
ignore the whole abc thing rn
we just have attacker and victim
you have this useful thing
just replace a and b with attacker and victim
then you know whether they're in the same match or not
sure
you of course have to do something in the if, but otherwise yes
you also should check if someone's already in a match in the first on damage