The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Pots Talos on August 07, 2013, 08:10:13 PM

Title: Weapon Graphic Settings for SBS
Post by: Pots Talos on August 07, 2013, 08:10:13 PM
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.

Code: [Select]
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