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] Request: Scoring

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 82
Treat Every Game Like Your Last.
Monster Scores
January 05, 2009



Summary
I need a script where every time you kill an enemy the attack status are added together and then stored. For example, when you kill a slime, the attack is stored. Then when you kill a hornet after, the attack of the hornet is added to the stored attack from the slime. I want this to happen with every winning battle. This way every enemy you kill will have their attacks added all together to create a Score. I want this score displayed in the upper right hand corner of the screen (Score: 000,000,000,000) with a 12 digit number. I would appreciate this so much! I will give credit to whom ever writes the script in the beginning credits and ending credits.

Method
1. You kill a slime. The attack status is stored in a variable.
2. You get engaged into another battle with a Hornet.
3. You defeat the Hornet and the Attack Status of the Hornet is added to the same Variable.
4. This Variable is displayed in the upper right hand corner during gameplay.

Mockups
Kind of like the score in this mario picture.
Spoiler for:

Games its been in
  • Mario games are big on this.
  • Almost all games have a score like system. With rpg's it usually is leveling.



Did you search?
Yes

Where did you search?
  • RMRK.NET
  • rpg revolution
  • rpgmakervx

What did you search for?
  • score
  • attack score
  • mario score
  • points
« Last Edit: February 18, 2010, 06:21:05 PM by ltearth »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
I'm a little confused as to what you want added - the attack stat of the enemy? the number of times you attacked them before you kill them? the damage value of the killing blow? a special stat you set for each monster telling how much score they give?

I was just unclear on that.

**
Rep:
Level 82
Treat Every Game Like Your Last.
I am sorry about that. The Attack Status of each Enemy would be added together as you kill them. I hope that helps!  :tpg:

**
Rep:
Level 83
Are you using the standard battle system ? or another one ?
You can use my scripts freely . but not for commercial use .
:ccbync:
Don't encrypt your game !!!
Want to give me credit ? Easy ,add me in your game :

****
Rep:
Level 84
3...2...1...
Kinda like EXP, an enemy gives you so much, except instead of it being EXP, you want it to be like a variable that will be displayed in the top right corner to be a score?  What are your plans for a thing like this?  Sorry, I can't make one, I don't know how to script.  I just wasn't so sure what you meant.  Sounds cool though.  If I find anything out I'll let you know.

**
Rep:
Level 82
Treat Every Game Like Your Last.
I am using the standard battle.

Yea, I was hoping for someone who write a script that would take the Attack Status of the enemy killed and add into a variable. That the more you kill the higher the score is. And yes, placed in the upper right hand corner. Thank you for replying!

**
Rep:
Level 83
OK , i made a quick script for that :

Spoiler for:
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle < Scene_Base
alias dricc_exp_and_gold display_exp_and_gold
    def display_exp_and_gold
     $game_variables[1] += $game_troop.points_total
     dricc_exp_and_gold
  end
end

#==============================================================================
# ** Game_Troop
#------------------------------------------------------------------------------
#  This class handles enemy groups and battle-related data. Also performs
# battle events. The instance of this class is referenced by $game_troop.
#==============================================================================

class Game_Troop < Game_Unit

  #--------------------------------------------------------------------------
  # * Calculate Total Experience
  #--------------------------------------------------------------------------
  def points_total
    points = 0
    for enemy in dead_members
      points += enemy.atk unless enemy.hidden
    end
    return points
  end
 
end

This store the ATK of the monsters in the variable 1 at the end of the fight .
Now , you just have to display it .
This is tested !
You can use my scripts freely . but not for commercial use .
:ccbync:
Don't encrypt your game !!!
Want to give me credit ? Easy ,add me in your game :

**
Rep:
Level 83
it seems i have worked for nothing ...
You can use my scripts freely . but not for commercial use .
:ccbync:
Don't encrypt your game !!!
Want to give me credit ? Easy ,add me in your game :

**
Rep:
Level 82
Treat Every Game Like Your Last.
Oh no, not at all! Thank you so much for your script. I appreciate the time you took to make it   ;D