[VX] Stat points distribution system

Stat Distribution System
Version: 1.71
[size=2]By Lettuce

[/size]


Introduction

If you have played online game before, you will notice that some of them give you points upon level up and let you increase your stat as you like instead of having a pre-determined stats. This script mimics that system.

This script have 2 modes, regular mode where you get a fixed number of stats upon leveling up and 1 point will give you 1 stat increase.
Then there's RO (Ragnarok online) mode, where you gain a few points upon level up at lower level, but at higher level, you get more points per level up (calculated by formula)
and each stat will require more points for 1 increase at higher value. For example, you need 10 points to increase from 90 SPI to 91 SPI, but only 2 points to increase ATK from 2 to 3 (meaning, you can sacrify the points needed for the high stat and get several lower stats with the same amount of points :D)

Features
  • Give you the ability to increase hp, mp, atk, def, spi, agi, hit, eva and crit o.O
  • Mode toggle (normal and RO)
  • Can easily give your actors points
  • Does not interfere with normal character's growth (set the stat curve in database to 1 all the way from 1 to 99; this will disable natural growth
  • SHOULD work with any party switching / more than 4 actor per party scripts
  • Customizable maximum stats
  • Customizable starting points
  • Customizable stat increment
  • Replace the status menu?
  • Displays max atk, hit rate, evasion rate, critical rate
  • Displays actor name, class, states, exp, equipments, attributes etc.
  • Customizable font -_-;; (running out of feature)
Update History
2-May-08 : Version 1.0 increases atk (base atk and weapon bonus), max stat counts weapons bonus too. Now in version 1.1, the script only increase the base atk value, ignoring all weapon bonus (so if your max stat in game is 99, base atk 23 and weapon atk is 30; you can increase the base atk to 99. and with weapon bonus, you have total atk of 129!)

3-May-08 : Version 1.2; showing much more info, including equiped items and their stats bonus, max attack power, evasion, hit and critical rate

5-May-2008 : Version 1.3, now showing "Unequiped message" for unequiped slot rather than leaving it blank, 2 layout modes (for those who use very long Vocab for the 4 attributes), plays sound etc~

8-May-2008 : Feature update, now with exp bar, states display and lets you set a starting points [points given at the beginning of the game]

13-May-2008 : Feature update, now you can increase hit rate, evasion rate and critical rate. Points needed for each and increment amount for each are customizable

23-Nov-2008 : Fixed to support dual wielding.

Screenshots

http://i40.photobucket.com/albums/e218/ ... enie-4.jpg[/img]

Demo

Demo here~

Script
Script

Instructions

Calling the script:
You can use call script event and this code
  1. $scene = Scene_Stat_Dist.new(0)
Expand to see the code.
Or edit your menu scene

Giving Points:
  1.       $game_party.members[<member ID>].points += <amount of points>
  2. #$game_party.members[0].points += 5  <- this would give your first actor in the party 5 points
Expand to see the code.

or if you want to give point upon level up
under Game_Actor, in def change_exp, under the line level_up ; paste this
  1.              difference = @level - last_level
  2.       $game_actors[@actor_id].points += <amount of points>
Expand to see the code.



If you want to give points upon level up the same way as RO does, use this this one
  1. difference = @level - last_level
  2.       $game_actors[@actor_id].points += ((@level/5).floor+2).floor*difference
Expand to see the code.


FAQ

Q: How do i get unequiped icons like the ones in your screenshot!?
A: Replace your default iconset with this http://roxburian.com/IconSet.png Credit goes to Whitecat and Twilight (I just add 5 more icons). Then search for draw_icon and remove the # infront

Q: I found a bug! What do I do?
A: Post here :D! Though I have tested this script, I can't guarantee that it is bug free.

Q: I can't see any text!!
A: Change Fontname at the beginning of the script, to something like "Verdana" or "Arial"

Q: I love you
A: Yes, lets make babies

Compatibility

Should work with anything;

Credits and Thanks
me :0
Akin
GoldenShadow
Author's Notes

This script will part of my Ragnarok Online package, includes this script, RO style damage calculations etc etc

Terms and Conditions

Do whatever you like as long as you leave my name it it <3 Would be nice if you inform me about it though ^^
The demo link says that the file cannot be found...
Oh my, what bad first impression  :blush:

link fixed
This looks great, Lettuce. I look forward to your next version.
I was wondering if you can take back points that are already used so that if you decide that you want to increase something else, then you can add them to that instead.
You can't ^^

I might add a point reset feature in the next version though :tongue2:
Can you added more parameter, like Max HP, Max MP, Hit, Eva, Cri (like KGC Distribute Parameter VX: http://f44.aaa.livedoor.jp/~ytomy/tkool ... _parameter )
Yap~, will take a few hours  😘


Here to keep you happy is version 1.1 ^
Great script! thank you! 😆

its a very good work ;)
Glad you like it XD

and as requested by Phoenix Flame, the scene now showing HP, MP, max atk, evasion, hit rate, crit rate. And all equiped items; each showing their bonus stats
Wonderful! Can you add Max HP and Max MP option to increase?
Hmm, this is a nice script and I'm using it without any technical problems, but there are some visual issues.

http://i28.photobucket.com/albums/c206/ ... terror.png[/img]

As you can see, there are several places where text overlaps or is cut off. Is there any way to fix that?
WHere is THe Updated Version the script says 1.0
could someone point me in the right direction
Jirachiwish wrote:
WHere is THe Updated Version the script says 1.0
could someone point me in the right direction


The script in the demo is the 1.2 ;)
Thanks

Actually the updated one isnt there Hmm.........................
wonder where it is

Well wait your right i just needed to change the font

No triple postins ~ Atemu
The stat distrabution scene in the demo doesn't work for me here is the result. I havn't made any changes this is straight out of the current demo. Clicking on the stats doesn't appear to do anything it just flashes "Increase ATK by 1 point" quickly in the box instead of AGI or whatever the focused stat is.

http://i48.photobucket.com/albums/f203/ ... mple-1.jpg[/img]
Skie Fortress : It's because you change the game vocabulary to something very long  :tongue:. I could change some coordinate of the text for you ^_^

Jirachiwish: The script posted is the updated one, I just forgot to change the top bit >.<


Akin: Try changing the Fontname at the beginning of the script to something else :) (like "Verdana" or "Arial")

edit::
How's this Skie Fortress?
http://i40.photobucket.com/albums/e218/ ... ss_fix.jpg[/img]
Special Version Spoiler
#==============================================================================
# ** Stat points distribution system 1.2
#                                           By Lettuce.
#------------------------------------------------------------------------------
#  This script lets you distribute points onto your actor's stats
#  You can give points to your actors by using this code
#
#    $points[actor_id] += amount_of_points
#
#  If you want your actor to get points after leveling:
#  Under Game_Actor, in def change_exp, under the line level_up; paste this
#
#          difference = @level - last_level
#     $points[actor.id-1] += <amount_of_points>*difference
#
#            OR (if you want RO mode; explained below)
#
#     difference = @level - last_level
#     $points[actor.id-1] += ((@level/5).floor+2).floor*difference
#
# # It seems the game returns non 0 based array if we use game_party >.<;
#
#  **Note**
#  This script does not stop your actors from gaining stats points defined in
#  the database. It will just add to it.
#  Set the stats to 1 all the way in the database to disable growth :0
#
#  **Modes**
#  1 : Add one point to the attribute per point
#  2 : Use RO system, attribute with value needs more points to increase.
#     Explanation: In RO, if you got high stats, you need more points to
#               increase it. So if you have 90 ATK and 5 INT...You can
#               choose to use 10 points for 1 more ATK OR use that 10 points
#               to get 6 INT
#============================ Configuration ====================================
#this var is for storing points.If you got 10 chars in database,
#you need 10 zero's here.
$points = [0,0,0,0,0,0,0,0]
#Maximum attribute point you allow in your game
MaxStat = 99
#1 for normal mode, 2 or RO mode
Mode = 2
#You can chage font family and size here
Fontname = "Calibri"
Fontsize = 20
#How many stats will increase per point?
IncreaseBy = 1;
OFFSET = -10

#========================== End Configuration ==================================

#==============================================================================
# ** Lettuce_Window_Top
#------------------------------------------------------------------------------
#  This window displays Title message
#==============================================================================

class Lettuce_Window_Top < Window_Base
  def initialize
   super(0,0,544,70)
   self.contents = Bitmap.new(width-32,height-32)
   self.contents.font.name = Fontname
   self.contents.font.size = Fontsize
   refresh
   end
   
  def refresh
   self.contents.clear
   self.contents.draw_text(0,-10,544-32,32,"Stats distribution",1)
   self.contents.font.size = Fontsize-4
   self.contents.draw_text(0,10,544-32,32,"Press left or right to change actor",1)
  end
   
end
#==============================================================================
# ** Lettuce_Window_Points
#------------------------------------------------------------------------------
#  This window displays the attributes of a party member
#==============================================================================
class Lettuce_Window_Points < Window_Base
  def initialize(member_index)
   super(351,200,194,52)
   self.contents = Bitmap.new(width-32,height-32)
   self.contents.font.name = Fontname
   self.contents.font.size = Fontsize
   refresh(member_index)
  end
 
  def refresh(member_index)
   actor = $game_party.members[member_index]
   points = $points[actor.id-1]
   self.contents.draw_text(0,0,162,20,"Points: "+points.to_s)   
  end
end

#==============================================================================
# ** Lettuce_Window_Info
#------------------------------------------------------------------------------
#  This window displays the attributes of a party member
#==============================================================================

class Lettuce_Window_Info < Window_Base
  def initialize(member_index)
   super(0,71,350,346)
   self.contents = Bitmap.new(width-32,height-32)
   self.contents.font.name = Fontname
   self.contents.font.size = Fontsize
   refresh(member_index)
  end
   
  def refresh(member_index)
   actor = $game_party.members[member_index]
   self.contents.clear      
   draw_actor_face(actor,10,10,92)
   draw_actor_name(actor,120,10)
   self.contents.font.size = Fontsize
   self.contents.draw_text(190,30,200,20,"Class: "+actor.class.name)
   self.contents.draw_text(120,30,200,20,"Lv. "+actor.level.to_s)
 
   #s1 = actor.exp_s #total exp
   #s2 = actor.next_rest_exp_s #exp left to nex lvl
   #self.contents.draw_text(120,50,200,20,s1.to_s+" / "+s2.to_s)
   
   #Preparing bar colours
   back_color = Color.new(39, 58, 83, 255)
   
   str_color1 = Color.new(229, 153, 73, 255)
   str_color2 = Color.new(255, 72, 0, 255)
   
   def_color1 = Color.new(210, 255, 0, 255)
   def_color2 = Color.new(85, 129, 9, 255)
   
   spi_color1 = Color.new(99, 133, 161, 255)
   spi_color2 = Color.new(10, 60,107, 255)
   
   agi_color1 = Color.new(167, 125, 180, 255)
   agi_color2 = Color.new(90, 11, 107, 255)
 
  hp_color1 = Color.new(66, 114, 164, 255)
  hp_color2 = Color.new(122, 175, 229, 255)
 
  mp_color1 = Color.new(93, 50, 158, 255)
  mp_color2 = Color.new(145, 122, 229, 255)
   
  self.contents.fill_rect(120,67,104,7,back_color)
   self.contents.gradient_fill_rect(122,69,(actor.hp/actor.maxhp)*100,3,hp_color1,hp_color2)
  self.contents.draw_text(120,44,100,30,"HP",0)
  self.contents.draw_text(120,44,100,30,actor.hp.to_s + "/" + actor.maxhp.to_s,2)
 
  self.contents.fill_rect(120,90,104,7,back_color)
   self.contents.gradient_fill_rect(122,92,(actor.mp/actor.maxmp)*100,3,mp_color1,mp_color2)
  self.contents.draw_text(120,67,100,30,"MP",0)
  self.contents.draw_text(120,67,100,30,actor.mp.to_s + "/" + actor.maxmp.to_s,2)
 
  ##weapons
  weapon = $data_weapons[actor.weapon_id]
  shield = $data_armors[actor.armor1_id]
  helm =$data_armors[actor.armor2_id]
  body =$data_armors[actor.armor3_id]
  accessory =$data_armors[actor.armor4_id]
 
  bonus_atk = 0
  bonus_def = 0
  bonus_spi = 0
  bonus_agi = 0
  evasion = 0
  crit = 4
 
  if $data_actors[actor.id].critical_bonus
    crit +=4
  end
 
  if weapon
    bonus_atk += weapon.atk
    bonus_def += weapon.def
    bonus_spi += weapon.spi
    bonus_agi += weapon.agi
    if weapon.critical_bonus
      crit += 4
    end
  end
  if shield
    bonus_atk += shield.atk
    bonus_def += shield.def
    bonus_spi += shield.spi
    bonus_agi += shield.agi
    evasion += shield.eva
  end
    if helm
    bonus_atk += helm.atk
    bonus_def += helm.def
    bonus_spi += helm.spi
    bonus_agi += helm.agi
    evasion += helm.eva
  end
    if body
    bonus_atk += body.atk
    bonus_def += body.def
    bonus_spi += body.spi
    bonus_agi += body.agi
    evasion += body.eva
  end
    if accessory
    bonus_atk += accessory.atk
    bonus_def += accessory.def
    bonus_spi += accessory.spi
    bonus_agi += accessory.agi
    evasion += accessory.eva
  end

  draw_item_name(weapon,160,125+OFFSET,true)
  draw_item_name(shield,160,165+OFFSET,true)
  draw_item_name(helm,160,205+OFFSET,true)
  draw_item_name(body,160,245+OFFSET,true)
  draw_item_name(accessory,160,285+OFFSET,true)
 
  self.contents.font.size = Fontsize - 5
   self.contents.draw_text(10,120,100,20,Vocab::atk+": ")
   self.contents.draw_text(10,120,100,20,(actor.atk-bonus_atk).to_s+" + "+bonus_atk.to_s,2)
   
   self.contents.fill_rect(10,140,104,7,back_color)
   self.contents.gradient_fill_rect(12,142,((actor.atk-bonus_atk)*MaxStat)/100,3,str_color1,str_color2)
   
   self.contents.draw_text(10,150,100,20,Vocab::def+": ")
   self.contents.draw_text(10,150,100,20,(actor.def-bonus_def).to_s+" + "+bonus_def.to_s,2)
   
   self.contents.fill_rect(10,170,104,7,back_color)
   self.contents.gradient_fill_rect(12,172,((actor.def-bonus_def)*MaxStat)/100,3,def_color1,def_color2)
   
   self.contents.draw_text(10,180,100,20,Vocab::spi+": ")
   self.contents.draw_text(10,180,100,20,(actor.spi-bonus_spi).to_s+" + "+bonus_spi.to_s,2)
   
   self.contents.fill_rect(10,200,104,7,back_color)
   self.contents.gradient_fill_rect(12,202,((actor.spi-bonus_spi)*MaxStat)/100,3,spi_color1,spi_color2)
   
   self.contents.draw_text(10,210,100,20,Vocab::agi+": ")
   self.contents.draw_text(10,210,100,20,(actor.agi-bonus_agi).to_s+" + "+bonus_agi.to_s,2)
   
   self.contents.fill_rect(10,230,104,7,back_color)
   self.contents.gradient_fill_rect(12,232,((actor.agi-bonus_agi)*MaxStat)/100,3,agi_color1,agi_color2)
   
  if weapon
    hit_rate = weapon.hit
  else
    hit_rate = 95
  end
   
   
  self.contents.font.size = Fontsize - 5
  self.contents.font.color = Color.new(162,212,98,255)
  self.contents.draw_text(10,245,100,20,"Maximum ATK :",2)
  self.contents.draw_text(10,260,100,20,"Hit rate (%) :",2)
  self.contents.draw_text(10,275,100,20,"Evasion rate (%) :",2)
  self.contents.draw_text(10,290,100,20,"Critical Rate (%) :",2)
 
  self.contents.draw_text(120,245,60,20,actor.atk.to_s,0)
  self.contents.draw_text(120,260,60,20,hit_rate.to_s,0)
  self.contents.draw_text(120,275,60,20,(evasion+5).to_s,0)
  self.contents.draw_text(120,290,60,20,crit.to_s,0)
 
 
   if Mode == 2
     self.contents.font.size = Fontsize - 8
     self.contents.font.color = Color.new(155,199,206,255)
     self.contents.draw_text(23,100,125,20,"POINTS",2)
     self.contents.draw_text(29,110,125,20,"REQUIRED",2)
     self.contents.font.size = Fontsize - 4
     self.contents.draw_text(20,125,115,20,required(actor.atk-bonus_atk).to_s,2)
     self.contents.draw_text(20,155,115,20,required(actor.def-bonus_def).to_s,2)
     self.contents.draw_text(20,185,115,20,required(actor.spi-bonus_spi).to_s,2)
     self.contents.draw_text(20,215,115,20,required(actor.agi-bonus_agi).to_s,2)
   end

  self.contents.font.color = Color.new(155,199,206,255)
  self.contents.font.size = Fontsize - 8
  if weapon
  self.contents.draw_text(185,140+OFFSET,100,20,Vocab::atk+"+"+weapon.atk.to_s)
  self.contents.draw_text(185,150+OFFSET,100,20,Vocab::def+"+"+weapon.def.to_s)
  self.contents.draw_text(253,140+OFFSET,100,20,Vocab::spi+"+"+weapon.spi.to_s)
  self.contents.draw_text(253,150+OFFSET,100,20,Vocab::agi+"+"+weapon.agi.to_s)
  end

  if shield
  self.contents.draw_text(185,180+OFFSET,100,20,Vocab::atk+"+"+shield.atk.to_s)
  self.contents.draw_text(185,190+OFFSET,100,20,Vocab::def+"+"+shield.def.to_s)
  self.contents.draw_text(253,180+OFFSET,100,20,Vocab::spi+"+"+shield.spi.to_s)
  self.contents.draw_text(253,190+OFFSET,100,20,Vocab::agi+"+"+shield.agi.to_s)
  end
 
  if helm
  self.contents.draw_text(185,220+OFFSET,100,20,Vocab::atk+"+"+helm.atk.to_s)
  self.contents.draw_text(185,230+OFFSET,100,20,Vocab::def+"+"+helm.def.to_s)
  self.contents.draw_text(253,220+OFFSET,100,20,Vocab::spi+"+"+helm.spi.to_s)
  self.contents.draw_text(253,230+OFFSET,100,20,Vocab::agi+"+"+helm.agi.to_s)
  end
 
  if body
  self.contents.draw_text(185,260+OFFSET,100,20,Vocab::atk+"+"+body.atk.to_s)
  self.contents.draw_text(185,270+OFFSET,100,20,Vocab::def+"+"+body.def.to_s)
  self.contents.draw_text(253,260+OFFSET,100,20,Vocab::spi+"+"+body.spi.to_s)
  self.contents.draw_text(253,270+OFFSET,100,20,Vocab::agi+"+"+body.agi.to_s)
  end
 
  if accessory
  self.contents.draw_text(185,300+OFFSET,100,20,Vocab::atk+"+"+accessory.atk.to_s)
  self.contents.draw_text(185,310+OFFSET,100,20,Vocab::def+"+"+accessory.def.to_s)
  self.contents.draw_text(253,300+OFFSET,100,20,Vocab::spi+"+"+accessory.spi.to_s)
  self.contents.draw_text(253,310+OFFSET,100,20,Vocab::agi+"+"+accessory.agi.to_s)
  end
  end
 
  def required(base)
   return (((base-1)/10)+2).floor
  end
 
end

#==============================================================================
# ** Lettuce_Window_Help
#------------------------------------------------------------------------------
#  This window displays property of each attribute
#==============================================================================
class Lettuce_Window_Help < Window_Base
  def initialize(index)
   super(351,253,194,160)
   self.contents = Bitmap.new(width-32,height-32)
   self.contents.font.size = Fontsize - 6
   refresh(index)
  end
 
  def refresh(index)
   self.contents.clear
   case index
   when 0
     help_text = "Increase "+Vocab::atk+" by 1 point"
   when 1
     help_text = "Increase "+Vocab::def+" by 1 point"
   when 2
     help_text = "Increase "+Vocab::spi+" by 1 point"
   when 3
     help_text = "Increase "+Vocab::agi+" by 1 point"
   end
   
   self.contents.draw_text(0,0,180,20,help_text)
  end
 
end
 

#==============================================================================
# ** Scene_Stat_Dist
#------------------------------------------------------------------------------
#  Performs stat distribution process :)
#==============================================================================
class Scene_Stat_Dist < Scene_Base
  def initialize(menu_index=0)
   @menu_index = menu_index
  end
 
  def start
   super
   create_menu_background
   i1 = Vocab::atk
   i2 = Vocab::def
   i3 = Vocab::spi
   i4 = Vocab::agi
   @window_select = Window_Command.new(194,[i1,i2,i3,i4])
   if $position
     @window_select.index = $position - 1
   else
     @window_select.index = 0
   end
   
   @window_select.active = true
   @window_select.x = 351
   @window_select.y = 71
   
   @window_top = Lettuce_Window_Top.new
   @window_points = Lettuce_Window_Points.new(@menu_index)
   @window_info = Lettuce_Window_Info.new(@menu_index)
   @window_help = Lettuce_Window_Help.new(0)
  end
   
  def terminate
   super
   dispose_menu_background
   @window_top.dispose
   @window_points.dispose
   @window_info.dispose
   @window_help.dispose
   @window_select.dispose
  end
 
  def update
   update_menu_background
   @window_points.update
   @window_select.update
   @window_help.refresh(@window_select.index)
   @changes = 0
   if Input.trigger?(Input::B)
     Sound.play_cancel
     $scene = Scene_Map.new
   elsif Input.trigger?(Input::R)
     @menu_index += 1
     @menu_index %= $game_party.members.size
     $scene = Scene_Stat_Dist.new(@menu_index)
   elsif Input.trigger?(Input::L)
     @menu_index += $game_party.members.size - 1
     @menu_index %= $game_party.members.size
     $scene = Scene_Stat_Dist.new(@menu_index)
   elsif Input.trigger?(Input::C)
     #Points addition begins
     #which attribute
     if Mode == 1
      do_point_reg
     elsif Mode == 2
      do_point_rag
     end
   end 

  end
 
  def do_point_reg
   @att = @window_select.index
 
  actor = $game_party.members[@menu_index]
 
##weapons
  weapon = $data_weapons[actor.weapon_id]
  shield = $data_armors[actor.armor1_id]
  helm =$data_armors[actor.armor2_id]
  body =$data_armors[actor.armor3_id]
  accessory =$data_armors[actor.armor4_id]
 
  bonus_atk = 0
  bonus_def = 0
  bonus_spi = 0
  bonus_agi = 0
 
  if weapon
    bonus_atk += weapon.atk
    bonus_def += weapon.def
    bonus_spi += weapon.spi
    bonus_agi += weapon.agi
  end
  if shield
    bonus_atk += shield.atk
    bonus_def += shield.def
    bonus_spi += shield.spi
    bonus_agi += shield.agi
  end
    if helm
    bonus_atk += helm.atk
    bonus_def += helm.def
    bonus_spi += helm.spi
    bonus_agi += helm.agi
  end
    if body
    bonus_atk += body.atk
    bonus_def += body.def
    bonus_spi += body.spi
    bonus_agi += body.agi
  end
    if accessory
    bonus_atk += accessory.atk
    bonus_def += accessory.def
    bonus_spi += accessory.spi
    bonus_agi += accessory.agi
  end
 
     case @att
     when 0 #ATK
      if $points[actor.id-1] < 1
        Sound.play_cancel
      elsif (actor.atk-bonus_atk) == MaxStat
        Sound.play_cancel
      else
        $game_party.members[@menu_index].atk += IncreaseBy
        $points[$game_party.members[@menu_index].id-1] -= 1
        @changes += 1
      end
      
     when 1 #DEF
      if $points[actor.id-1] < 1
        Sound.play_cancel
      elsif (actor.def-bonus_def) == MaxStat
        Sound.play_cancel
      else
        $game_party.members[@menu_index].def += IncreaseBy
        $points[$game_party.members[@menu_index].id-1] -= 1
        @changes += 1
      end
      
     when 2 #SPI
      if $points[actor.id-1] < 1
        Sound.play_cancel
      elsif (actor.spi-bonus_spi) == MaxStat
        Sound.play_cancel
      else
        $game_party.members[@menu_index].spi += IncreaseBy
        $points[$game_party.members[@menu_index].id-1] -= 1
        @changes += 1
      end
     when 3 #AGI
      if $points[actor.id-1] < 1
        Sound.play_cancel
      elsif (actor.agi-bonus_agi) == MaxStat
        Sound.play_cancel
      else
        $game_party.members[@menu_index].agi += IncreaseBy
        $points[$game_party.members[@menu_index].id-1] -= 1
        @changes += 1
      end
     end
     if @changes > 0
      $scene = Scene_Stat_Dist.new(@menu_index)
     end
  end
 
  def do_point_rag
   @att = @window_select.index
 
  actor = $game_party.members[@menu_index]
 
##weapons
  weapon = $data_weapons[actor.weapon_id]
  shield = $data_armors[actor.armor1_id]
  helm =$data_armors[actor.armor2_id]
  body =$data_armors[actor.armor3_id]
  accessory =$data_armors[actor.armor4_id]
 
  bonus_atk = 0
  bonus_def = 0
  bonus_spi = 0
  bonus_agi = 0
 
  if weapon
    bonus_atk += weapon.atk
    bonus_def += weapon.def
    bonus_spi += weapon.spi
    bonus_agi += weapon.agi
  end
  if shield
    bonus_atk += shield.atk
    bonus_def += shield.def
    bonus_spi += shield.spi
    bonus_agi += shield.agi
  end
    if helm
    bonus_atk += helm.atk
    bonus_def += helm.def
    bonus_spi += helm.spi
    bonus_agi += helm.agi
  end
    if body
    bonus_atk += body.atk
    bonus_def += body.def
    bonus_spi += body.spi
    bonus_agi += body.agi
  end
    if accessory
    bonus_atk += accessory.atk
    bonus_def += accessory.def
    bonus_spi += accessory.spi
    bonus_agi += accessory.agi
  end
 
     case @att
     when 0 #ATK
      base_value = actor.atk-bonus_atk
      points = $points[actor.id-1]
      if enough_point(base_value,points)
        Sound.play_cancel
      elsif (actor.atk-bonus_atk) == MaxStat
        Sound.play_cancel
      else
        $game_party.members[@menu_index].atk += IncreaseBy
        $points[$game_party.members[@menu_index].id-1] -= required(base_value)
        @changes += 1
        $position = 1
      end
      
     when 1 #DEF
      base_value = actor.def-bonus_def
      points = $points[actor.id-1]
      if enough_point(base_value,points)
        Sound.play_cancel
      elsif (actor.def-bonus_def) == MaxStat
        Sound.play_cancel
      else
        $game_party.members[@menu_index].def += IncreaseBy
        $points[$game_party.members[@menu_index].id-1] -= required(base_value)
        @changes += 1
        $position = 2
      end
      
     when 2 #SPI
      base_value = actor.spi-bonus_spi
      points = $points[actor.id-1]
      if enough_point(base_value,points)
        Sound.play_cancel
      elsif (actor.spi-bonus_spi) == MaxStat
        Sound.play_cancel
      else
        $game_party.members[@menu_index].spi += IncreaseBy
        $points[$game_party.members[@menu_index].id-1] -= required(base_value)
        @changes += 1
        $position = 3
      end
     when 3 #AGI
      base_value = actor.agi-bonus_agi
      points = $points[actor.id-1]
      if enough_point(base_value,points)
        Sound.play_cancel
      elsif (actor.agi-bonus_agi) == MaxStat
        Sound.play_cancel
      else
        $game_party.members[@menu_index].agi += IncreaseBy
        $points[$game_party.members[@menu_index].id-1] -= required(base_value)
        @changes += 1
        $position = 4
      end
     end
     if @changes > 0
      $scene = Scene_Stat_Dist.new(@menu_index)
     end
  end
 
  def enough_point(base,points)
   required = (((base-1)/10)+2).floor
   if required > points
     return true
   elsif required <= points
     return false
   end
  end
 
  def required(base)
   return (((base-1)/10)+2).floor
  end
 
end
#==============================================================================
# ** Save, Load and Level up aliases
#------------------------------------------------------------------------------
class Scene_File < Scene_Base
  #-------------------------------Alias List
  alias lettuce_write_save_data write_save_data
  alias lettuce_read_save_data read_save_data
 
  def write_save_data(file)
   lettuce_write_save_data(file)
   Marshal.dump($points,           file)
  end
 
  def read_save_data(file)
   lettuce_read_save_data(file)
   $points           = Marshal.load(file)
  end
end
#==============================================================================
Expand to see the code.
That works perfectly. Thanks a bunch.
ya replacing the font got it to work. I also just downloaded the orginal font for the fun of it.
Version 1.3 is out!

-Display text "Unequiped" at empty equipment slot, rather than leaving it blank
-Fixes and improvements, position fix, improved navigation, play sound etc. (Thanks to Akin)
-2 layout mode, for those who uses long Vocab for their stats
-Fixed the max attacking power (now using RMVX formula)
-Actors now have a new attribute (points!), improve compability (Thanks GoldenShadow & Akin)
-and something else that I've probably forgot
I'm having an error trying to use this script with the profession script for the RMVX. Could you check this for me?
Says undefined error for class nil or something like this.
with only that much info, I can't  🤨

Give me the link to that script
Tell me where you placed both scripts
At which point did the error occur?
Which line of code did it say is causing the error?
Perhaps upload your game package ?
Hmm, I hate to bother you, but I'm having some problems when I try to use any version of this script above 1.2. I keep getting this error.

http://i28.photobucket.com/albums/c206/ ... error6.png[/img]

The other scripts that I'm using are.

Syvkal's Cogwheel Bars
Kylock's 8 Directional Movement
Woratana's Neo Save System
Dargor's Large Party
Akin's Weapon Leveling System + Large Party Patch

Also, judging from the demo, this scene replaces the status screen. Is there a way to keep them separate?
It is a separate scene from Scene_Status. In the demo, i just make the menu call for my scene instead of default one. So if you're just using the script, default status scene is completely uneffected.

as for the error, the most likely clashing script is Akin's weapon upgrade since it's something to do with the weapon, but i've test it out and our script works together like salt and pepper XD

I'll check out the other scripts *_*
Lettuce wrote:
with only that much info, I can't  🤨

Give me the link to that script
Tell me where you placed both scripts
At which point did the error occur?
Which line of code did it say is causing the error?
Perhaps upload your game package ?


I'll take some SS tonight at work, where I'm test-running the scripts.
foxbuster wrote:
Lettuce wrote:
with only that much info, I can't  🤨

Give me the link to that script
Tell me where you placed both scripts
At which point did the error occur?
Which line of code did it say is causing the error?
Perhaps upload your game package ?


I'll take some SS tonight at work, where I'm test-running the scripts.


The problem seems to be an incompatibility with this script below...
Can you check upon this please?

#==============================================================================
# ** Prexus - Job Changer (v1.0)
#------------------------------------------------------------------------------
#  This is a Job Changing system, made by Prexus. It does several things, up to
#  and including changing Jobs:
#    * You can change in between any Job in the 'Class' tab of the Database.
#    * Experience is totalled for characters and their Jobs, individually.
#    * Jobs gain levels, Jobs determine what skills you learn in the Class tab.
#    * Job Levels/Exp are remembered when changing jobs.
#    * An interface for changing jobs.
#    * Interface will show available/unavailable skills when highlighting a job
#      and pressing Shift.
#
#  It also includes a Window_Base method (draw_seperator,) that is useful for
#  drawing a fancy line to separate one area of a window from another, and the
#  Window_Confirm class. A subclass of Window_Selectable that creates a small
#  Yes/No confirmation window.
#
#  To call the Job Changer interface, use $scene = Scene_ClassChange.new
#  To increase the level of a specific job for an actor:
#    <#Game_Actor>.class_level_up(ID of Class)
#  For example:
#    $game_party.members[0].class_level_up(2)
#  Would increase the leading member's Warrior class level in the demo.
#
#  - Changelog (v1.0)
#    * Initial Release
#==============================================================================


ENEMY_CLASS_EXP = {
  1 => 1,
  2 => 4
}
ENEMY_CLASS_EXP.default = -1 # Don't Change This Value (-1)

class Game_Actor < Game_Battler
  attr_accessor :class_exp
  attr_accessor :class_level
  #--------------------------------------------------------------------------
  alias prex_prof_g_actor_setup setup
  #--------------------------------------------------------------------------
  def setup(actor_id)
    prex_prof_g_actor_setup(actor_id)
    @class_exp = {}
    @class_exp.default = 0
    @class_level = {}
    @class_level.default = 1
    define_skills
  end
  #--------------------------------------------------------------------------
  def define_skills(id = nil)
    id = @class_id if id == nil
    @skills = []
    for i in $data_classes[id].learnings
      learn_skill(i.skill_id) if i.level <= @class_level[id]
    end
  end
  #--------------------------------------------------------------------------
  def class_change_exp(exp, id = nil, show = false)
    id = @class_id if id == nil
    last_level = @class_level[id]
    last_skills = skills
    @class_exp[id] = [[exp, 9999999].min, 0].max
    while @class_exp[id] >= @exp_list[@class_level[id]+1] and @exp_list[@class_level[id]+1] > 0
      class_level_up(id)
    end
    while @class_exp[id] < @exp_list[@class_level[id]]
      class_level_down(id)
    end
    if show and @class_level[id] > last_level
      display_class_level_up(skills - last_skills, id)
    end
  end
  #--------------------------------------------------------------------------
  def class_exp_s(id = nil)
    id = @class_id if id == nil
    return @exp_list[@class_level[id]+1] > 0 ? @class_exp[id] : "-------"
  end
  #--------------------------------------------------------------------------
  def next_class_exp_s(id = nil)
    id = @class_id if id == nil
    return @exp_list[@class_level[id]+1] > 0 ? @exp_list[@class_level[id]+1] : "-------"
  end
  #--------------------------------------------------------------------------
  def next_class_rest_exp_s(id = nil)
    id = @class_id if id == nil
    return @exp_list[@class_level[id]+1] > 0 ?
      (@exp_list[@class_level[id]+1] - @class_exp[id]) : "-------"
  end
  #--------------------------------------------------------------------------
  def class_level_up(id = nil, adjust = false)
    id = @class_id if id == nil
    @class_level[id] += 1
    @class_exp[id] = @exp_list[@class_level[id]]
    if adjust
      define_skills(id)
    else
      define_skills
    end
  end
  #--------------------------------------------------------------------------
  def class_level_down(id = nil, adjust = false)
    id = @class_id if id == nil
    @class_level[id] -= 1
    @class_exp[id] = @exp_list[@class_level[id]]
    if adjust
      define_skills(id)
    else
      define_skills
    end
  end
  #--------------------------------------------------------------------------
  def class_gain_exp(exp, id = nil, show = false)
    id = @class_id if id == nil
    if double_exp_gain
      class_change_exp(@class_exp[id] + exp * 2, id, show)
    else
      class_change_exp(@class_exp[id] + exp, id, show)
    end
  end
  #--------------------------------------------------------------------------
  def class_change_level(level, id = nil, show = false)
    id = @class_id if id == nil
    level = [[level, 99].min, 1].max
    class_change_exp(@exp_list[level], id, show)
  end
  #--------------------------------------------------------------------------
  def level_up
    @level += 1
  end
  #--------------------------------------------------------------------------
  def class_id=(class_id)
    @class_id = class_id
    for i in 0..4     # Remove unequippable items
      change_equip(i, nil) unless equippable?(equips[i])
    end
    define_skills
  end
  #--------------------------------------------------------------------------
  def display_class_level_up(new_skills, id)
    $game_message.new_page
    text = sprintf(Vocab::ClassLevelUp, @name, $data_classes[id].name, Vocab::level, @level)
    $game_message.texts.push(text)
    for skill in new_skills
      text = sprintf(Vocab::ObtainSkill, skill.name)
      $game_message.texts.push(text)
    end
  end
end

module Vocab
  ObtainClassExp       = "%s Class EXP were received!"
  ClassLevelUp         = "%s is now %s %s %s!"
end

class Game_Troop < Game_Unit
  def class_exp_total
    exp = 0
    for enemy in dead_members
      next if enemy.hidden
      if ENEMY_CLASS_EXP[enemy.enemy.id] >= 0
        exp += ENEMY_CLASS_EXP[enemy.enemy.id]
      else
        exp += enemy.exp
      end
    end
    return exp
  end
end

class Scene_Battle < Scene_Base
  def display_exp_and_gold
    exp = $game_troop.exp_total
    gold = $game_troop.gold_total
    class_exp = $game_troop.class_exp_total
    $game_party.gain_gold(gold)
    text = sprintf(Vocab::Victory, $game_party.name)
    $game_message.texts.push('\|' + text)
    if exp > 0
      text = sprintf(Vocab::ObtainExp, exp)
      $game_message.texts.push('\.' + text)
    end
    if class_exp > 0
      text = sprintf(Vocab::ObtainClassExp, class_exp)
      $game_message.texts.push('\.' + text)
    end
    if gold > 0
      text = sprintf(Vocab::ObtainGold, gold, Vocab::gold)
      $game_message.texts.push('\.' + text)
    end
    wait_for_message
  end
  #--------------------------------------------------------------------------
  def display_level_up
    exp = $game_troop.exp_total
    class_exp = $game_troop.class_exp_total
    for actor in $game_party.existing_members
      last_level = actor.level
      last_skills = actor.skills
      actor.gain_exp(exp, true)
      actor.class_gain_exp(class_exp, nil, true)
    end
    wait_for_message
  end
end

class Scene_ClassChange < Scene_Base
  def start
    create_menu_background
    create_windows
  end
  #--------------------------------------------------------------------------
  def create_windows
    @party_window = Window_CurrentParty.new
    @class_window = Window_ClassPick.new(@party_window.member)
    @skill_window = Window_ClassSkills.new
    @show_window = Window_ShowSkills.new(@party_window.member)
    @help_window = Window_Help.new
    @help_window.visible = false
    @help_window.close
    @help_window.x = 48
    @help_window.y = 280
    @help_window.width = 448
    @help_window.create_contents
    @show_window.help_window = @help_window
    @confirm_window = Window_Confirm.new
  end
  #--------------------------------------------------------------------------
  def update_windows
    @party_window.update
    @class_window.update(@party_window.member)
    @skill_window.update
    @show_window.update
    @help_window.update
    @confirm_window.update
    if @party_window.active
      @skill_window.set(@party_window.member, nil)
    elsif @class_window.active
      @skill_window.set(@party_window.member, @class_window.item)
    end
  end
  #--------------------------------------------------------------------------
  def terminate
    super
    @party_window.dispose
    @class_window.dispose
    @skill_window.dispose
    @show_window.dispose
    @help_window.dispose
    @confirm_window.dispose
  end
  #--------------------------------------------------------------------------
  def update
    super
    update_windows
    update_input
  end
  #--------------------------------------------------------------------------
  def update_input
    if @party_window.active
      if Input.trigger?(Input::B)
        Sound.play_cancel
        $scene = Scene_Map.new
      elsif Input.trigger?(Input::C)
        Sound.play_decision
        @class_window.active = true
        @class_window.index = 0
        @party_window.active = false
      end
    elsif @class_window.active
      if Input.trigger?(Input::B)
        Sound.play_cancel
        @party_window.active = true
        @class_window.active = false
        @class_window.index = -1
      elsif Input.trigger?(Input::C)
        if @class_window.item.id == @class_window.member.class_id
          Sound.play_buzzer
          return
        end
        Sound.play_decision
        @confirm_window.visible = true
        @confirm_window.active = true
        @confirm_window.index = 0
        @confirm_window.open
        @class_window.active = false
      elsif Input.trigger?(Input::A)
        Sound.play_decision
        @show_window.set(@party_window.member, @class_window.item.id)
        @show_window.active = true
        @show_window.index = 0
        @show_window.open
        @help_window.visible = true
        @help_window.open
        @class_window.active = false
      end
    elsif @show_window.active
      if Input.trigger?(Input::B)
        Sound.play_cancel
        @class_window.active = true
        @show_window.active = false
        @show_window.index = -1
        @show_window.close
        @help_window.close
      end
    elsif @confirm_window.active
      if Input.trigger?(Input::B)
        Sound.play_cancel
        if @confirm_window.index == 1
          @confirm_window.active = false
          @confirm_window.index = -1
          @confirm_window.close
          @class_window.active = true
          return
        else
          @confirm_window.index = 1
          return
        end
      elsif Input.trigger?(Input::C)
        case @confirm_window.index
        when 0
          Sound.play_decision
          member = @class_window.member
          member.class_id = @class_window.item.id
          @confirm_window.active = false
          @confirm_window.index = -1
          @confirm_window.close
          @class_window.refresh
          @skill_window.refresh
          @class_window.active = true
        when 1
          @confirm_window.active = false
          @confirm_window.index = -1
          @confirm_window.close
          @class_window.active = true
          return
        end
      end
    end
  end
end

class Window_Base < Window
  def draw_seperator(x, y, width, height, color = Color.new(255, 255, 255))
    edge = (width / 4)
    self.contents.gradient_fill_rect(x, y, edge, height, Color.new(0, 0, 0, 0), color)
    self.contents.fill_rect(x + edge, y, width / 2, height, color)
    self.contents.gradient_fill_rect(x + width - edge, y, edge, height, color, Color.new(0, 0, 0, 0))
  end
end

class Window_CurrentParty < Window_Selectable
  def initialize
    super(48, 80, 256, 64)
    @item_max = 4
    @column_max = @item_max
    create_contents
    self.index = 0
    refresh
  end
  #--------------------------------------------------------------------------
  def member
    return $game_party.members[self.index]
  end
  #--------------------------------------------------------------------------
  def refresh
    for i in 0...@item_max
      rect = item_rect(i)
      self.contents.clear_rect(rect)
    end
    for i in 0...$game_party.members.size
      rect = item_rect(i)
      bitmap = Cache.character($game_party.members[i].character_name)
      sign = $game_party.members[i].character_name[/^[\!\$]./]
      if sign != nil and sign.include?('$')
        cw = bitmap.width / 3
        ch = bitmap.height / 4
      else
        cw = bitmap.width / 12
        ch = bitmap.height / 8
      end
      n = $game_party.members[i].character_index
      src_rect = Rect.new((n%4*3+1)*cw, (n/4*4)*ch, cw, ch)
      self.contents.blt(rect.x, rect.y, bitmap, src_rect, 255)
    end
  end
  #--------------------------------------------------------------------------
  def item_rect(index)
    rect = Rect.new(0, 0, 0, 0)
    rect.width = (contents.width + @spacing) / @column_max - @spacing
    rect.height = 32
    rect.x = index % @column_max * (rect.width + @spacing)
    rect.y = index / @column_max * 32
    return rect
  end
end

class Window_ClassPick < Window_Selectable
  def initialize(member = nil)
    super(48, 144, 256, 192)
    @item_max = $data_classes.size - 1
    create_contents
    @member = member
    self.index = -1
    self.active = false
    refresh
  end
  #--------------------------------------------------------------------------
  def update(member = nil)
    super()
    return if member == @member
    @member = member
    refresh
  end
  #--------------------------------------------------------------------------
  def member
    return @member
  end
  #--------------------------------------------------------------------------
  def item
    return $data_classes[self.index + 1]
  end
  #--------------------------------------------------------------------------
  def refresh
    for i in 0..@item_max
      rect = item_rect(i)
      self.contents.clear_rect(rect)
    end
    for i in 1..@item_max
      next unless $data_classes[i]
      y = (i-1) * WLH
      w = self.contents.width
      self.contents.font.color.alpha = (@member.class_id == $data_classes[i].id ? 128 : 255)
      self.contents.draw_text(0, y, w, WLH, $data_classes[i].name)
      next unless @member
      level = @member.class_level[$data_classes[i].id]
      self.contents.draw_text(0, y, w, WLH, "Lv. " + level.to_s, 2)
    end
  end
  #--------------------------------------------------------------------------
  def item_rect(index)
    rect = Rect.new(0, 0, 0, 0)
    rect.width = (contents.width + @spacing) / @column_max - @spacing
    rect.height = WLH
    rect.x = index % @column_max * (rect.width + @spacing)
    rect.y = index / @column_max * (WLH)
    return rect
  end
end

class Window_ClassSkills < Window_Base
  def initialize(member = nil, class_obj = nil)
    super(304, 80, 192, 256)
    create_contents
    @member = member
    @class_obj = class_obj
    refresh
  end
  #--------------------------------------------------------------------------
  def member
    return @member
  end
  #--------------------------------------------------------------------------
  def item
    return @class_obj
  end
  #--------------------------------------------------------------------------
  def set(member, class_obj)
    old_member = @member
    @member = member
    old_class_obj = @class_obj
    @class_obj = class_obj
    refresh if (old_member != @member) or (old_class_obj != @class_obj)
  end
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    return unless @member
    c = (@class_obj != nil ? @class_obj : $data_classes[@member.class_id])
    x, y = 0, 0
    w = self.contents.width
    self.draw_actor_face(@member, x, y, 48)
    self.draw_actor_name(@member, x + 52, y)
    self.contents.draw_text(x + 52, y + WLH, w, WLH, $data_classes[@member.class_id].name)
    self.draw_actor_level(@member, x, y + WLH*2)
    self.draw_icon(142, self.contents.width - 24, y + WLH*2)
    self.contents.draw_text(x, y + WLH*2, self.contents.width - 12, WLH, 'Skills', 2)
    self.draw_seperator(x, y + WLH * 3 + 11, w, 2)
    return unless @class_obj
    self.contents.draw_text(x, y + WLH*4, w, WLH, c.name)
    self.contents.font.color = system_color
    self.contents.draw_text(x, y + WLH*5, w, WLH, "Class #{Vocab::level_a}")
    self.contents.font.color = normal_color
    self.contents.draw_text(x, y + WLH*5, w, WLH, @member.class_level[c.id], 2)
    s1 = @member.class_exp_s(c.id)
    s2 = @member.next_class_rest_exp_s(c.id)
    s_next = sprintf(Vocab::ExpNext, Vocab::level)
    self.contents.font.color = system_color
    self.contents.draw_text(x, y + WLH * 7, w, WLH, Vocab::ExpTotal)
    self.contents.draw_text(x, y + WLH * 8, w, WLH, s_next)
    self.contents.font.color = normal_color
    self.contents.draw_text(x, y + WLH * 7, w, WLH, s1, 2)
    self.contents.draw_text(x, y + WLH * 8, w, WLH, s2, 2)
  end
end

class Window_ShowSkills < Window_Selectable
  def initialize(member, class_id = nil)
    super(48, 80, 448, 200)
    @member = member
    @class_id = (class_id != nil ? class_id : @member.class_id)
    @item_max = $data_classes[@class_id].learnings.size
    @column_max = 3
    create_contents
    self.index = -1
    self.active = false
    self.openness = 0
    refresh
  end
  #--------------------------------------------------------------------------
  def set(member, class_id)
    old_member = @member
    @member = member
    old_class_id = @class_id
    @class_id = class_id
    @item_max = $data_classes[@class_id].learnings.size unless @class_id == nil
    create_contents
    refresh
  end
  #--------------------------------------------------------------------------
  def refresh
    return if @class_id == nil
    return if $data_classes[@class_id].learnings.empty?
    for i in 0...@item_max
      rect = item_rect(i)
      learning = $data_classes[@class_id].learnings[i]
      next unless learning
      self.contents.font.color.alpha = (@member.class_level[@class_id] >= learning.level ? 255 : 128)
      self.contents.draw_text(rect, $data_skills[learning.skill_id].name)
    end
  end
  #--------------------------------------------------------------------------
  def update_help
    if $data_classes[@class_id].learnings.empty?
      self.help_window.set_text('')
      return
    end
    level = $data_classes[@class_id].learnings[self.index].level
    skill = $data_skills[$data_classes[@class_id].learnings[self.index].skill_id]
    self.help_window.set_text(skill == nil ? '' : "[Level #{level}] #{skill.description}")
  end
end

class Window_Confirm < Window_Selectable
  def initialize(index = -1)
    super(192, 168, 160, 80)
    create_contents
    @item_max = 2
    @column_max = 2
    self.index = index
    self.active = false
    self.openness = 0
    refresh
  end
  #--------------------------------------------------------------------------
  def refresh
    for i in 0..@item_max
      rect = item_rect(i)
      self.contents.clear_rect(rect)
    end
    self.contents.draw_text(0, 0, self.contents.width, WLH, "Confirm?", 1)
    rect = item_rect(0)
    self.contents.draw_text(rect, "Yes", 1)
    rect = item_rect(1)
    self.contents.draw_text(rect, "No", 1)
  end
  #--------------------------------------------------------------------------
  def item_rect(index)
    rect = Rect.new(0, 0, 0, 0)
    rect.width = (contents.width + @spacing) / @column_max - @spacing
    rect.height = WLH
    rect.x = index % @column_max * (rect.width + @spacing)
    rect.y = (index / @column_max * WLH) + WLH
    return rect
  end
end
Expand to see the code.
I've just tried it out, and both script works together with no error whatsoever  :shock:

But again, telling me that is just doesn't work won't help me find the problem.
What were you doing when this error appear?
Which line of script does the error say?
Any other scripts?
Lettuce wrote:
I've just tried it out, and both script works together with no error whatsoever  :shock:

But again, telling me that is just doesn't work won't help me find the problem.
What were you doing when this error appear?
Which line of script does the error say?
Any other scripts?


Well, I updated your script to the newest version and it worked... http://www.hbgames.org/forums/Smileys/default/surprise.png[/img]
Now, another issue... happens to be that my menu system is 100% plain white. Is there somewhere I can change your script's font colors?
disable my colouring by putting a # in front of every instance of:
self.contents.font.color = Color.new(xxx,xxx,xxx,xxx)
Expand to see the code.


if you want to change the colour, place that code above just before draw_text function. And replace the xxx with color number:

Color.new(red,green,blue,255)

example: Color.new(225,132,0,255) will give you orange colour


:thumb:
Lettuce wrote:
disable my colouring by putting a # in front of every instance of:
self.contents.font.color = Color.new(xxx,xxx,xxx,xxx)
Expand to see the code.


if you want to change the colour, place that code above just before draw_text function. And replace the xxx with color number:
Color.new(red,green,blue,255)
example: Color.new(225,132,0,255) will give you orange colour
:thumb:

Sweet! I'll test it ASAP...

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=46347