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
> Help++, Adds features to the help window
Night5h4d3
post Mar 10 2009, 11:26 AM
Post #1


The past tense
Group Icon

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




HELP++ [VX]
~ Allows more features for item/skill descriptions ~
by Enix2
v2.5


DESCRIPTION
This window shows skill and item explanations along with actor status.
But unlike the original help, this help allows for special formating. Such
features include:
> Letter-by-letter mode
> colored text
> 2 lines of item/skill description
> display player names
> display variables

SETUP
All other info is in the script, but to install you simply put above "main"
and below "Materials"

SCREENSHOTS
(these are 640px wide because I took them in a 640x480 format, working on
a screen resize module in which this script will be used in)
[Show/Hide] screenies

before:
Attached File  Image3.png ( 12.77K ) Number of downloads: 364

after:
Attached File  Image2.png ( 16.38K ) Number of downloads: 315


letter by letter in progress:
Attached File  Image7.png ( 12.61K ) Number of downloads: 229



SCRIPT

#==============================================================================
# ** Help++ [VX]
# ~ Allows more features for item/skill descriptions ~
#--------------------------------------------------------------
# * by Enix2
# * Square Scripting Studios
# * Released on: 03/10/2009
# * Version: 2.5
#==============================================================================
# * Description:
#---------------------------------------------------------------------------
# This window shows skill and item explanations along with actor status.
# But unlike the original help, this help allows for special formating. Such
# features include:
# > Letter-by-letter mode
# > colored text
# > 2 lines of item/skill description
#===========================================================================
# * How to use/Install:
#---------------------------------------------------------------------------
# Installation is simple, insert this script below the "Materials" entry
# but above any other scripts.
# NOTE: MAY REQUIRE SOME EDITING TO CERTAIN SCENES
# How to use this script is just as simple:
# ~ To use a second line: just put | after the first line and before the
# second in the item/skill description.
# ~ To use colored text: simply use \c[n] before the place you want the color
# to change(just like changing text color in messages). and use \c[0] to
# return the color to default.
# ~ To use letter by letter mode: letter by letter is automaticly dis-abled,
# but to change it, simply change this to false
#--------------------------------------------------------------------------

INSTANTANEOUS = true

#(For you ambitious scripters, you can change the value during the scene's
#creation. IE, one line after this: @help_window = Window_Help.new
#you put this: @help_window.instantaneous = true/false
#NOTE THAT THAT WONT WORK UNLESS YOU:
#A.) REPLACE THE OLD HELP WINDOW WITH THIS
#OR B.) USE THAT COMMAND ON SCENES CREATED BELOW THIS SCRIPT)
#===========================================================================
# * Author's notes:
#---------------------------------------------------------------------------
# > Only RRR [rpgrevolution.com] is allowed to host this at the moment. If
# you'd like to post this else-where, please notify me first.
# > If you see this script at a site that doesn't have prior permission or
# isn't posted upon by ME(enix2), report the topic.
# > If you'd like to use this script in a commercial game, please notify me
# first.
# > For bug's/help you can find me at: RRR [rpgrevolution.com], or just post
# your questions in the topic that you find this script
#---------------------------------------------------------------------------
class Window_Help < Window_Base
attr_accessor :instantaneous
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(x = 0, y = 0, width = Graphics.width, height = 76)
super(x, y, width, height)
self.contents = Bitmap.new(width - 32, height - 32)
@instantaneous = INSTANTANEOUS
@wait_count = 0
@count = Graphics.frame_count
@x = 0
@y = 0
end
#--------------------------------------------------------------------------
# * Set Text
# text : text string displayed in window
# align : alignment 0 : left, 1 : center, 2 : right
#--------------------------------------------------------------------------
def set_text(text, align = 0, delay = nil)
if @delay != nil
return
end
@previous_text = @text
@previous_align = @align
@delay = delay
if text != @text or align != @align
self.contents.clear
@text = text
@new_text = text.dup
@align = align
@x = 0
@y = 0
if @instantaneous
while (c = @new_text.slice!(/./m)) != nil
write_char©
end
end
end
self.visible = true
end
#--------------------------------------------------------------------------
# * Clear
#--------------------------------------------------------------------------
def clear
self.contents.clear
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
unless @delay.nil?
@delay -= 1
if @delay == 0
@delay = nil
set_text(@previous_text, @previous_align)
end
end
return if @instantaneous
if @new_text != nil and @new_text != ""
speed = 1
if Graphics.frame_count >= @count + speed
@count = Graphics.frame_count
c = @new_text.slice!(/./m)
if c != nil
write_char©
end
end
return
end
end
#--------------------------------------------------------------------------
# * Process and write the given character
#--------------------------------------------------------------------------
def write_char©
@new_text.gsub!(/\\V\[([0-9]+)\]/i) { $game_variables[$1.to_i] }
@new_text.gsub!(/\\N\[([0-9]+)\]/i) { $game_actors[$1.to_i].name }
@new_text.gsub!(/\\C\[([0-9]+)\]/i) { "\x01[#{$1}]" }
@new_text.gsub!(/\\\\/) { "\\" }
case c
when "\\"
c = "\\"
when "\x01"
@new_text.sub!(/\[([0-9]+)\]/, "")
self.contents.font.color = text_color($1.to_i)
return
when "|"
@y += 1
@x = 0
c = nil
end
line = self.contents.text_size("j").height
self.contents.draw_text(4 + @x, (line * @y) + (@y * 2) - 8, 40, 32, c)
@x += self.contents.text_size©.width
end
end

class Scene_Item
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_menu_background
@viewport = Viewport.new(0, 0, Graphics.width, Graphics.height)
@help_window = Window_Help.new
@help_window.viewport = @viewport
@item_window = Window_Item.new(0, 76, Graphics.width, Graphics.height - 76)
@item_window.viewport = @viewport
@item_window.help_window = @help_window
@item_window.active = false
@target_window = Window_MenuStatus.new(0, 0)
hide_target_window
end
end

class Scene_Skill
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_menu_background
@actor = $game_party.members[@actor_index]
@viewport = Viewport.new(0, 0, Graphics.width, Graphics.height)
@help_window = Window_Help.new
@help_window.viewport = @viewport
@status_window = Window_SkillStatus.new(0, 76, @actor)
@status_window.viewport = @viewport
@skill_window = Window_Skill.new(0, 132, Graphics.width, Graphics.height - 132, @actor)
@skill_window.viewport = @viewport
@skill_window.help_window = @help_window
@target_window = Window_MenuStatus.new(0, 0)
hide_target_window
end
end

class Scene_Equip
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_menu_background
@actor = $game_party.members[@actor_index]
@help_window = Window_Help.new
create_item_windows
@equip_window = Window_Equip.new(Graphics.height / 2, 76, @actor)
@equip_window.help_window = @help_window
@equip_window.index = @equip_index
@status_window = Window_EquipStatus.new(0, 76, @actor)
end
#--------------------------------------------------------------------------
# * Create Item Window
#--------------------------------------------------------------------------
def create_item_windows
@item_windows = []
for i in 0...EQUIP_TYPE_MAX
@item_windows[i] = Window_EquipItem.new(0, 228, Graphics.width, Graphics.height - 228, @actor, i)
@item_windows[i].help_window = @help_window
@item_windows[i].visible = (@equip_index == i)
@item_windows[i].y = 228
@item_windows[i].height = Graphics.height - 228
@item_windows[i].active = false
@item_windows[i].index = -1
end
end
end


DEMO
N/A

AUTHOR'S NOTES
> Only RRR [rpgrevolution.com] is allowed to host this at the moment. If
you'd like to post this else-where, please notify me first.

> If you see this script at a site that doesn't have prior permission or
isn't posted upon by ME(enix2), report the topic.

> If you'd like to use this script in a commercial game, please notify me
first.

> For bug's/help you can find me at: RRR[rpgrevolution.com], or just post
your questions in the topic that you find this script

> Please give credit if you use this script. (although, you dont have to,
if you don't, and make a game using it, i'll hunt you down XD)


__________________________
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
   
Heartofshadow
post Mar 10 2009, 12:12 PM
Post #2


Level 7
Group Icon

Group: Member
Posts: 95
Type: Developer
RM Skill: Intermediate




Hey, this could come in handy for my project. I'll mess around with it a bit today.

Did notice near the end of your "Comment Section" a smiley snuck in there. Shouldn't cause any problems as it's in a commented out section, but it still looks kinda funny. =P

Nice work, though.


-Heart of Shadow-


__________________________


"Feel the pain of those inferior beings as you burn in hell." --Kratos (Tales of Symphonia)
"How can I be expected to save the world, when I can't even save myself?" --Sysolos (Return of a Shadow Lord)
Go to the top of the page
 
+Quote Post
   
reijubv
post Mar 10 2009, 09:17 PM
Post #3


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




aha!
FInally!
I was trying to create this script just now, and you already made it!
Thanks!
This helps me a lot you know!
I will definitely use this and of course, credit you for it...!!

biggrin.gif


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Mar 10 2009, 10:36 PM
Post #4


The past tense
Group Icon

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




Well, talk about coincidence. biggrin.gif

(oh yeah, forgot to ask for people to give credit)


__________________________
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
   
Night5h4d3
post Mar 12 2009, 08:03 AM
Post #5


The past tense
Group Icon

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




Not really a bump, but I've updated this to version 2.5.

added features are:
\v[n] <- display n'th variable
\n[n] <- display n'th actor name

Mah gawd! I am SOO sorry guys, I created the script in 640x480 so the window's wouldn't fit if you plugged it into
the standard 544x416. FIXED NOW.


__________________________
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
   
Heartofshadow
post Mar 12 2009, 09:35 AM
Post #6


Level 7
Group Icon

Group: Member
Posts: 95
Type: Developer
RM Skill: Intermediate




Well, I haven't been able to get this to work in my project yet. I grabbed your latest version, as well.

My guess is it's a compatibility issue, because I have a couple KGC scripts, namely his Item Categorize script. I'll try sticking it in a test project and see how it works.


-Heart of Shadow-


__________________________


"Feel the pain of those inferior beings as you burn in hell." --Kratos (Tales of Symphonia)
"How can I be expected to save the world, when I can't even save myself?" --Sysolos (Return of a Shadow Lord)
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Mar 18 2009, 05:52 AM
Post #7


The past tense
Group Icon

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




bumparoo


__________________________
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 - 09:07 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker