Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
shadow7396

What in the world?!

Recommended Posts

Ok can someone tell me what the heck I'm supposed to do in this script?

 

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
# DRG Item Passive Stat
# Version: 1.12
# Author : LiTTleDRAgo
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
#==============================================================================
# ** Game_Party
#------------------------------------------------------------------------------
# This class handles the party. It includes information on amount of gold
# and items. Refer to "$game_party" for the instance of this class.
#==============================================================================

class Game_Party
#--------------------------------------------------------------------------
# * ITEM STAT
#--------------------------------------------------------------------------
ITEM_STAT = {
:id => [ :hp, :sp, :str, :dex, :agi, :int, :atk, :pdef, :mdef, :eva],
1 => [ 0, 0, 0, 1, 1, 0, 0, 1, 0, 10],
2 => [ 0, 0, 0, 1, 1, 0, 0, 1, 0, 10],
}
#--------------------------------------------------------------------------
# * ARMOR AND WEAPON
#--------------------------------------------------------------------------
WEAPON_STAT = {
1 => [ 30, 0, 0, 0, 0, 40, 53, 34, 30, 10],
}
ARMOR_STAT = {
1 => [ 300, 0, 0, 0, 0, 40, 53, 34, 30, 10],
}
#--------------------------------------------------------------------------
# * END CONFIG
#--------------------------------------------------------------------------

#--------------------------------------------------------------------------
# * Item Stat Plus
#--------------------------------------------------------------------------
def item_stat_plus
summ = Array.new(12,0)
summ.each_index {|s|
@items.each_pair {|x,y| summ+=((ITEM_STAT[x]||[])||0) *@items[x] }
@weapons.each_pair{|x,y| summ+=((WEAPON_STAT[x]||[])||0)*@weapons[x]}
@armors.each_pair {|x,y| summ+=((ARMOR_STAT[x]||[])||0) *@armors[x] }
@actors.each{|actor| summ+=((WEAPON_STAT[actor.weapon_id]||[])||0)
summ+=((ARMOR_STAT[actor.armor1_id]||[])||0)
summ+=((ARMOR_STAT[actor.armor2_id]||[])||0)
summ+=((ARMOR_STAT[actor.armor3_id]||[])||0)
summ+=((ARMOR_STAT[actor.armor4_id]||[])||0)}}
return summ
end
end
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
# This class handles the actor. It's used within the Game_Actors class
# ($game_actors) and refers to the Game_Party class ($game_party).
#==============================================================================
class Game_Actor
#--------------------------------------------------------------------------
# * Alias Method
#--------------------------------------------------------------------------
[:maxhp,:maxsp,:str,:dex,:agi,:int,:atk,:pdef,:mdef,:eva].each_with_index do |m,i|
alias_method(:"drg190_#{m}", :"#{m}")unless method_defined?(:"drg190_#{m}")
define_method(:"#{m}") do |*args|
stat, ex = $game_party.item_stat_plus, [0,1].include?(i) ? 9999 : 999
[[send(:"drg190_#{m}",*args) + stat,1].max, ex].min
end
end
end

 

they said the instructions are in the script but i dont see jack diddly squat!

Share this post


Link to post
Share on other sites

Lol! Now now, don't get your feathers ruffled.

That's no way to make friends or get help. :u

Also, not a descriptive title on that topic.

 

Oddly enough I couldn't find instructions either.

However the script looks pretty simple, so try the following. First install it like any other script, add a new empty script to the script editor, just before the "main" script then paste the code in the script page. Second, the configuration, for items it's line 17, for weapons line 25, for armors line 28.

You go at the bottom of the list(line 20, 26 or 29), copy the previous line, press enter, paste it on the new line, then change the id to the item you want to have the effect and all the stats you want that item to have, using line 18 as reference.

Share this post


Link to post
Share on other sites

ok at first i was like, "what the **** is he talking about" but i got it now. now here is my second question. The one minor set back though is that when you unequip a weapon or armor, the stats stay the same. how can i fix that?

Share this post


Link to post
Share on other sites

You can't. The script is built in such a way that as long as each item is in the party inventory it will affect the stats of all party members.

If the default rmxp ability to add stats to equipment isn't enough you are gonna need to look for a different script.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...