Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Any idea of any script that has this feature?
Vexus
post Nov 13 2012, 07:30 AM
Post #1


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




HI, so I'm trying to find a decent script that let's me examine items in the inventory to show a more detailed explanation.

It's quite simple yet I can't seem to find any lol.

So if you know of any script like this, please let me know.

Thanks

This post has been edited by Vexus: Nov 13 2012, 07:31 AM


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   
Clord
post Nov 13 2012, 07:47 AM
Post #2


General Bastardo hates your guts!
Group Icon

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




Well there is this one.

http://forum.chaos-project.com/index.php?P...p;topic=11582.0

It does not exactly look pretty as far the how information is presented but it does give a bit more details about the items.

This post has been edited by Clord: Nov 13 2012, 07:50 AM


__________________________
Go to the top of the page
 
+Quote Post
   
Vexus
post Nov 13 2012, 07:53 AM
Post #3


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




That's the current inventory script I'm using to utilize the grid system and limit items.

Mine's edited but what I mean by detailed explanation is something similar to resident evil where in the inventory each item has a basic description but if you examine them a window pops up showing a much more detailed information.

Thank you anyway.

This post has been edited by Vexus: Nov 13 2012, 08:59 AM


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Nov 13 2012, 10:11 AM
Post #4


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




Try pasting this in a blank above main:

CODE
#===============================================================================
# ** Item Description Addon
#  Created by Jens of Zanicuud. Made exclusively for Vexus's Alive.
#  Credit also ForeverZer0 since I've recycled part of his Diary script.
#===============================================================================

#===============================================================================
# ** Item_Description module
# configure here the detail window properties
#===============================================================================
module Item_Description
  #items description
  Descriptions = {
    7 => "Some bandages. /n They are suitable to recover some damage",
    8 => "Useful instrument. /n Use it carefully",
  }
  Detail_x            = 160       #X of the detail window
  Detail_y            = 120       #Y of the detail window
  Detail_width        = 320       #Width of the detail window
  Detail_height       = 240       #Height of the detail window
  Detail_opacity      = 200       #Opacity of the detail window
  Default_description = "No description available."
  Detail_font_n       = "Verdana"              #font name
  Detail_font_s       = 24                     #font size
  Detail_font_c       = Color.new(255,255,255) #font color
end
#===============================================================================
# ** Detail Window
#===============================================================================
class Window_Detail < Window_Base
  #==========================================================================
  # * Initialization
  #==========================================================================
  def initialize(item_id)
    super(Item_Description::Detail_x,
          Item_Description::Detail_y,
          Item_Description::Detail_width,
          Item_Description::Detail_height)
    self.opacity = Item_Description::Detail_opacity
    self.contents = Bitmap.new(width - 32, height - 32)
    @item_id = item_id
    @lines   = []
    refresh
  end
  #==========================================================================
  # * Refresh (customized ForeverZer0 Diary Window)
  #==========================================================================
  def refresh
    self.contents.clear
      text = Item_Description::Default_description
    if Item_Description::Descriptions.include?(@item_id)
      text = Item_Description::Descriptions[@item_id]
    end
    self.contents.font.name = Item_Description::Detail_font_n
    self.contents.font.size = Item_Description::Detail_font_s
    # WARNING: Uses ForeverZer0 Bitmap Addon
    # Divide the current entries into lines based off the text size and length.
    @lines = self.contents.slice_text(text, self.contents.width)
    @lines.flatten!
    return if @lines.size == 0
    self.contents.dispose
    # Create bitmap to contain the lines.
    self.contents = Bitmap.new(self.width - 32, @lines.size * 32)
    self.contents.font.color = Item_Description::Detail_font_c
    # Draw each line.
    @lines.each_index {|i| self.contents.draw_text(0, i*32, 608, 32, @lines[i])} #i*32, 608, 32
  end
end

#===============================================================================
# ** Scene_Item (modified LittleDRAGO Scene_Item)
#===============================================================================
class Scene_Item
  #--------------------------------------------------------------------------
  # * Aliases
  #--------------------------------------------------------------------------
  alias joz_update             update
  #--------------------------------------------------------------------------
  # * Cancel Combination (aliased)
  #--------------------------------------------------------------------------
  def remove_detail
    @detail_window.dispose
    @detail_window = nil
    @invcom_window[0].active = true
    @invcom_window[0].visible = true
  end
  #--------------------------------------------------------------------------
  # * Update Command Window
  #--------------------------------------------------------------------------
  def item_detail                      
     @detail_window   = Window_Detail.new(@item.id)
     @detail_window.z = 9999
     @invcom_window[0].active = false
     @invcom_window[0].visible = false
     return
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    joz_update
    if @detail_window != nil
      if Input.trigger?(Input::B)
        remove_detail
      end
    end
  end
end


Instructions are in the first few lines.
It works exactly as ForeverZer0's Diary script.
This script won't work if you haven't his Diary script implemented (I know you have it, Vex...)

Jens


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
Vexus
post Nov 13 2012, 12:36 PM
Post #5


Level 19
Group Icon

Group: Revolutionary
Posts: 396
Type: Mapper
RM Skill: Intermediate




Thanks that worked wonderfully smile.gif

This can be closed.


__________________________
Current Project/s:
Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 11:20 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker