-- ReachVariantTool dialect; each living player earns one point per second. -- Compile with: project-reclaimer mode-compile megalo-timed-score.rvt -- --output timed-score.json --name "Timed Score" alias interval = global.timer[0] alias elapsed = global.number[0] declare interval = 1 declare elapsed with network priority high = 0 on init: do interval.set_rate(-100%) end if interval.is_zero() then for each player do if current_player.is_not_respawning() then current_player.score += 1 end end elapsed += 1 interval.reset() interval.set_rate(-100%) end script_widget[0].set_text("Elapsed: %n", elapsed) script_widget[0].set_visibility(all_players, true) if elapsed >= 60 then game.end_round() end