GlobalVariable.SetValue(GlobalVariable.GetValue() + 1)
if GlobalVariable.GetValue() == 10
Do things
elseif GlobalVariable.GetValue() == 20
Do things
if PlayerREF.IsInFaction(Faction01) != TRUE
PlayerREF.AddToFaction(Faction01)
endif
elseif GlobalVariable.GetValue() == 30
Do things
if PlayerREF.IsInFaction(Faction02) != TRUE
PlayerREF.AddToFaction(Faction02)
endif
etc.