ScoreFlag (Main.sc)

ScoreFlag(flag amount)

Adds an amount to the player’s current score. A flag (one used with BSet(), BClear() or BTest()) must be provided. This ensures that a score is only added once.

Parameters:
  • flag (number) – A flag indicating what this score is for.
  • amount (number) – The amount to add to the score.