Scene Combine [to remove Category Window for Items]

Status
Not open for further replies.

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
654
Reaction score
1,104
First Language
English
Primarily Uses
N/A
1. I'm using mjshi's Non-Combat Menu with efeberk's Scene Combine script
- In Non-Combat Menu script, I did change line 239: SceneManager.call(Scene_Item) to SceneManager.call(Scene_Combine)

2. I did correct the crash from Scene Combine by replacing that line with this. [mentioned by Rikifive]
https://www.rpgmakercentral.com/topic/20235-scene-combine/?page=2&tab=comments#comment-288834

3. Is there a way to remove category window while keeping Combine function intact?



- After confirming with Combine, goes straight to selecting an item- not through category window.

Edit: I'm looking for an edit that overwrites/ remove Scene Combine 'item category window'

Almost there with using Sixth's method.
Code:
class Scene_Combine < Scene_ItemBase

def create_category_window
# Removed!
end

def create_item_window
x = 0
y = @help_window.height
w = Graphics.width
h = Graphics.height - y
@item_window = Window_ItemList.new(x,y,w,h)
@item_window.set_handler(:ok, method(:on_item_ok))
@item_window.set_handler(:cancel, method(:on_item_cancel))
@item_window.help_window = @help_window # Marked line 1! o.o
@item_window.category = :item # Marked line 2! - Can be :key_item if needed.
@item_window.viewport = @viewport
@item_window.activate
@item_window.select_last
@description.refresh(@item_window.item) if @description
end

def on_item_cancel
return_scene
end

end

Unfortunately, this causes an issue with Scene_Combine script by confirming combine.
 
Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,402
Reaction score
499
First Language
English
Primarily Uses
RMVXA
Code:
class Scene_Combine < Scene_ItemBase

  def create_category_window
  # Removed!
  end

  def create_item_window
    x = 0
    y = @help_window.height + @options_window.height
    w = Graphics.width
    h = Graphics.height - y
    @item_window = Window_ItemListe.new(x,y,w,h)
    @item_window.set_handler(:ok, method(:on_item_ok))
    @item_window.set_handler(:cancel, method(:on_item_cancel))
    @item_window.help_window = @help_window # Marked line 1! o.o
    @item_window.category = :item # Marked line 2! - Can be :key_item if needed.
    @item_window.viewport = @viewport
    @item_window.activate
    @item_window.select_last
    @description.refresh(@item_window.item) if @description
    @item_window.deactivate.unselect
  end

  def on_item_cancel
    return_scene
  end
 
  def combine_ok
    @item_window.combining = true
    @combine = true
    @options_window.deactivate.unselect
    @item_window.activate.select(0)
  end
 
  def use_ok
    @item_window.combining = false
    @options_window.deactivate.unselect
    @item_window.activate.select(0)
  end

end
Code:
class Scene_Combine < Scene_ItemBase

  def create_category_window
  # Removed!
  end

  def create_options_window
  # Removed!
  end

  def create_item_window
    x = 0
    y = @help_window.height
    w = Graphics.width
    h = Graphics.height - y
    @item_window = Window_ItemListe.new(x,y,w,h)
    @item_window.set_handler(:ok, method(:on_item_ok))
    @item_window.set_handler(:cancel, method(:on_item_cancel))
    @item_window.help_window = @help_window # Marked line 1! o.o
    @item_window.category = :item # Marked line 2! - Can be :key_item if needed.
    @item_window.viewport = @viewport
    @description.refresh(@item_window.item) if @description
    combine_ok
  end

  def on_item_cancel
    return_scene
  end
 
  def combine_ok
    @item_window.combining = true
    @combine = true
    @item_window.activate.select(0)
  end
 
  def use_ok
    @item_window.combining = false
    @item_window.activate.select(0)
  end

end
 
Last edited:

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
654
Reaction score
1,104
First Language
English
Primarily Uses
N/A
@Roninator2 Thank you! with option combine screen is exactly what I'm looking for.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,229
Reaction score
13,786
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

The presentation pictures for FSM Castle Tiles are really bad, there is so much more content in this DLC than they show. Great DLC.^^
Anyone know/remember Mummy's Tomb / Crystals of Zong for C64? Trying to recreate it for One Map Challenge. Fun. And ... er ... challenging!


Listen.. I er... caught the live stream. :LZSwink:
The MZ first look stream was quite good. Looks like we get a lot of generator parts right off the bat this time around. Lots of cool clothes, helmets, facial marks, etc. Looking forward to playing around with it. :)
Any tips on how to share resources in here? Should I upload them in a image hosting site or Google Drive?

Forum statistics

Threads
100,822
Messages
979,975
Members
132,471
Latest member
denzelwatson
Top