Posts: 11,229
Threads: 648
Joined: May 2009
The item system assumes it is for anyone, and does not get the location of a single member of the party. For that, the default item window takes up the entire screen in two columns, unlike the Moghunter system which uses one column.
Likewise, you may not have noticed the SKILL window is the same... so I have an interesting couple of options for you:
Option 1 - Window Follows Actor
Go to the battlesystem.... Scene_Battle_3 page:
GO to the start_item_select method that is around line 405:
Underneath the line that reads:
@item_window = Window_Item.new
paste the following...
@item_window.x = @actor_index * 115
This will give you an item window that goes from left to right with each actor.
And you may not notice that the SKILL select is altered too. You can alter it the same way within the start_skill_select method a couple dozen lines up.
Option 2 - Restore full window in battle
Go to the Item Window class in the moghunter menu... the initialize method around line 346. It should have some code like below:
Code:
if $game_temp.in_battle
self.y = 64
self.height = 256
self.back_opacity = 160
end
Well... we're going to FORCE it to take up the whole display window as it used to appear, by replacing it with this:
Code:
if $game_temp.in_battle
@column_max = 2
self.y = 64
self.x = 0
self.height = 256
self.width = 640
self.back_opacity = 160
refresh
end
Yeah, forcing it to 2 columns, a full 640 width, etc.
But we're not done yet. The item drawing method is set only for one column... so go into the draw_item method and towards line 405.
When you find the code that reads:
Code:
x = 4 + index % 1 * (288 + 32)
y = index / 1 * 32
Paste this BELOW that code:
Code:
if $game_temp.in_battle
x = 4 + index % 2 * (288 + 32)
y = index / 2 * 32
end]
So now it can handle the drawing of 2 column data while in battle.
And you may not notice that the SKILL select is affected the same way, so you may wish to use these techniques to fix up the Skill_Window class in the revised Scene_Skill Nami script too.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links