Scene Combine [to remove Category Window for Items]

Status
Not open for further replies.

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
709
Reaction score
1,194
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,660
Reaction score
563
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
709
Reaction score
1,194
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,522
Reaction score
14,255
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

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top