Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: Falcon on September 06, 2008, 04:03:23 pm

Title: [XP] Experience Boosting Potions
Post by: Falcon on September 06, 2008, 04:03:23 pm
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





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.


Title: Re: [XP] Experience Boosting Potions
Post by: Blizzard on September 06, 2008, 04:09:39 pm
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.

Title: Re: [XP] Experience Boosting Potions
Post by: Falcon on September 06, 2008, 04:20:23 pm
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.
Title: Re: [XP] Experience Boosting Potions
Post by: Blizzard on September 06, 2008, 04:56:53 pm
*fixes Misc Addon to Misc Add-on*

You're weird. I had no idea copy-paste was so difficult. -_-
Title: Re: [XP] Experience Boosting Potions
Post by: Falcon on September 06, 2008, 06:50:30 pm
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.
Title: Re: [XP] Experience Boosting Potions
Post by: shdwlink1993 on September 07, 2008, 12:59:48 am
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.
Title: Re: [XP] Experience Boosting Potions
Post by: 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.
Title: Re: [XP] Experience Boosting Potions
Post by: Blizzard on September 07, 2008, 04:47:51 am
It's alright guys, I've talked to him over PM already. You don't solve stuff like this on the forum. -_-
Title: Re: [XP] Experience Boosting Potions
Post by: Falcon on September 07, 2008, 09:25:24 am
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.
Title: Re: [XP] Experience Boosting Potions
Post by: Blizzard on September 08, 2008, 08:33:57 am
As I said, I've talked to Falcon over PM already, it's fine. :)
Title: Re: [XP] Experience Boosting Potions
Post by: KRoP on October 24, 2008, 05:51:33 pm
Good job, though this was already possible through events.