Main Menu
  • Welcome to The RPG Maker Resource Kit.

Weapon Graphic Settings for SBS

Started by Pots Talos, August 07, 2013, 08:10:13 PM

0 Members and 1 Guest are viewing this topic.

Pots Talos

Hello all! Hopefully someone can help me out with this.
I'm using Tankentai and trying to have my characters weapon turn invisible while in a transformation state.

I think all it really is, is that I don't know how to get the script to understand I only want my currently equipped weapon to be invisible when the actor is in state id 33

Any help would be much appreciated, thanks.


class Weapon
#--------------------------------------------------------------------------
# ++ Weapon Graphic Settings
#--------------------------------------------------------------------------
# Allows use of a seperate weapon graphic besides the one assigned
# from Iconset.png
#
# return "001-Weapon01" <- Weapon image file name.  If "", none is used.
#                          File must be in the .Graphics/Characters folder
#                          of your project.
#
# Notetag: <graphic: filename>
  def graphic
    case @id
    when 36
    return ""
  end
      if $game_actor.state_id == 33
      return "$Kaelaspanther"
   end
     
    # Default weapon graphic for unassigned Weapon IDs.
    return ""
  end