Yes, first I can't lift my head.
I always feel lack of study and understanding.
Ths is part of the screen I was working on.
(There is no description extension in the original!)
I want to merge Kategoryzacja przedmiotów [XP] (
http://www.ultimateam.pl/viewtopic.php?t=9028) with a nice script made by kyonides (
https://www.save-point.org/thread-7588-post-50736.html).
(I hope kyonides doesn't feel bad at my request. I like both kyonides and Ayene's scripts.<3)
Don't worry about window size compatibility!
As you can see in the example image, I can handle basic scripts such as window size and movement.
,,,Too much dependence on friends. So sorry (ᵕ̣̣̣̣̣̣﹏ᵕ̣̣̣̣̣̣)
This is the last time. I won't bother my friends ever since.
But can you help me one last time?
Some time ago I published KItem and KItem + KSkillShop... I don't know if any of them already includes what you're looking for. Right, it might not look exactly like the one on the screenshot above but customizing it isn't an issue here as far as I can see.
You don't have a KItem script. You have a KItemRefill script, but no KItem. I looked. And I found a flaw in KItemDesc (see the thread).
zlsl? That's a nice script, but a bit limited. I would use element tagging ito separate the items into their categories instead of listing all of them in those arrays.
In Kategoryzacja przedmiotów by Ayene, the initialize and refresh methods of Window_Item are rewritten.
in KItemDesc by kyonides, the initialize and draw_item methods of Window_Item are rewritten. And Scene_Ttem's Main was rewritten with its own main_loop method added.
To use both, you WOULD need to have an initialize method for Window_Item that combines both.
SO.....
Place Kyo's script ABOVE Ayane's Category script. Then place this patch below both:
Code:
#==============================================================================
# ** DerVV's Patch for KItemDesc and Kategoryzacja przedmiotów
# Uses code based on kyonides's and ayane's work
#==============================================================================
#==============================================================================
# ** Window_Item
#------------------------------------------------------------------------------
# This window displays items in possession on the item and battle screens.
#==============================================================================
class Window_Item < Window_Selectable
#--------------------------------------------------------------------------
# * Includables
#--------------------------------------------------------------------------
include AYE::ITEM_CAT
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
battle = $game_temp.in_battle
w = battle ? 640 : 320
super(0, 64, w, 352)
if battle
self.y = 64
self.height = 256
self.back_opacity = 160
else
super(0, 64, 640, 352)
end
@column_max = 2
unless $game_temp.in_battle
category(0)
self.active = false
end
refresh
self.index = 0
end
end
Actually I gotta say that the latest version of KItemDesc I published recently has overwritten Window_Item's refresh method to include some new feature we had been talking about lately...
EDIT
I wonder why the title changed to "menu categories and menu descriptions" in Korean...

(11-24-2019, 07:46 AM)교니 데스 Wrote: [ -> ]Actually I gotta say that the latest version of KItemDesc I published recently has overwritten Window_Item's refresh method to include some new feature we had been talking about lately... 
EDIT
I wonder why the title changed to "menu categories and menu descriptions" in Korean... 
What do you mean?
Your script is really cool. I'm impressed.
+ Oh, the title seems to be a mistake. I fixed it now.
I didn't know I made a mistake in the title by making Google Translator work all the time.
(11-24-2019, 05:01 AM)DerVVulfman Wrote: [ -> ]You don't have a KItem script. You have a KItemRefill script, but no KItem. I looked. And I found a flaw in KItemDesc (see the thread).
zlsl? That's a nice script, but a bit limited. I would use element tagging ito separate the items into their categories instead of listing all of them in those arrays.
In Kategoryzacja przedmiotów by Ayene, the initialize and refresh methods of Window_Item are rewritten.
in KItemDesc by kyonides, the initialize and draw_item methods of Window_Item are rewritten. And Scene_Ttem's Main was rewritten with its own main_loop method added.
To use both, you WOULD need to have an initialize method for Window_Item that combines both.
SO.....
Place Kyo's script ABOVE Ayane's Category script. Then place this patch below both:
Code:
#==============================================================================
# ** DerVV's Patch for KItemDesc and Kategoryzacja przedmiotów
# Uses code based on kyonides's and ayane's work
#==============================================================================
#==============================================================================
# ** Window_Item
#------------------------------------------------------------------------------
# This window displays items in possession on the item and battle screens.
#==============================================================================
class Window_Item < Window_Selectable
#--------------------------------------------------------------------------
# * Includables
#--------------------------------------------------------------------------
include AYE::ITEM_CAT
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
battle = $game_temp.in_battle
w = battle ? 640 : 320
super(0, 64, w, 352)
if battle
self.y = 64
self.height = 256
self.back_opacity = 160
else
super(0, 64, 640, 352)
end
@column_max = 2
unless $game_temp.in_battle
category(0)
self.active = false
end
refresh
self.index = 0
end
end
First of all, sorry for the slow response and thank you for your help!
I'm impressed by the magic.
I didn't want to bother my friend, but I want to talk about a bug he patched him.
First of all, the script works well without crashing!
However, if you press (Input :: B) to exit the menus and maps, the item window remains. Does typing '@ item_window.dispose' solve the problem?
I put 'dispose' in several places and the item window remains on the map.
Hey, I'm a werewolf. We gotta deal with the preternatural daily.
And check the updated KItemDesc thread.

Yeah, I gotta admit I revisited my thread once again to finally implement what I had left out by mistake... or lack of sleep.

Now it should be listing skills as well, but you gotta activate a switch first!
