[XP] Experience Boosting Potions

Started by Falcon, September 06, 2008, 04:03:23 pm

Previous topic - Next topic

Falcon

September 06, 2008, 04:03:23 pm Last Edit: February 21, 2009, 06:03:50 am by Blizzard
Experience Boosting Potions
Authors: Falcon
Version: 1.0
Type: Misc
Key Term: Misc Add-on



Introduction

An actor uses a potion, then the potion increases the exp gained.


Features


  • Determine how much exp is boosted and for how many battles.




Demo

http://www.mediafire.com/?6yxlyzyxi43


Script

Spoiler: ShowHide

Paste this above main:
#==============================================================================
# Experience Boosting Potions
#------------------------------------------------------------------------------
# By The_Falcon
# Requested by doodley at rmrk.net
#------------------------------------------------------------------------------
# This script should only be found at the following places:
# rmrk.net
# rmrevolution.rmrk.net
# rmxp.org
# chaos-project.com
#==============================================================================
class Game_System
  attr_accessor   :experience_boost      # how much the exp increases
  attr_accessor   :exp_boost_turns       # how many battles the boost will last
  # Alias the initialize method
  alias exp_boost_initialize initialize
  def initialize
    # Use the old method
    exp_boost_initialize
    # Set both new variables
    @experience_boost = 0.0
    @exp_boost_turns = 0
  end
end

Now, replace this in Scene_Battle 2:
    # Obtaining EXP
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      if actor.cant_get_exp? == false
        last_level = actor.level
        actor.exp += exp
        if actor.level > last_level
          @status_window.level_up(i)
        end
      end
    end
With this:
    #-----------------------------------------
    # Experience Potion Additions
    #-----------------------------------------
    if $game_system.exp_boost_turns > 0
      exp += Integer(exp * $game_system.experience_boost)
      exp.round
      $game_system.exp_boost_turns -= 1
    end
    # Obtaining EXP
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      if actor.cant_get_exp? == false
        last_level = actor.level
        actor.exp += exp
        if actor.level > last_level
          @status_window.level_up(i)
        end
      end
    end
Then make common events which the experience potions call. The common events should have the following:
$game_system.experience_boost = X
$game_system.exp_boost_turns = Y




Instructions

In the script section.


Compatibility

Probably won't work with other battle systems.


Credits and Thanks

Free to use in any project as long as I get credit.



Blizzard

I'll do it like you do on RMRK.

STRIKE 1: Key Term does not exist.

Quote3.

The Key Terms mentioned in the header of the topics are:


  • Actor Add-on

  • Add-on Collection

  • Battle Add-on

  • Custom Battle System

  • Custom Environment System

  • Custom Equipment System

  • Custom Item System

  • Custom Menu System

  • Custom Message System

  • Custom Movement System

  • Custom Skill System

  • Enemy Add-on

  • Environment Add-on

  • Game Utility

  • Menu Add-on

  • Message Add-on

  • Minigame

  • Misc Add-on

  • Misc System

  • Movement Add-on

  • Player / Party / Troop Add-on

  • Scripting Tool

  • Title / Save / Load / GameOver Add-on



These Key Terms allow that your script is listed on the homepage appropriately. If you leave it out or don't use it at all, your script will not be listed in the script index. Do not edit any Key Term, they have to be written exactly as here. More than one term is not allowed.

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Falcon

Strikes are for idiots who can't make a script request.

I won't bother to post the rest of my scripts if it's this hard, it's not worth it.

Blizzard

September 06, 2008, 04:56:53 pm #3 Last Edit: September 06, 2008, 04:57:35 pm by Blizzard
*fixes Misc Addon to Misc Add-on*

You're weird. I had no idea copy-paste was so difficult. -_-
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Falcon

I've never seen a RM forum that requires their template be used for scripts; usually they're happy to see any script put up. Whatever though.

shdwlink1993

The reason for this stringent watch on the template is that Blizz is planning on making a forum script search that will make it so that people can search through several different things, including the Key Term.
Stuff I've made:




"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."

Diokatsu

I would love to comment on how this is a cool script but you seem to lack the energy to copy and paste so I'll start to lack the energy to care. No matter what the other forums do you have no excuse to not follow the rules. If we're following the rules of other sites then why not go 4chan on this site. I'm sure you'd be happy with that, right -.-?

Also, good script, i like the idea at least.

Blizzard

It's alright guys, I've talked to him over PM already. You don't solve stuff like this on the forum. -_-
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Falcon

Quote from: Diokatsu on September 07, 2008, 01:47:02 am
I would love to comment on how this is a cool script but you seem to lack the energy to copy and paste so I'll start to lack the energy to care. No matter what the other forums do you have no excuse to not follow the rules. If we're following the rules of other sites then why not go 4chan on this site. I'm sure you'd be happy with that, right -.-?

Also, good script, i like the idea at least.


You must have the energy to care, considering you posted.

I make rules on other sites, I've been on many sites posting scripts, this forum surprised me with rules that I thought were stupid; Blizzard has explained to me why these rules were made (it's not just to make us work more). If I had known that before, then I wouldn't have bothered to start all this.

Blizzard

As I said, I've talked to Falcon over PM already, it's fine. :)
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

KRoP

Good job, though this was already possible through events.