RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Weapon Graphic Settings for SBS

0 Members and 1 Guest are viewing this topic.

*
Rep: +0/-0Level 56
RMRK Junior
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