The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Tink4Dead on April 02, 2011, 05:06:59 AM

Title: [SOLVED][VX] Tankentai Script Problem
Post by: Tink4Dead on April 02, 2011, 05:06:59 AM
I'm having an issue with the Tankentai SBS, in the Sideview 2 (3.4d) script. Every time I get back-attacked, I get this:

QuoteScript 'Sideview 2 (3.4d)' line 1144: NoMethodError occurred.

undefined method 'mirror=' for nil:NilClass

I'm not sure if I should post the script, because, as everyone knows, it's incredibly long.


EDIT: I found a setting in one of the configs to allow me to disable back-attack. -.-'
Title: Re: Tankentai Script Problem
Post by: Tink4Dead on April 03, 2011, 08:40:20 AM
Bump. I forgot to mention that I haven't a bit of scripting experience.
Title: Re: Tankentai Script Problem
Post by: pacdiggity on April 03, 2011, 11:57:49 AM
At least post a link to the script.
Have you edited the script at all? At the very, very least post the line or clause that the error refers to.
Title: Re: Tankentai Script Problem
Post by: Tink4Dead on April 03, 2011, 05:09:14 PM
  #--------------------------------------------------------------------------
  # * Create Battlefloor Sprite -aliased
  #--------------------------------------------------------------------------
  alias create_battlefloor_n01 create_battlefloor
  def create_battlefloor
    create_battlefloor_n01
    @battlefloor_sprite.x = N01::FLOOR[0]
    @battlefloor_sprite.y = N01::FLOOR[1]
    @battlefloor_sprite.opacity = N01::FLOOR[2]
    # Mirror BattleFloor and Battleback when a surprise attack
    back_attack
    if $back_attack
      @battlefloor_sprite.mirror = true
      @battleback_sprite.mirror = true # <-The line in question
      $game_troop.surprise = true
    else 
      $game_troop.surprise = false
    end 
  end


It's the @battleback_sprite.mirror = true line. Can't post the whole script, though. No, I haven't edited it at all.
Title: Re: [VX] Tankentai Script Problem
Post by: Tink4Dead on April 06, 2011, 07:46:53 AM
Bump?
Title: Re: [VX] Tankentai Script Problem
Post by: pacdiggity on April 06, 2011, 09:38:34 AM
Three day bumps here, brother. The scripters here have lives as well.
You hardly need to bump if you're on top of the list anyway -_-
I don't have the scripts so don't expect me to do anything. All I have is what you've given us.