The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: AbsoluteIce on July 18, 2013, 04:33:41 PM

Title: [VXA] TheoAllen's Simple Polygon Status
Post by: AbsoluteIce on July 18, 2013, 04:33:41 PM
<TheoAllen's Simple Polygon Status>
Version: <1.0>
Author: <TheoAllen>
Translator: <AbsoluteIce>
Date: <July>, <13>, <2013>

Version History



Planned Future Versions


Description


This script will display a polygon parameter in the status menu

Features


Screenshots

(https://rmrk.net/proxy.php?request=http%3A%2F%2F3.bp.blogspot.com%2F-n2JFw54UXLI%2FUbBTJyx9YOI%2FAAAAAAAAAf4%2F6vUSLA3cjqU%2Fs320%2Fshape7.jpg&hash=9e6a525f93023424e887a7df7b6818bf47a83443)

Instructions

Put this script below materials, and above main in the script section.

Script


Code: [Select]
# =============================================================================
# TheoAllen - Simple Polgygon Status
# Version : 1.0
# Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
# (This script is translated by AbsoluteIce)
# -----------------------------------------------------------------------------
# Requires :
# >> Theo - Bitmap Extra addons v2.0 or later
# =============================================================================
($imported ||= {})[:Theo_PolygonStatus] = true
# =============================================================================
# CHANGE LOGS:
# -----------------------------------------------------------------------------
# 2013.06.06 - Finised script
# =============================================================================
=begin

  Introduction :
  This script will display a polygon parameter in the status menu
 
  How to use :
  Put this script below material and above main.
 
  Terms of use :
  Credit goes to TheoAllen for making the script. Don't claim this script
  as your own work.

  Note :
  This script will only change the look of the RTP status menu.
 
=end
# =============================================================================
# Configuration
# =============================================================================
module THEO
  module STATUS
    # =========================================================================
      Outline_Polygon_color   = Color.new(255,255,255)
      Outline_Polygon_radius  = 70
    # -------------------------------------------------------------------------
    # Options for the inside of the Polygon.
    # Color  >> Color of the lines of the polygon (red,green,blue)
    # Radius >> radius from the center of the polygon
    # =========================================================================
   
    # =========================================================================
      Params_Polygon_color    = Color.new(0,255,0)
      Params_Polygon_radius   = 60
    # -------------------------------------------------------------------------
    # Options for the outside of the Polygon.
    # Color  >> Color of the lines of the polygon (red,green,blue)
    # Radius >> radius from the center of the polygon
    # =========================================================================
   
  end
end
# =============================================================================
# End of Configuration
# =============================================================================
class Game_Battler < Game_BattlerBase
 
  def params_array
    return [self.atk,self.def,self.mat,self.mdf,self.agi,self.luk]
  end
 
end

class Window_Status < Window_Selectable
  if $imported[:Theo_BitmapAddons]
  include THEO::STATUS
 
  def draw_parameters(x, y)
    contents.draw_shape_params(x+50,y+70,@actor.params_array,Params_Polygon_radius,
      Params_Polygon_color)
    contents.draw_polygon(x+50,y+70,@actor.params_array.size,Outline_Polygon_radius,
      Outline_Polygon_color)
    6.times {|i| draw_actor_param(@actor, x+120, y + line_height * i, i + 2) }
  end
 
  def draw_actor_param(actor, x, y, param_id)
    change_color(system_color)
    draw_text(x, y, 120, line_height, Vocab::param(param_id))
    change_color(normal_color)
    draw_text(x + 60, y, 36, line_height, actor.param(param_id), 2)
  end
  end
end
Credits



Thanks


Support


Either post on this thread, or pm TheoAllen on RMRK.

Known Compatibility Issues

None that I know of as of now.

Demo

Unavaliable yet as of now.

Author's Notes


To use this script, you need TheoAllen's Bitmap Addons which can be found here http://rmrk.net/index.php/topic,48045.msg546067.html#msg546067 (http://rmrk.net/index.php/topic,48045.msg546067.html#msg546067)

Questions

None at the moment.



Terms of Use


Credit the creator, TheoAllen. Do not claim as your own. If you want to use for a commercial project, share the profit with him. And don't forget to give him a free copy of the game.[/list]
Title: Re: [VXA] TheoAllen's Simple Polygon Status
Post by: modern algebra on July 19, 2013, 02:55:30 AM
Neat! Be sure to thank TheoAllen for me, and thank you for translating! It is always nice to enjoy the fruits of labour from scripters from other language communities.

By the way, it is OK to keep the <>, but in the template they were mostly there just to indicate that it was something you edited and didn't keep. It would be OK to write just July 13, 2013, or just TheoAllen.
Title: Re: [VXA] TheoAllen's Simple Polygon Status
Post by: AbsoluteIce on July 19, 2013, 05:05:59 AM
Neat! Be sure to thank TheoAllen for me, and thank you for translating! It is always nice to enjoy the fruits of labour from scripters from other language communities.

By the way, it is OK to keep the <>, but in the template they were mostly there just to indicate that it was something you edited and didn't keep. It would be OK to write just July 13, 2013, or just TheoAllen.
Thanks, MA! I'll be sure to let Theo know :)
About the <> thing, I thought it looked more organize and neat, thats why I kept it that way.  :V