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.
Show Enemy States

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 97
2014 Best RPG Maker User - Engine2014 Most Unsung Member2013 Best RPG Maker User (Scripting)2012 Best RPG Maker User (Scripting)2012 Best Member2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Favourite Staff Member2011 Best Veteran2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Show Enemy States
Version: 1.0
Author: modern algebra
Date: July 13, 2009

Version History


  • <Version 1.0> 07.13.2009 - Original Release

Description


This script shows enemy states when targetting them in the DBS. It is recommended that it be used with Ziifee's State Icon Animation script or any other State cycling script, as it looks best when displaying only one icon at a time.

Features

  • Shows the states an enemy is afflicted by when targetting
  • COnfigurable to allow any number of states shown
  • Compatible with Ziifee's State Animation script

Screenshots



Instructions

Place this script in its own slot in the Editor, above Main and below all of the default scripts and other custom scripts.

Script


Code: [Select]
#==============================================================================
#  Show Enemy States
#  Version: 1.0
#  Author: modern algebra
#  Date: July 13, 2009
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#    This script shows enemy states when targetting them in the DBS. It is
#   recommended that it be used with Ziifee's State Icon Animation script or
#   any other State cycling script, as it looks best when displaying only one
#   icon at a time.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#    Place above Main and below other custom scripts in the Script Editor.
#==============================================================================
# ** Window_TargetEnemy
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased methods - draw_item, item_rect
#==============================================================================

class Window_TargetEnemy < Window_Command
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Constants
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  MA_SHOW_ICONS_NUM = 1 # Number of icons to show prefacing the enemy name
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Draw Item
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias mdlg_joy_drw_enmy_stt_drwitm_0gh3 draw_item
  def draw_item (index, *args)
    mdlg_joy_drw_enmy_stt_drwitm_0gh3 (index, *args)
    name_rect = item_rect(index)
    w = 24*MA_SHOW_ICONS_NUM
    icon_rect = Rect.new (name_rect.x - w - 4, name_rect.y, w + 4, name_rect.height)
    contents.clear_rect (icon_rect)
    # Draw Enemy State by Actor State method
    draw_actor_state (@enemies[index], icon_rect.x, icon_rect.y, w)
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Item Rect
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias drbr_jy_enmyststes_show_itmrect_7j24 item_rect
  def item_rect (*args)
    rect = drbr_jy_enmyststes_show_itmrect_7j24 (*args)
    rect.x += ((24*MA_SHOW_ICONS_NUM) + 4)
    rect.width -= ((24*MA_SHOW_ICONS_NUM) + 4)
    return rect
  end
end

Credit


  • modern algebra

Thanks

  • joy, for the request

Support


Please post in this topic for support

Known Compatibility Issues

Works with Ziifee's State Animation Script.
No known compatibility issues.


Creative Commons License
This script by modern algebra is licensed under a Creative Commons Attribution-Non-Commercial-Share Alike 2.5 Canada License.
« Last Edit: February 11, 2010, 09:49:40 PM by Modern Algebra »

pokeball joyOfflineFemale
*
Rep:
Level 85
I heard the voice of the salt in the desert
2012 Best RPG Maker User (Mapping)Project of the Month winner for June 20092010 Best RPG Maker User (Creativity)2011 Best RPG Maker User (Mapping)2011 Best RPG Maker User (Creativity)Winner - 2011 Winter Project of the Season2010 Best RPG Maker User (Mapping)2010 Best RPG Maker User (Graphical)2010 Best Artist2014 Best RPG Maker User - Graphics2014 Best RPG Maker User - Mapping2014 Best Artist2013 Best RPG Maker User (Graphical)2013 Best RPG Maker User (Mapping)2010 Most Unsung Member2010 Most Attractive Female Member
It works like a charm straight from install. Top notch work.