Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Extra Info in Menu
onidsouza
post Nov 10 2008, 01:19 PM
Post #1


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




Extra Info in Menu (Version 1.5)




Hello People I just created a new Script that creates a new info in the stats menu, it's very simple and i am making it better. I used it to put on the stats menu a Extra Level (Like level in using the bathroom, by example).

Demo

In Version 1.5:
-show diferent values for diferent actors
-Only show numbers

In Version 1.0:
-show the same stats or level value for the hole party
-Only show numbers

Here is the script:



#==============================================================================
# Window_Status
#------------------------------------------------------------------------------
# Janela que exibe os status dos personagens.
#==============================================================================
class Window_Status < Window_Base


#--------------------------------------------------------------------------
# Inicialização do objeto
# actor : herói
#--------------------------------------------------------------------------
def initialize(actor)
super(0, 0, 544, 416)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# Atualização
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_name(@actor, 4, 0)
draw_actor_class(@actor, 128, 0)
draw_actor_face(@actor, 8, 32)
draw_basic_info(128, 32)
draw_parameters(32, 160)
draw_exp_info(288, 32)
draw_equipments(288, 160)
draw_actorstatus(288, 300)
end
#--------------------------------------------------------------------------
# Exibição de informações básicas
# x : exibe na coordenada X
# y : exibe na coordenada Y
#--------------------------------------------------------------------------
def draw_basic_info(x, y)
draw_actor_level(@actor, x, y + WLH * 0)
draw_actor_state(@actor, x, y + WLH * 1)
draw_actor_hp(@actor, x, y + WLH * 2)
draw_actor_mp(@actor, x, y + WLH * 3)
end
#--------------------------------------------------------------------------
# Exibição dos parâmetros
# x : exibe na coordenada X
# y : exibe na coordenada Y
#--------------------------------------------------------------------------
def draw_parameters(x, y)
draw_actor_parameter(@actor, x, y + WLH * 0, 0)
draw_actor_parameter(@actor, x, y + WLH * 1, 1)
draw_actor_parameter(@actor, x, y + WLH * 2, 2)
draw_actor_parameter(@actor, x, y + WLH * 3, 3)
end
#--------------------------------------------------------------------------
# Exibição da experiência
# x : exibe na coordenada X
# y : exibe na coordenada Y
#--------------------------------------------------------------------------
def draw_exp_info(x, y)
s1 = @actor.exp_s
s2 = @actor.next_rest_exp_s
s_next = sprintf(Vocab::ExpNext, Vocab::level)
self.contents.font.color = system_color
self.contents.draw_text(x, y + WLH * 0, 180, WLH, Vocab::ExpTotal)
self.contents.draw_text(x, y + WLH * 2, 180, WLH, s_next)
self.contents.font.color = normal_color
self.contents.draw_text(x, y + WLH * 1, 180, WLH, s1, 2)
self.contents.draw_text(x, y + WLH * 3, 180, WLH, s2, 2)
end
#--------------------------------------------------------------------------
# Exibição dos equipamentos
# x : exibe na coordenada X
# y : exibe na coordenada Y
#--------------------------------------------------------------------------
def draw_equipments(x, y)
self.contents.font.color = system_color
self.contents.draw_text(x, y, 120, WLH, Vocab::equip)
for i in 0..4
draw_item_name(@actor.equips[i], x + 16, y + WLH * (i + 1))
end
end
#------------------------------------------------------------------------
class Game_Actors
def initialize
@data = []
end
def [](actor_id)
if @data[actor_id] == nil and $data_actors[actor_id] != nil
@data[actor_id] = Game_Actor.new(actor_id)
end
return @data[actor_id]
end
end
#------------------------------------------------------------------------
#Level de Exercito
#
#------------------------------------------------------------------------
def draw_actorstatus(x, y)
self.contents.font.color = system_color
self.contents.draw_text(x, y, 200, WLH, "Extra Level or Info Here")
self.contents.font.color = normal_color
if @actor.id == 1
actorid = $game_variables[1]
end
if @actor.id == 2
actorid = $game_variables[2]
end
if @actor.id == 3
actorid = $game_variables[3]
end
self.contents.draw_text(x, y + 30, 120, WLH, actorid)
end
end





[Show/Hide] Configuration


This Script Creates a new level or stats in menu, it uses diferent variables for diferent caracters.

To change the actors used, find any one of this lines:
if @actor.id == 1
if @actor.id == 2
if @actor.id == 3

chose one and change the number to the ID of the actor that you want to use

To change the variables that you are using, find this line, under the line : if @actor.id == "actor id here" were actor id here is the id of the actor that will use this variable. (ex. to set actor 1 to variable 1, you will modify the line under : if @actor.id == 1)

actorid = $game_variables[variable number here]

change variable number here to variable ID that you will use.

To change the stats name find this line:

self.contents.draw_text(x, y, 200, WLH, "Extra Level or Info Here")

and change Extra Level or Info Here to the name that you want.

To change the value of the status, change the value of the variable.

To Add this information to an extra actor, add a line like this, before : self.contents.draw_text(x, y + 30, 120, WLH, actorid)

if @actor.id == Actor Id here
actorid = $game_variables[variable number here]
end



Screenshots are attached.

It's my first script so it's very simple. Sorry for my english i am from Brazil.


This post has been edited by onidsouza: Nov 12 2008, 08:43 AM
Attached File(s)
Attached File  Screenshot1.bmp ( 708.18K ) Number of downloads: 510
Attached File  Screenshot2.bmp ( 708.18K ) Number of downloads: 265
 


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
The Wizard 007
post Nov 10 2008, 10:33 PM
Post #2


Jack of all trades
Group Icon

Group: Revolutionary
Posts: 118
Type: Developer
RM Skill: Skilled




This script can actually become very useful if implemented properly. There are many possibilities to this script. Nice work.


__________________________
Currently working on:

Underground Syndicate (mafioso/modern type RPG)
Mind Maze (old school dungeon crawler with a different feel)
Dragon Adventure (Dragon Quest type fangame with more customization)
Dark Grind (Survival horror RPG)
Go to the top of the page
 
+Quote Post
   
leqesai
post Nov 11 2008, 07:04 AM
Post #3


Level 2
Group Icon

Group: Member
Posts: 16
Type: Writer
RM Skill: Intermediate




QUOTE (The Wizard 007 @ Nov 10 2008, 11:33 PM) *
This script can actually become very useful if implemented properly. There are many possibilities to this script. Nice work.


Any chance of getting some screenshots of what exactly this script changes/adds?

Go to the top of the page
 
+Quote Post
   
The Tao
post Nov 11 2008, 08:18 AM
Post #4


Level 20
Group Icon

Group: Revolutionary
Posts: 405
Type: None
RM Skill: Undisclosed




What does this script do?
I don't quite understand.

Screenshots would be a great aid.


__________________________
Apparently I am back.
Go to the top of the page
 
+Quote Post
   
onidsouza
post Nov 11 2008, 02:35 PM
Post #5


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




I update the post, there is a Demo and 2 Screenshots now smile.gif


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
onidsouza
post Nov 22 2008, 03:32 PM
Post #6


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




People if you don't comment i can't make the script better! i Don't know wath you all want!


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Nov 22 2008, 03:54 PM
Post #7


The past tense
Group Icon

Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed




well, it could be that this script is fine, you never know... (looks fine)


__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 03:19 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker