-- Zone Traits: everyone in the hill gets traits[0] and a point every -- `interval` seconds; the first to `goal` points ends the round. Set the -- hill's position in the header to a reachable place on the map you play. -- Options are sorted by name: goal = 0, interval = 1. --[=[ mode name = "Zone Traits" mode = "Slayer" [rules] score_to_win = 0 kill_points = 0 death_points = 0 suicide_points = 0 betrayal_points = 0 [options] "rounds.teams" = 0 "rounds.limit" = 1 "rounds.minutes" = 10 [logic.options] goal = { value = 30, min = 1, max = 100 } interval = { value = 1, min = 1, max = 10 } [logic.objects.hill] source = { kind = "zone" } position = [0, 0, 0] label = "objective" shape = { kind = "sphere", radius = 8 } [[logic.megalo_traits]] speed = 7 aura = 4 ]=] alias goal = script_option[0] alias interval = script_option[1] alias pulse = global.timer[0] alias award = global.number[0] on init: do pulse = interval pulse.set_rate(-100%) end award = 0 if pulse.is_zero() then award = 1 pulse = interval pulse.set_rate(-100%) end for each object with label "objective" do for each player do if current_player.is_not_respawning() then if current_object.shape_contains(current_player.biped) then current_player.apply_traits(script_traits[0]) if award == 1 then current_player.score += 1 end end end end end script_widget[0].set_text("Enter the hill; first to %n points", goal) script_widget[0].set_value_text("Next pulse: %n", pulse) script_widget[0].set_visibility(all_players, true) for each player do if current_player.score >= goal then game.end_round() end end