#===============================================================================# Expanded Details# by: Xuroth# v0.9#-------------------------------------------------------------------------------# Intro: This script allows you to display details for any selected item. # You can use this for adding a bit more depth to your game. To view# details, just go to your Item Menu and press the Shift key!### Features:# - Display 10 lines of text for more info than other similar scripts# - Reads data from text files# - Skill Details# - Character Biography# - Shows custom pictures (Requested by LiTTleDRAgo)# # Planned Future Features:# - Unlimited lines# - Optional Detailed Stats# - and more!##-------------------------------------------------------------------------------# How to set up:# You will need 5 text files named 'Item_Detail.rxdata', # 'Weapon_Detail.rxdata', 'Armor_Detail.rxdata', 'Skill_Detail.rxdata',# and 'Actor_Detail.rxdata. These are simple .txt files renamed with # the .rxdata extension. The first 10 lines are reserved, but every 10# lines after that is used for each item. example:## lines 11-20 = object #1 in database(actors, skills, items, etc)##-------------------------------------------------------------------------------# Version History# -0.5 Initial Completion# -0.6 Updated some code, bug fixes# -0.7 Added Skill Descriptions, Initial release# -0.8 Added Character Bios, modified code# -0.9 Added custom graphics display, modified code##-------------------------------------------------------------------------------# Credits:# - Xuroth (for script)# - game_guy (for help with alias)# - DerVVulfman (help with basic coding and original idea)# - Blizzard# - ForeverZer0## Thanks to all the above scripters! Just by making your awesome scripts, you# all have inspired me to take up the art. Thanks for helping me with various# problems, and I hope to learn more from all of you!##===============================================================================

#=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=#### Configuration###=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=## For now, there are only a few constants that can be edited to customize the# the look. In future versions, there will be more to change as I add new# features.# TITLE_FONT -Define which font to use for the object name# TITLE_SIZE -font size for the object name# TITLE_COLOR -Item name color (R, G, B, O)# # DESC_FONT -Font style for the description text# DESC_SIZE -Size of the text in the description# DESC_COLOR -Color of Description text...## BIO_NAME -String that should be displayed for actor biographies# DESC_NAME -String for the 'Description:' header## USE_PIC -Set to true to use a picture from "Graphics/Pictures"# Thats it for now. Enjoy!#-------------------------------------------------------------------------------module Xuroth DESC_FONT = 'Tahoma' DESC_SIZE = 20 DESC_COLOR = Color.new (255, 255, 255, 255) #White is default

BIO_NAME = 'Biography:' DESC_NAME = 'Description:' #Set the value below to true to use a graphic in the window. For item, weapons, #skills, and armors, just name the files exactly like the object in the #database, only lowercase. These MUST be in the Graphics/Pictures folder. #If the picture does not exist, the system should be fine. Pics must be .png! USE_PIC = trueend

You need 4 text files to make this work. You need 5 text files to make this work. They have to be named "Armor_Detail.rxdata", "Item_Detail.rxdata", "Skill_Detail.rxdata", "Weapon_Detail.rxdata" and "Actor_Details.rxdata"(without the quotes). Place these in your /Data folder.Also, due to my scripting ability (or lack thereof), each item starts every 11th line. The first armor will display from line 11 to line 20 of the text file. The first ten lines of each file should be either empty or contain the placeholder text I included in the demo.I will try to update this later to allow the script to automagically determine the number of lines, and possibly make the window scrollable. But for now, this is it.

To use this, just insert above main. It only edits Scene_Item and Scene_Skill so as long as its below those, it should work just fine.Compatibility

Probably won't work with custom item windows or skill windows such as those used by fancy CMS'. This was designed from the DMS, and I am a n00b scripter after all. I may figure out a way to increase compatibility with CMS' laterAlso, this script uses aliased methods and does not rewrite any existing methods, only adds to them.Credits and Thanks

Xuroth (for making this script)

Jackatrades (for the original idea)

game_guy (for help with alias)

DerVVulfman (for help with basic coding and the original idea)

Blizzard (Inspiration)

ForeverZer0 (Inspiration and help with coding)

LiTTleDRAgo (requesting graphics)

Thanks to you guys, I was able to complete this system. You guys Rock!Author's Notes

Remember: You need the text files re-named as .rxdata files. You can grab mine from the demo and edit them to match your game (if you use it)I am reworking the code, so if any scripters have any advice on ways to improve the code, let me know!v1.0 will have a redesigned window layout.This is a VERY basic system. It has potential for more, but it is only my FIRST script.

If anyone has suggestions to improve the code, or suggestions to make the system better, feel free to post them. I plan to support my scripts, though it may take me a few days due to work.

By the way, this script, when completed will be a full fledged system capable of more than just "read a text file for x lines and put it in a window" (Also, when I say completed, the script will function, but compatibility is limited (with CMS'), but I have more feature ideas planned!)

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

If anyone has suggestions to improve the code, or suggestions to make the system better, feel free to post them. I plan to support my scripts, though it may take me a few days due to work.

By the way, this script, when completed will be a full fledged system capable of more than just "read a text file for x lines and put it in a window" (Also, when I say completed, the script will function, but compatibility is limited (with CMS'), but I have more feature ideas planned!)

I'm not sure how to make the window scrollable. Also, the way the text files are set up, its a nightmare to format them. The more lines to display, the more of a headache it is to set-up. I am brainstorming any ideas on how to rescript the system so that it can display more lines... I can edit the names to show up bigger. as for color, just look for where it says

D_ITEMCOLOR = Color.new(255, 255, 255, 255)in the configuration area, and change the numbers in that. it is set up as (Red, Green, Blue, Opacity).

I'll probably do some research and figure out how to scroll the window. I probably won't add more lines, as I will move the description area down, give it its own window, and add other information above it.

If you make the window contents larger than the window, then add input for the controls to scroll the bitmap, it will work fine. Window_Base doesn't have the implementation built in, but Window_Selectable does. It will automatically add little arrows at the top/bottom to show that the window can be scrolled. I'm sure you can find some scripts around here that implement it for some good examples.

Logged

I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

updated to 0.9... just one step away from a full system!@LiTTleDRAgo: I chose not to use custom pictures AS background, but I did feel that custom graphics should play a role. there fore the new script will look for .png files in your Graphics/Pictures folder that are named like the selected object.

This system may have a couple bugs in it, as quite a few appeared just before I was going to upload the demo. I updated the script, and it *should* work fine.