Item Detail Script
#1
Item Detail Script
by jackatrades
version 1.1
May 19, 2005

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


v1.1: + Support for Weapon and Armor description.
v1.0: + Support for Item description by pressing SHIFT in Item Menu.


Note: fonts/colors/theme seen above may not apply to yours.

What is it?
This script allows the user to view an item's detailed description by pressing Button A ([SHIFT]) while highlighting an item in the Item Menu. Along with the 7-line description, the window also displays the item's monetary value and effect (One Ally, All Allies, etc.). The description for each item can be added and modified by the game creator.


How does it work?
It works by sending the data of highlighted item in the Item Menu to a global variable, where it will be interpreted by the Window_ItemDetailView class to create a new window that has the item's icon graphic, name, amount owned, value, effect, and the detailed description. All of the elements said previously are obtained from the Database; however, the detailed description is obtained through the file "Data/Item_Detail.rxdata"

When the script obtains the highlighted item data, it will read the item's ID# (from the Database), and use it to find the right description lines in the .rxdata file. The system works as such:

[item_id] * 7 = Description Line 1
[item_id] * 7 + 1 = Description Line 2
...
[item_id] * 7 + 6 = Description Line 7

The 7 description lines are stored in respective variables, and used to write the text in the Item Detail window.

Please note that the 7th line of each item description will be written in a different color. In the demo's case, it's yellow. The purpose of the 7th line is to display the item's game effect. You may modify it to use the 7th line as another description line.


What's the purpose?
Small details may actually count to your game. Having this not only dissolves the problem of having one-line, 100-characters description limited by RPGXP in the Database, but the script also provides more room for detailed description of an item, as given by the game demo. You could talk about the item's origin, side effects, ingredients, etc. to fill up the 7-line descriptions.


Any known bugs?
  1. The script is designed to handle items that has no detailed description by assigning blank descriptions to the needed variables. This way, it should not cause a game error.
  2. The only "fatal" error is that the game will crash if the user tries to view a non-existant item's detail. This would only happen if there are no items in the Item Menu, however, because it is highlighting nothing.


How can I transfer the script into my own game?
Simple. Either copy and paste or merge everything you see in the Scene_Item class, and then create a new class called Window_ItemDetailView and put it below the Window_Item class. Paste the script from the demo game to your game.


Get it now and get three cookies free! (Demo in attachment)

ATTACHED

.rar   ItemDetailView.rar (Size: 390.77 KB / Downloads: 5)
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Modified Audio Encryption Script avatarmonkeykirby 0 2,672 07-28-2008, 01:00 PM
Last Post: avatarmonkeykirby
  Rotimikid's Enemy level Script ShockWave 0 2,825 08-24-2007, 01:00 PM
Last Post: ShockWave
  Script switch management GubiD 0 2,515 08-19-2007, 01:00 PM
Last Post: GubiD
  Nice game over script Moghunter 0 2,595 07-18-2007, 01:00 PM
Last Post: Moghunter
  Animated Options Script Samo the thief 0 2,581 06-18-2007, 01:00 PM
Last Post: Samo the thief
  Teleportation Script Digi 0 2,542 05-01-2007, 01:00 PM
Last Post: Digi
  Monster drop more than one item. Hima 0 2,550 04-25-2007, 01:00 PM
Last Post: Hima
  Luck Script Darklord3652 0 2,551 04-10-2007, 01:00 PM
Last Post: Darklord3652
  GameOver Menu Script sasuke89 0 2,486 06-08-2006, 01:00 PM
Last Post: sasuke89
  Gained item/gold window. Jimmie 0 2,584 08-28-2005, 01:00 PM
Last Post: Jimmie



Users browsing this thread: 1 Guest(s)