Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin =========================================================================
- Dekita's v1.0
- ★ Actor Death Counter™ ★
- ================================================================================
- Script Information:
- ====================
- This script simply counts the amount of times your actors have died.
- ================================================================================
- ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
- ================================================================================
- 1. You must give credit to "Dekita"
- 2. You are NOT allowed to repost this script.(or modified versions)
- 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
- 4. You are NOT allowed to use this script for Commercial games.
- 5. ENJOY!
- "FINE PRINT"
- By using this script you hereby agree to the above terms and conditions,
- if any violation of the above terms occurs "legal action" may be taken.
- Not understanding the above terms and conditions does NOT mean that
- they do not apply to you.
- If you wish to discuss the terms and conditions in further detail you can
- contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
- ================================================================================
- History:
- =========
- D /M /Y
- 18/10/2o12 - wrote script,
- ================================================================================
- INSTRUCTIONS:
- ==============
- Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
- ================================================================================
- HOW DO I CHECK AN ACTORS DEATH COUNTER ?
- =========================================
- Easy, simply go to an event, and in the "control variables" section
- put either
- $game_actors[ACTOR_ID].death_counter
- or
- $game_party.members[PARTY_MEMBER_ID].death_counter
- under the "script" option and SET it to a game variable.
- then use \v[VARIABLE_ID] in the text option of an event to display that
- variable.
- If you do not understand, you can check the demo to see this event in action.
- you can find the demo on my blog...
- http://dekitarpg.wordpress.com/
- NOTE: you can also base conditional branches and shit like that on actor death counter
- =end #==========================================================================#
- module Dekita__Actors_Death_Counter
- # THERE ARE NO CUSTOMISATION OPTIONS FOR THIS SCRIPT!
- p 'Loaded : DPBz - Actors Death Counter'
- end # Dekita__Enemy_HP_MP_BASIC
- #===============================================================================#
- # #
- # - CUSTOMISATION END - #
- # #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
- # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
- # YES?\.\. #
- # OMG, REALLY? #
- # WELL SLAP MY FACE AND CALL ME A DRAGON.\..\.. #
- # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
- #===============================================================================#
- $imported = {} if $imported.nil?
- $imported[:Dekita__Actors_Death_Counter] = true
- #==============================================================================
- class Game_Battler < Game_BattlerBase
- #==============================================================================
- attr_accessor :death_counter
- alias death_counter_init initialize
- def initialize
- death_counter_init
- @death_counter = 0
- end
- alias death_counter_die die
- def die
- death_counter_die
- @death_counter += 1
- end
- end # Game_Battler < Game_BattlerBase
- #==============================================================================
- class Game_Actor < Game_Battler
- #==============================================================================
- alias setup_death_counter setup
- def setup(actor_id)
- setup_death_counter(actor_id)
- @death_counter = 0
- end
- end # Game_Actor < Game_Battler
- #===============================================================================#
- # - SCRIPT END - #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement