Leon 55 Report post Posted February 10, 2007 Ok, Wyz requested I make a script that gives you attack, along with physical and magical defense when you have no items equipped. I decided to oblige and write it up (in less than 10 minutes... that's sad...) for him. Anyway, here it is: #=============================================================================== # Barehands # Version: 2.2 # Dec. 8th, 2009 #------------------------------------------------------------------------------- # This script allows you to add to Attack, Phys Defense, and Mag Defense # based on the users Strength, Dexterity, and Intellect, respectively. # # Instructions: # Just change the modifiers in the module to set them. 1 equals the base # stat. # #=============================================================================== module Modifier Strength = 0.4 Dexterity = 0.3 Intellect = 0.3 end #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # * Game_Actor #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class Game_Actor < Game_Battler alias leon_wyzstat_gameactor_baseatk base_atk alias leon_wyzstat_gameactor_basepdef base_pdef alias leon_wyzstat_gameactor_basemdef base_mdef def base_atk n = leon_wyzstat_gameactor_baseatk # if n == 0 #Multiplies strength by a number. 1 = strength, higher for more atk, lower for less. #Use decimals as shown. n += $data_actors[@actor_id].parameters[2, @level] * Modifier::Strength n = n.round return n # else # return n # end end def base_pdef n = leon_wyzstat_gameactor_basepdef # if n == 0 #Multiplies dexterity by a number. 1 = dexterity, higher for more Pdef, lower for less. #Use decimals as shown. n += $data_actors[@actor_id].parameters[3, @level] * Modifier::Dexterity n = n.round return n #else # return n #end end def base_mdef n = leon_wyzstat_gameactor_basemdef #if n == 0 #Multiplies intellect by a number. 1 = intellect, higher for more mdef, lower for less. #Use decimals as shown. n += $data_actors[@actor_id].parameters[5, @level] * Modifier::Intellect n = n.round return n #else # return n #end end end Share this post Link to post Share on other sites
EmilyAnnCoons 7 Report post Posted February 10, 2007 Cool Share this post Link to post Share on other sites
Wyzrd 12 Report post Posted February 10, 2007 YAY for Leon. I just gave it a run and it works perfect. Thanks alot. :D Share this post Link to post Share on other sites
Grandor 0 Report post Posted February 10, 2007 I have a script that would keep you busy for months, Leon. Might as well get what I can for now...good work on this script, by the way. Share this post Link to post Share on other sites
Leon 55 Report post Posted February 10, 2007 Grandor, post your idea in the thread where I have for "Need Script Ideas". I am rather interested. Share this post Link to post Share on other sites
Grandor 0 Report post Posted February 10, 2007 Alrighty, but this will be rather hard to do. Share this post Link to post Share on other sites
EmilyAnnCoons 7 Report post Posted February 10, 2007 Err...this doesn't require SDK does it? I mean...I'm kinda used to scripts nowadays requiring SDK...but as none of my scripts are SDK compatible...I kinda can't use SDK scripts... Share this post Link to post Share on other sites
Wyzrd 12 Report post Posted February 10, 2007 I wouldn't know. I don't even know what SDK is. :mellow: Share this post Link to post Share on other sites
EmilyAnnCoons 7 Report post Posted February 10, 2007 Well, if you don't have the SDK, then it probably works without it...SDK is a system that Sephirothspawn and a few others made called the "Standard Development Kit" for scripts...it is made so that scripts will all work together...but as 90% of scripts were made before SDK...it is hard to get scripts that work with SDK...not to mention you can't edit the Title screen or anything...so you can't use any scripts that edit those... Share this post Link to post Share on other sites
Wyzrd 12 Report post Posted February 10, 2007 Well than I'm guessing it don't use SDK than because I sure don't have it lol. Share this post Link to post Share on other sites
EmilyAnnCoons 7 Report post Posted February 10, 2007 -nods- that's what I figured...it has the aliasing like an SDK script, but the SDK log lines aren't in there, so I figured that meant there was no need to have SDK... Share this post Link to post Share on other sites
Leon 55 Report post Posted February 10, 2007 alias has nothing to do with SDK, to let oyu know. It allows you to edit a method without having to rewrite it. Share this post Link to post Share on other sites
EmilyAnnCoons 7 Report post Posted February 10, 2007 Yeah, I know...just 90% of the scripts I have ever seen with aliasing have SDK as well...so...I tend to question aliasing scripts ^^" Share this post Link to post Share on other sites
Leon 55 Report post Posted July 31, 2009 Updated. New feature: Can add to stats even if equipment is present. Share this post Link to post Share on other sites
Wyzrd 12 Report post Posted July 31, 2009 That's a pretty good update there. Could come in handy. And it still has my name all over it. :D Share this post Link to post Share on other sites
Leon 55 Report post Posted December 9, 2009 Script has been updated. The change is instead of being bare-handed to make the stat take over the other stat (ie, being bare handed to use strength for attack) it takes a portion of strength and adds it TO attack. Share this post Link to post Share on other sites