Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Jragyn on September 12, 2008, 03:29:42 am

Title: Reflection for RTAB?
Post by: Jragyn on September 12, 2008, 03:29:42 am
First:
  I use a large number of scripts:
        Anti-Battle BGM Change
        STCMS
        Shopwindow mod
        Leon's Item Creation
        RTAB 1.16 (without the lame sideview aspect of it)
        RTAB's connected attacks
        Tons!
        Skill Casting Time Counter (came with RTAB)
        Remodeled Damage Display
        RTAB Config
        some silly battle result patch (?)
        Blizz's RTAB art hack
        Blizz's Bestiary
        Trickster's Steal/Mug v6r2(without its macl 'n sdk)
        A script I found for 8 directions
        A script that disables encounters when -bleh- is equipped
        some autoscrolling panarama thing
        A Inventory details script (without its macl 'n sdk)
        A tiny enemy status thing that plays with their stats
       and lastly, a 2ndary stat leveler...raises atk, pdef, mdef, 'n evade per level.
Thats all of em.
So which one would mess with my newest addition of Blizz's Full Reflection system?
Looking around inside of the reflect script, there seems to be a compatability with RTAB, but...who knows?
  It gives me this error, from within the reflect script itself:

  "Script 'Reflect' line 300: NoMethodError occurred.
  undefined method `current_action' for nil:NilClass."

So whats that? Take a look:
Spoiler: ShowHide
#----------------------------------------------------------------------------
  # override set_target_battlers
  #----------------------------------------------------------------------------
  alias set_target_battlers_reflect_later set_target_battlers
  def set_target_battlers(scope, battler = nil, override = false)
    # if skill can't break through reflection this time
    if !BlizzCFG::BREAK_REFLECT.include?(@skill.id) && !override &&
300      @active_battler.current_action.kind == 1
      # no targets
      return []
    end
    # if RTAB is not installed
    if battler == nil
      # call original method
      return set_target_battlers_reflect_later(scope)
    else
      # call original method with RTAB compatibility
      return set_target_battlers_reflect_later(scope, battler)
    end
  end


So yep. Lost. Don't have any idea what its trying to say.
Needs to be a script that mod's all the /fail windows it throws at you with ways you can fix the damn error, heh.
Title: Re: Reflection for RTAB?
Post by: tSwitch on September 12, 2008, 10:06:39 am
is tons below RTAB?

@active_battler doesn't exist in RTAB, and is simply 'battler' due to the fact that multiple battlers could be active at the same time.

try putting the reflect script and/or tons blow RTAB :)
Title: Re: Reflection for RTAB?
Post by: Jragyn on September 12, 2008, 07:00:09 pm
In interest of not dealing with Tons of errors, Tons is was originally placed beneath RTAB. I found the least /fails happened when they were below that monster of a script.

However, I wasn't sure where Reflect should be, so as you suggested, I tried it beneath Tons, above tons, beneath tons and RTAB, between, bleh bleh, still all coming up with the same error regarding, current_action.

Quote"Script 'Reflect' line 300: NoMethodError occurred.
  undefined method `current_action' for nil:NilClass."


Which to me, essentially means:

Quote"Script 'Reflect' line 300: Jeremy's retardation occurred.
  unknown hacking `RTAB_compatibility' for ass:Stupid."


Geezus!
There just needs to be a switch in RTAB:
Spoiler: ShowHide
Do you have other scripts you'd like to work with RTAB?
   Yes or No


x.x

Any other ideas, mister Namkcor?
  By the way, I rather like your weapon training script. There should be a functionality button within RTAB for that too.
Title: Re: Reflection for RTAB?
Post by: tSwitch on September 13, 2008, 04:28:59 pm
Quote from: jragyn00 on September 12, 2008, 07:00:09 pm
Any other ideas, mister Namkcor?
  By the way, I rather like your weapon training script. There should be a functionality button within RTAB for that too.


not really sure what to do at this point :/

And yeah, I was working on compatibility a while ago, but it got side-tracked.
after the Game in a Week I'll make it compatible for you :)
Title: Re: Reflection for RTAB?
Post by: Blizzard on September 15, 2008, 08:34:42 am
I'll check the scripts. It's just not compatible which I will fix. :P
Title: Re: Reflection for RTAB?
Post by: Jragyn on September 19, 2008, 02:20:42 am
geez, I'm sorry mister blizzard!
It always seems you get pulled into my problems with scripts. :P

But thanks!
I always appreciate the suport you give?
Title: Re: Reflection for RTAB?
Post by: Blizzard on September 19, 2008, 06:54:04 am
Don't worry about it. I thought I already made it compatible. Since I haven't, I'll have to fix it afterwards.