Its okay I figured it out i needed to use Then after the if and add another condition
here is the working one if you still want to check it out
Playspace: fort_playspace = GetPlayspace()
AllPlayers: []player = Playspace.GetPlayers()
for (SAgent : AllPlayers):
if:
PlayerStats := PlayerStatsManager.GetPlayerStats[SAgent]
Wins:= PlayerStats.Wins.CurrentValue
Loss:= PlayerStats.Losses.CurrentValue
Print("Wins :{Wins}")
Print("Loss :{Loss}")
then:
if (Wins= 1):
DefsScore.Trigger(SAgent)
if (Wins= 0):
AtckScore.Trigger(SAgent)
Here is the one that was annoying xD
Playspace: fort_playspace = GetPlayspace()
AllPlayers: []player = Playspace.GetPlayers()
for (SAgent : AllPlayers):
if:
PlayerStats := PlayerStatsManager.GetPlayerStats[SAgent]
Wins:= PlayerStats.Wins.CurrentValue
Loss:= PlayerStats.Losses.CurrentValue
Print("Wins :{Wins}")
Print("Loss :{Loss}")
if (NewWinCount = 1):
DefsScore.Trigger(SAgent)
here is the error
