Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Heretic86 on May 01, 2012, 05:02:19 am

Title: Request for a Script for RMXP - Temporary Battle Self Switches
Post by: Heretic86 on May 01, 2012, 05:02:19 am
Title should be self explanitory.  Just looking for a way to do Self Switches using $game_temp during Battle (in the DB, under the Troops Page where Eventing takes place), so being Temporary, its fine if they reset the next time that battle starts against the same Troop.  Its just something to make battles a bit more interesting.  I dont think a script exists yet.

Can someone do this without too much effort?
Title: Re: Request for a Script for RMXP - Temporary Battle Self Switches
Post by: LiTTleDRAgo on May 01, 2012, 06:42:56 am
class Scene_Battle
  attr_accessor :switch
  alias drg129_main main unless method_defined?(:drg129_main)
  def main
    @switch = Game_Switches.new
    drg129_main
  end
end


(http://img855.imageshack.us/img855/9012/72072903.jpg)
Title: Re: Request for a Script for RMXP - Temporary Battle Self Switches
Post by: Heretic86 on May 01, 2012, 07:07:38 am
Is there any way that we can use "Control Self Switch: A = [On / Off] in Battle?  I think I should have phrased my question more clearly...   :shy:
Title: Re: Request for a Script for RMXP - Temporary Battle Self Switches
Post by: LiTTleDRAgo on May 01, 2012, 10:38:09 am
http://littledrago.blogspot.com/2012/05/rgss2-battle-self-switches.html
Title: Re: Request for a Script for RMXP - Temporary Battle Self Switches
Post by: Heretic86 on May 01, 2012, 05:54:51 pm
Awesome Possum!  Exactly what I was hoping for!  Need to test it out, but I'll report back later, need to do some work around the house.

Something else that I think happens quite a bit with Scripters and Coders in General.  Too many times, they tend to be "thankless" as people just expect those with talent to abide by every script request that comes along, and many a times, when those requests are fulfilled, the Scripters who may have spent quite a bit of time on even short scripts are never truly thanked by those who use those scripts.

So, thank you!  And I mean that sincerely!
Title: Re: Request for a Script for RMXP - Temporary Battle Self Switches
Post by: Heretic86 on May 01, 2012, 11:34:22 pm
Edit *removed*

Seems to work perfect!  Had a small glitch, but fixed that.  Still had the original 8 line script in a modified ATB, I forgot to pull that out, so it seems to work fantastic!