Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Leveling Equips (weapons & armors that level up), Beta Release updated to v0.6.27
LordHeinrich
post Sep 9 2010, 10:08 AM
Post #1


Level 14
Group Icon

Group: Revolutionary
Posts: 267
Type: Artist
RM Skill: Beginner




Equip Levels

Version 0.6.03
Author Lordheinrich
Release Date 09/10/2010
Last Update 09/18/2010

Exclusive Script at RPG RPG Revolution


Introduction
This script makes it so that equipment (weapons and armors) can gain levels. Equips are basically set up like actors in that they gain experience in battle, level up, gain stat bonuses, etc... This is a rather large script and is still incomplete, however complete enough post for feedback, feature requests, and such. I don't know if I can test all features of the script myself, do please post report any bugs.

Features
- Experience System
- Leveling System with stat bonuses
- Script calls and note tags for customization
- Equip Status Scene accessible from Scene Item
- All Equips are unique, i.e., only the ones equipped gained experience, ex: you can have a lvl 1 short sword, a lvl 2, etc...
- Ability to randomize Experience earned
- Ability to randomize Experience needed for Equips to level up
- Progress Bars for EXP and Levels
- Equip Skill System based on EXP gained, Battles and Enemies Killed
** Skills learned either by Weapon EXP, Armor EXP, Total Battles, Enemies Killed or any combination of the FOUR
- Color Coded Equips
** Different colors based on whether level is max, cannot level, or level disabled

-----------------------------------------------
Planned:
- Equip Skill System (in progress)
** Based on either level or EXP (maybe stats) << Will probably scrap level as that method is broken, same for stats...
** Based on Battles and Kills (completed)
- Percent Based Equips
** Equips can raise stats by set number, percent or both
- Equip Price based on Level/Stats
-----------------------------------------------
Please suggest additional features

Script

Link for v 0.6.27 Script

RPG Armor Fix
CODE
module RPG
  class Armor < BaseItem
    #------------------------------------------------------------------------
    # gain experience
    #------------------------------------------------------------------------
    def gain_exp(amount)
      return if $BTEST
      return if @no_level
      return unless @can_level or LEVEL_ARMORS
      return if @level >= @max_level
      mx = (@exp_list[@max_level] - 1) - @exp
      amount = amount >= mx ? [mx - 1, 0].max : amount
      @exp += amount
      while @exp >= @exp_list[@level] and @exp_list[@level] > 0
        level_up
      end
    end
    #------------------------------------------------------------------------
    # level up
    #------------------------------------------------------------------------
    def level_up
      return if @no_level
      return unless @can_level or LEVEL_ARMORS
      if @level >= @max_level
      else
        @level = [@level + 1, @max_level].min
        if $game_switches[LEVEL_UP_SWITCH]
          @exp += @exp_list[@level-1] - @exp_list[@level-2]
        end
        $game_switches[LEVEL_UP_SWITCH] = false
        @maxhp  = [@maxhp  + @hp_gain,  @max_hp].min  unless @max_hp == @maxhp
        @maxmp  = [@maxmp  + @mp_gain,  @max_mp].min  unless @max_mp == @maxmp
        @atk = [@atk + @atk_gain, @max_atk].min unless @max_atk == @atk
        @def = [@def + @def_gain, @max_def].min unless @max_def == @def
        @spi = [@spi + @spi_gain, @max_spi].min unless @max_spi == @spi
        @agi = [@agi + @agi_gain, @max_agi].min unless @max_agi == @agi
        @eva = [@eva + @eva_gain, @max_eva].min unless @max_eva == @eva
        if $imported["DEX Stat"]
          @dex = [@dex + @dex_gain, @max_dex].min unless @max_dex == @dex
        end
        if $imported["RES Stat"]
          @res = [@res + @spi_gain, @max_res].min unless @max_res == @res
        end
      end
    end
  end
end


Customization
READ THE INSTRUCTIONS!!!
- Global Customization within script
- Per item customization with note tags
- Script calls in events can alter some attributes of equips
- New stats for Weapons
** HP, MP, CRI
- New stats for Armors
** HP, MP

Compatibility
- Compatible with Default System
- Compatible with YEM New Battle Stats
- New command in YEM Item Overhaul to access Equip Scene
- YEM Equipment Overhaul patch within script
** Fix for purge_equipment issue now included
- Likely needs patches to work with New equip Scenes
- Must be placed below YEM Item Overhaul and YEM Equip Overhaul, if used
** Rewrites portions of those YEM Scripts
- Place above YEM Item Overhaul Patch if used
** The YEM Item Overhaul Patch rewrites a portion of this script

Screenshot
15 Zipped Screen Shots

EXP Progress

Enemy Setup


Installation
- below materials/above main
- below YEM Equipment Overhaul & Item Overhaul if used
- above YEM Item Overhaul Mod if used


Terms and Conditions
This is a beta script. Please do not use in Games meant for distribution as there may be bugs.

Credits
None while in Beta Mode
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- LordHeinrich   Leveling Equips (weapons & armors that level up)   Sep 9 2010, 10:08 AM
- - Hoopsnake Games   o/ Did you ever know that you're my hero? You...   Sep 10 2010, 12:15 AM
- - LordHeinrich   Got to testing EXP fluctuation and found a bug. A...   Sep 10 2010, 04:45 AM
- - Feldschlacht IV   I honestly think this is a great idea. Looking for...   Sep 10 2010, 08:09 AM
- - Lockheart   Trying this script out, I notice that it removes a...   Sep 10 2010, 04:12 PM
- - The Wizard 007   Good idea and the interface looks good but I can...   Sep 13 2010, 06:58 PM
- - LordHeinrich   One of your scripts must be rewriting something in...   Sep 14 2010, 02:40 PM
- - systemsfailed   Download seems to be broken   Sep 16 2010, 03:47 PM
- - LordHeinrich   Maybe it was some server issue or something cause ...   Sep 16 2010, 08:13 PM
- - LordHeinrich   I just wanted to post an update. I started workin...   Sep 17 2010, 05:50 PM
- - LordHeinrich   I made an update and also included a patch. The p...   Sep 18 2010, 02:14 PM
- - LordHeinrich   Sorry for bumping, but I found a bug. I didn...   Sep 18 2010, 08:52 PM
- - Kaimi   I like the script, but where are any screenshots?   Sep 19 2010, 04:41 AM
- - LordHeinrich   @kaimi, I added a zip archive with 15 screen shot...   Sep 19 2010, 12:21 PM
- - Dyrnwyn   OK, this script is awesome and the answer for some...   Sep 19 2010, 06:08 PM
- - LordHeinrich   New version 0.6.20 uploaded with YEM Compatibility...   Sep 19 2010, 06:34 PM
- - Dyrnwyn   Sweeeeet! That is amazingly simple! You ...   Sep 20 2010, 05:28 AM
- - Dyrnwyn   EDIT: Deleted prior text. It's not a bug wit...   Sep 20 2010, 08:30 AM
- - LordHeinrich   EDIT: How did you set up the max levels. Did yo...   Sep 20 2010, 09:00 AM
- - Dyrnwyn   Awesome. thanks for the fast reply. I think i ac...   Sep 20 2010, 11:13 AM
- - Swish   Well it doesn't work properly... I made access...   Sep 20 2010, 01:42 PM
- - LordHeinrich   Give me a moment to test it out some more. While ...   Sep 20 2010, 01:56 PM
- - Swish   not using extra slot atm   Sep 20 2010, 02:21 PM
- - LordHeinrich   I tested it with the default system and it works f...   Sep 20 2010, 02:51 PM
- - LordHeinrich   New version 0.6.27 uploaded. I removed the level ...   Sep 20 2010, 05:33 PM
- - Dyrnwyn   Thanks, LH! I'll load it up in AoS and gi...   Sep 21 2010, 06:42 AM
- - Swish   Thank you LordHeinrich! It works great!. N...   Sep 21 2010, 01:44 PM
- - LordHeinrich   @Dyrnwyn, The link should work. You could be try...   Sep 21 2010, 10:27 PM
- - Swish   umm where should i put patch?   Sep 22 2010, 09:25 AM
- - Dyrnwyn   Try putting it at the bottom of the existing scrip...   Sep 22 2010, 08:10 PM
- - LordHeinrich   Right, it goes right below the equip level script....   Sep 23 2010, 01:10 PM
- - Dyrnwyn   Heyas, again, LH. I found another bug in the syst...   Sep 24 2010, 05:53 PM
- - LordHeinrich   I will try and look into the first bug because tha...   Sep 24 2010, 07:09 PM
- - Dyrnwyn   Heyas, LH. Sorry for the slow reply. I was out m...   Sep 25 2010, 05:59 PM
- - LordHeinrich   I can't spot anything in the extra scripts tha...   Sep 25 2010, 10:24 PM
- - Dyrnwyn   Nerts. OK, LH, I have confirmed it: The issue is...   Sep 26 2010, 05:02 PM
- - LordHeinrich   Glad you got it resolved! Also, thanks for th...   Sep 26 2010, 06:46 PM
- - nevious   you should realy put a demo to this it would help ...   Sep 27 2010, 12:09 AM
- - Dyrnwyn   I'll do you one better, LH. The issue is fixe...   Sep 27 2010, 05:50 AM
- - LordHeinrich   lol now I get it I'll have to double check ...   Sep 27 2010, 12:13 PM
- - Dyrnwyn   Sweet. Glad to help. Annnnnnd, I'm going to ...   Sep 27 2010, 05:25 PM
- - LordHeinrich   I guess I need to improve the instructions on that...   Sep 27 2010, 07:53 PM
- - Dyrnwyn   Wellll, don't i feel silly now! Awesome...   Sep 28 2010, 12:44 PM
- - LordHeinrich   Sounds good. Check the status from time to time b...   Sep 29 2010, 01:29 AM
- - Craze   I would suggest uploading at least a screenshot or...   Sep 29 2010, 01:47 AM
- - LordHeinrich   I'll get to it, but I have 15..or 17 or someth...   Sep 29 2010, 12:33 PM
- - BlackMagicKitten   Any new developments with the script? improvements...   Dec 5 2010, 07:23 PM
- - icycold2367   This looks like a really good script and I really ...   Dec 5 2010, 07:36 PM
- - LordHeinrich   I haven't abandoned the script, just I didn...   Dec 7 2010, 10:05 PM
- - icycold2367   I think its a really, really good script it turned...   Dec 19 2010, 09:57 AM
- - EvnikGillnam   Greetings, I have put your script into my game tha...   Apr 23 2011, 07:22 PM
- - Kread-EX   No, you don't need YEM. Actually, YEM isn...   Apr 24 2011, 02:01 AM
|- - EvnikGillnam   QUOTE (Kread-EX @ Apr 24 2011, 06:01...   Apr 24 2011, 12:49 PM
- - Kread-EX   Okay first things first... > Sorry to have rem...   Apr 25 2011, 02:29 AM
|- - EvnikGillnam   Oh thank you so much that was just what I needed. ...   Apr 25 2011, 09:36 AM
- - Kread-EX   Apparently, the visual part of the system is not y...   Apr 25 2011, 11:11 AM
- - EvnikGillnam   Really, how is it done in the Item Menu because I ...   Apr 25 2011, 11:35 AM
- - Kread-EX   Well, you only can see it when you hover on an ite...   Apr 25 2011, 11:43 AM
- - EvnikGillnam   For now I just made a dumby item that can't be...   Apr 26 2011, 07:50 AM
- - LordHeinrich   Sorry for all the late response, but looks like Kr...   May 7 2011, 08:37 PM
- - ruhuslasher   can some one tell me were actually do i copy the s...   Aug 30 2011, 01:41 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th June 2013 - 12:26 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker