01-05-2010, 09:49 AM
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:
Codice:
#=============================================================================
# ** 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