MADE BY BLIZZARD
ID = 26
class Scene_Battle
alias main_dt_later main
def main
@td_flag = 0
main_dt_later
end
alias upd_dt_later update
def update
@td_flag = $game_troop.enemies.size if @td_flag == 0
upd_dt_later
end
alias battle_end_td_later battle_end
def battle_end(result)
battle_end_td_later(result)
count = 0
for enemy in $game_troop.enemies
count += 1 unless enemy.exist? or enemy.hidden
end
$game_variables[ID] += @td_flag - count
end
end
QuoteSet ID to the variable ID you want to use to store the number of killed enemies. Tell me if it works. I'm in a college lesson right now and made that out of my head, but it should work. To show the number just use in a message \v[X] where X is the same number as you set ID.
Can this go in database? PLEEASE! ;D
we need permission for something to be in database?
I don't know how I did it before but the NEW TOPIC button is gone...
crap It is!i guess they will move it there if they think it should be.
Hey blizzard... pleease put it in...
Lol, I'm not gonna put these few lines of code into the database. It's embarrasing! :=
AND FINALLY SILVERLINE REMOVED THE NEW TOPIC BUTTON FROM THE DATABASES!
That's script Discrimination!
you should love all your children blizzard!
:'( <-- this is your script
No, you got it wrong. It's not a script, it's an add-on. I love all my scripts and add-ons, but because it's not a script, but an add-on it can't be in the Scripts Database. Same reason why my Window_BattleResult add-on isn't there.
I consider codes with less than 100 lines of code and a complexity of very low to low as add-ons.
:'( still
then we need a addon archive! ;D
We really should get a script list in the script database, so even the smallest of scripts can be in there.
there is :-\ I made it remeber...
well, no not like the one you made like this:
Have a fourm script listing, with all scripts made in this fourm:
Frourm script listing:
Add-ons:
1. Death Toll
CBS:
1
CMS:
1
2
3
something like that
This is a great script idea!
Now, how would I go about setting it so that it will work for each individual character? And also to have it show in their status screen?
I will release the add-on collection "Tons of Add-ons" tomorrow and put it right into the database. Doing that for each character is a completely different system. It would need scripting from zero as this code only checks how many enemies have died at the end of the fight. BTW, there was a little bug, I fixed it. You may already have noticed WHEN I made that script... -.-
EDIT: Lockage, this add-on can now be found here:
Tons of Add-ons (http://rmrk.net/index.php?topic=5147.0)