Main Menu
  • Welcome to The RPG Maker Resource Kit.

[SOLVED][VX] Tankentai Script Problem

Started by Tink4Dead, April 02, 2011, 05:06:59 AM

0 Members and 1 Guest are viewing this topic.

Tink4Dead

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. -.-'

Tink4Dead

Bump. I forgot to mention that I haven't a bit of scripting experience.

pacdiggity

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.
it's like a metaphor or something i don't know

Tink4Dead

  #--------------------------------------------------------------------------
  # * 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.

Tink4Dead


pacdiggity

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.
it's like a metaphor or something i don't know