Jump to content
Rpg²S Forum

*Actor Kill Counter


marigno
 Share

Recommended Posts

Actor Kill Counter


Descrizione


Questo piccolo ma molto utile script permette di contare tutti i mostri/nemici/antagonisti uccisi dall'eroe che s'impersona =).


Autore


Script di Sandgolem



Allegati


///


Istruzioni per l'uso


Come sempre, aprite lo script editor di rmxp, create una nuova classe sopra Main e chiamatela SG Actor Kill Counter, e inseriteci dentro questo script:

 

 

 

#=============================================================================
# ** SG Actor Kill Counter
#=============================================================================
# sandgolem 
# Version 1
# 26.06.06
#=============================================================================
#
# To check for updates or find more scripts, visit:
# http://www.gamebaker.com/rmxp/scripts/
#
# To use this script, copy it and insert it in a new section above "Main",
# but under the default scripts and the SDK (if using).
#
# Have problems? You can leave me a message at:
# http://www.gamebaker.com/users/sandgolem
#
## Per richiedere assistenza italiana, visita: http://rpg2s.net/forum/
#
# Segnalato da Marigno =).
#
#=============================================================================

#--------------------------------------------------------------------------
# * SDK Log Script
#--------------------------------------------------------------------------

begin
  SDK.log("SG Actor Kill Counter", "sandgolem", 1, "26.06.06")
  if SDK.state("SG Actor Kill Counter") != true
	@sg_killcount_disabled = true
  end
  rescue
end

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if !@sg_killcount_disabled
  
class Game_Actor < Game_Battler
  attr_accessor :sg_kills
end

class Scene_Battle 
  def sg_killcheck_add(enemy)
	if @active_battler.sg_kills == nil
	  @active_battler.sg_kills = 1
	else
	  @active_battler.sg_kills += 1
	end
  end
  
  alias sandgolem_killcount_battle_ph4s6 update_phase4_step6
  def update_phase4_step6
	if @active_battler.is_a?(Game_Actor) && @target_battlers != nil	
	  for i in @target_battlers
		if !i.exist?
		  sg_killcheck_add(i)
		end
	  end
	end
	sandgolem_killcount_battle_ph4s6
  end
end
#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end 

 

 

 

Edited by ProGM
Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...