player.get_spree_count

This function returns the number of players that the context player has killed without dying.

This function returns number. Calling this function without storing its return value in a variable is an error.

Example

alias opt_kill_points = script_option[1]
alias opt_spree_bonus = script_option[0]

for each player do
   if current_player.killer_type_is(kill) then
      alias killer = global.player[0]
      --
      killer = current_player.get_killer()
      killer.score += opt_kill_points
      global.number[0]  = killer.get_spree_count()
      global.number[0] %= 5
      if global.number[0] == 0 then
         --
         -- This is the player's 5th, 10th, 15th, etc., kill.
         --
         killer.score += opt_spree_bonus
      end
   end
end

See also