RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Kills Counter

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 83
Yes.
<Battle Counter>
<5-7-09>



Summary
<<It needs to add constant 1 to variable 0009 every time a troop is defeated.>>

Features Desired
  • Does not add 1 for every enemy defeated, only troop.
  • Optional: Turn switch 145 on when variable 009 reaches 10.
  • Optional: Turn switch 146 on when variable 009 reaches 50.
  • Optional: Turn switch 147 on when variable 009 reaches 200.
  • Optional: Turn switch 148 on when variable 009 reaches 9001.

Games its been in
  • Thing Thing Arena 3 (When you unlock awards for killing a number of enemies, except I intend to do this with troops.)

Did you search?
<<Yes, no results.>>

« Last Edit: May 07, 2009, 09:32:58 PM by Owlsey »

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for August 2008Project of the Month winner for December 20092011 Best Game Creator (Non RM)Gold - GIAW Halloween

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep:
Level 83
Yes.
I doubted I would get any results if I did search, and I was right.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for August 2008Project of the Month winner for December 20092011 Best Game Creator (Non RM)Gold - GIAW Halloween
I doubted I would get any results if I did search, and I was right.

have you tried eventing it?
it's not very difficult at all.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep:
Level 83
Yes.
I have over 100 troops, and I don't want to have to event them all. If it really is so easy (which I don't doubt), then please just make it.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Best RPG Maker User (Scripting)2010 Best Use Of Avatar And Signature Space
Why the switches? Any conditional that can check a switch can check a variable.

And yeah, why not event it? The script is easy too, but it's kind of pointless to write a script that would only be used by people who cannot event and therefore cannot possibly make a good game. I'll write this script because it will take 5 seconds and you took the effort to fill in the template, which is always a plus, but you really ought to learn how to event. This is simpler than almost any other event you could conceive of.
« Last Edit: May 07, 2009, 09:22:22 PM by modern algebra »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Best RPG Maker User (Scripting)2010 Best Use Of Avatar And Signature Space
Place this code above Main and below all other custom scripts:

Code: [Select]
class Scene_Battle
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Battle Ends
  #     result : results (0:win 1:lose 2:escape)
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias modalg_owlsey_ynotevnt_killcounter_52b4 battle_end
  def battle_end (result)
    # Add to counter if a victory
    $game_variables[9] += 1
    # Run Original method
    modalg_owlsey_ynotevnt_killcounter_52b4 (result)
  end
end

**
Rep:
Level 83
Yes.
Thanks, that helped.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for August 2008Project of the Month winner for December 20092011 Best Game Creator (Non RM)Gold - GIAW Halloween
I have over 100 troops, and I don't want to have to event them all. If it really is so easy (which I don't doubt), then please just make it.

translation:
I really don't feel like doing it, I realize it's easy, just do it for me.

anyway, request fulfilled, please add [resolved] to the topic title, I know it's easy, but I'm too lazy to do it.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best IRC Chatterbox2013 Best Game Creator (Non-RM)Participant - GIAW 112012 Best IRC Chatterbox2012 Best Use Of Avatar and Signature space2012 Funniest Member2012 Most Successful TrollSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Biggest Forum Couch Potato2010 Most Successful Troll2010 Best IRC Chatterbox
Wouldn't he have to go back and add a variable increase to all 100 troops? That could take a bit of time.

**
Rep:
Level 83
Yes.
Look, i'm not going to argue with you, I don't know RPGXP scripting yet. And I could do the same for 100 troops, but a script would prevent unintentional "glitches" where I forgot to do so, and I WILL make more troops. Rather just take 5 minutes to request here than 30 doing what you suggested.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for August 2008Project of the Month winner for December 20092011 Best Game Creator (Non RM)Gold - GIAW Halloween
Wouldn't he have to go back and add a variable increase to all 100 troops? That could take a bit of time.

ctrl + c
ctrl + v

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep:
Level 83
Yes.
No duh. A script is still way faster.

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best IRC Chatterbox2013 Best Game Creator (Non-RM)Participant - GIAW 112012 Best IRC Chatterbox2012 Best Use Of Avatar and Signature space2012 Funniest Member2012 Most Successful TrollSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Biggest Forum Couch Potato2010 Most Successful Troll2010 Best IRC Chatterbox
Not everyone wants to double click on 100 different scattered items and paste something into each one of them.