Jump to content
Sign in to follow this  
TBWCS

Choice Set-Up Position

Recommended Posts

VXA - Choice Setup Position

** Author: Soulpour777

Version 1.0

 

Description:

 

Choices are, well permanently positioned to the right side of the screen. However, sometimes you do not want this, and perhaps might want to put the choice on the center, on the top, down, left side, right side or whatever  side there is. This script does that.

 

Usage:

 

Script Calls:

 

$game_system.change_y_pos(y_pos)

^ changes the y position of the choice list, where y_pos is the number.

 

$game_system.change_x_pos(x_pos)

^ changes the x position of the choice list, where x_pos is the number.

 

$game_system.change_window_width(w_width)

^ changes the width of the choice list window, where w_width is the number.

 

$game_system.change_choice_height(c_height)

^ changes the window height of the choice list, where c_height is the number.

 

Script:

 




# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# VXA - Choice Setup Position
# ** Author: Soulpour777
# Version 1.0
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Description:
# Choices are, well permanently positioned to the right side of the screen.
# However, sometimes you do not want this, and perhaps might want to put the
# choice on the center, on the top, down, left side, right side or whatever
# side there is. This script does that.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Usage:
# Script Calls:
# $game_system.change_y_pos(y_pos)
# ^ changes the y position of the choice list, where y_pos is the number.
# $game_system.change_x_pos(x_pos)
# ^ changes the x position of the choice list, where x_pos is the number.
# $game_system.change_window_width(w_width)
# ^ changes the width of the choice list window, where w_width is the number.
# $game_system.change_choice_height(c_height)
# ^ changes the window height of the choice list, where c_height is the number.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Author's Notes:
# You can use this to position your choices. I am really annoyed with the
# choice position of the default maker.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
# This class handles system data. It saves the disable state of saving and
# menus. Instances of this class are referenced by $game_system.
#==============================================================================

class Game_System
attr_accessor :message_choice_transparency
alias :choice_set_up_position_extended :initialize
def initialize
choice_set_up_position_extended
@message_choice_transparency = 0
end

def change_transparency(trans)
@message_choice_transparency = trans
end

end

class Window_ChoiceList < Window_Command
alias :i_want_the_window_choice_to_be_transparent :initialize
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(message_window)
i_want_the_window_choice_to_be_transparent(message_window)
self.opacity = $game_system.message_choice_transparency
end
end

class Game_System
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :choice_width
attr_accessor :choice_window_width
attr_accessor :mb_y_pos
attr_accessor :mb_x_pos
attr_accessor :choice_height

#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias message_choice_initialize initialize

#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
message_choice_initialize
@choice_width = 320
@choice_height = 20
@mb_y_pos = 30
@mb_x_pos = 0
@choice_window_width = Graphics.width - @choice_width
end

#--------------------------------------------------------------------------
# * Change Y Position
#--------------------------------------------------------------------------
def change_y_pos(y_pos)
@mb_y_pos = y_pos
end

#--------------------------------------------------------------------------
# * Change X Position
#--------------------------------------------------------------------------
def change_x_pos(x_pos)
@mb_x_pos = x_pos
end

#--------------------------------------------------------------------------
# * Change Window Width
#--------------------------------------------------------------------------
def change_window_width(w_width)
@choice_window_width = w_width
end

#--------------------------------------------------------------------------
# * Change Choice Height
#--------------------------------------------------------------------------
def change_choice_height(c_height)
@choice_height = c_height
end

end


#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
# This window is used for the event command [Show Choices].
#==============================================================================

class Window_ChoiceList < Window_Command

#--------------------------------------------------------------------------
# * Update Window Position
#--------------------------------------------------------------------------
alias window_choice_update_placement update_placement
def update_placement
window_choice_update_placement
self.width = $game_system.choice_window_width
self.height - $game_system.choice_height
self.x = $game_system.mb_x_pos
self.y = $game_system.mb_y_pos
end

end



 

Author's Notes:

You can use this to position your choices. I am really annoyed with the choice position of the default maker.

Edited by SoulPour777

Share this post


Link to post
Share on other sites

Doesnt work for me -> Script GameInterpreter line 1411:NoMethodError occured. undefined Method change_y_pos for #<game_system:0xa4181c4>

Dunno what Im doing wrong, using a call script with: $game_system.change_y_pos(100) $game_system.change_x_pos(100).

Maybe Im just to stupid :D.

 

Please help me

Share this post


Link to post
Share on other sites

* Updated the script*

 

 

Doesnt work for me -> Script GameInterpreter line 1411:NoMethodError occured. undefined Method change_y_pos for #<game_system:0xa4181c4>

Dunno what Im doing wrong, using a call script with: $game_system.change_y_pos(100) $game_system.change_x_pos(100).

Maybe Im just to stupid :D.

 

Please help me

 

Don't do it on a single line :)

 

Do this:

$game_system.change_y_pos(100) 
$game_system.change_x_pos(100)

Share this post


Link to post
Share on other sites

 

* Updated the script*

 

 

 

Don't do it on a single line :)

 

Do this:

$game_system.change_y_pos(100) 
$game_system.change_x_pos(100)

Sorry, I was using this like u said, I just pasted it wrong here :D.

But Im still getting this Error Script GameInterpreter line 1411:NoMethodError occured. undefined Method change_y_pos for #<game_system:0x9d33cc8>

Well what am I doing?

I started an Event with some Text, then Im going to use a call script with your lines in:

$game_system.change_y_pos(100)
$game_system.change_x_pos(100)

And then Im starting the Show Choices =/.

 

After that the error comes out =/

 

Anyways thanks for the fast helping.

Edited by Blackcloud

Share this post


Link to post
Share on other sites

Ohhhh sorry, I forgot to correct this error from the ones who had the same problem, sorry. Use this script:

 

 

 

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# VXA - Choice Setup Position
# ** Author: Soulpour777
# Version 1.0
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Description:
# Choices are, well permanently positioned to the right side of the screen.
# However, sometimes you do not want this, and perhaps might want to put the
# choice on the center, on the top, down, left side, right side or whatever 
# side there is. This script does that.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Usage:
# Script Calls:
# $game_system.change_y_pos(y_pos)
# ^ changes the y position of the choice list, where y_pos is the number.
# $game_system.change_x_pos(x_pos)
# ^ changes the x position of the choice list, where x_pos is the number.
# $game_system.change_window_width(w_width)
# ^ changes the width of the choice list window, where w_width is the number.
# $game_system.change_choice_height(c_height)
# ^ changes the window height of the choice list, where c_height is the number.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Author's Notes:
# You can use this to position your choices. I am really annoyed with the 
# choice position of the default maker.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system data. It saves the disable state of saving and 
# menus. Instances of this class are referenced by $game_system.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------  
  attr_accessor :choice_width
  attr_accessor :choice_window_width
  attr_accessor :mb_y_pos
  attr_accessor :mb_x_pos
  attr_accessor :choice_height

  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------  
  alias message_choice_initialize initialize
  
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------  
  def initialize
    message_choice_initialize
    @choice_width = 320
    @choice_height = 20
    @mb_y_pos = 30
    @mb_x_pos = 0
    @choice_window_width = Graphics.width - @choice_width
  end
  
  #--------------------------------------------------------------------------
  # * Change Y Position
  #--------------------------------------------------------------------------  
  def change_y_pos(y_pos)
    @mb_y_pos = y_pos
  end
  
  #--------------------------------------------------------------------------
  # * Change X Position
  #--------------------------------------------------------------------------  
  def change_x_pos(x_pos)
    @mb_x_pos = x_pos
  end  
  
  #--------------------------------------------------------------------------
  # * Change Window Width
  #--------------------------------------------------------------------------  
  def change_window_width(w_width)
    @choice_window_width = w_width
  end
  
  #--------------------------------------------------------------------------
  # * Change Choice Height
  #--------------------------------------------------------------------------  
  def change_choice_height(c_height)
    @choice_height = c_height
  end
  
end


#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================

class Window_ChoiceList < Window_Command
  
  #--------------------------------------------------------------------------
  # * Update Window Position
  #--------------------------------------------------------------------------
  alias window_choice_update_placement update_placement
  def update_placement
    window_choice_update_placement
    self.width = $game_system.choice_window_width
    self.height - $game_system.choice_height
    self.x = $game_system.mb_x_pos
    self.y = $game_system.mb_y_pos
  end  
  
end 

 

 

 

*updated the script above for future usage*

Share this post


Link to post
Share on other sites

Ohhhh sorry, I forgot to correct this error from the ones who had the same problem, sorry. Use this script:

 

 

 

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# VXA - Choice Setup Position
# ** Author: Soulpour777
# Version 1.0
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Description:
# Choices are, well permanently positioned to the right side of the screen.
# However, sometimes you do not want this, and perhaps might want to put the
# choice on the center, on the top, down, left side, right side or whatever 
# side there is. This script does that.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Usage:
# Script Calls:
# $game_system.change_y_pos(y_pos)
# ^ changes the y position of the choice list, where y_pos is the number.
# $game_system.change_x_pos(x_pos)
# ^ changes the x position of the choice list, where x_pos is the number.
# $game_system.change_window_width(w_width)
# ^ changes the width of the choice list window, where w_width is the number.
# $game_system.change_choice_height(c_height)
# ^ changes the window height of the choice list, where c_height is the number.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Author's Notes:
# You can use this to position your choices. I am really annoyed with the 
# choice position of the default maker.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system data. It saves the disable state of saving and 
# menus. Instances of this class are referenced by $game_system.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------  
  attr_accessor :choice_width
  attr_accessor :choice_window_width
  attr_accessor :mb_y_pos
  attr_accessor :mb_x_pos
  attr_accessor :choice_height

  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------  
  alias message_choice_initialize initialize
  
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------  
  def initialize
    message_choice_initialize
    @choice_width = 320
    @choice_height = 20
    @mb_y_pos = 30
    @mb_x_pos = 0
    @choice_window_width = Graphics.width - @choice_width
  end
  
  #--------------------------------------------------------------------------
  # * Change Y Position
  #--------------------------------------------------------------------------  
  def change_y_pos(y_pos)
    @mb_y_pos = y_pos
  end
  
  #--------------------------------------------------------------------------
  # * Change X Position
  #--------------------------------------------------------------------------  
  def change_x_pos(x_pos)
    @mb_x_pos = x_pos
  end  
  
  #--------------------------------------------------------------------------
  # * Change Window Width
  #--------------------------------------------------------------------------  
  def change_window_width(w_width)
    @choice_window_width = w_width
  end
  
  #--------------------------------------------------------------------------
  # * Change Choice Height
  #--------------------------------------------------------------------------  
  def change_choice_height(c_height)
    @choice_height = c_height
  end
  
end


#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================

class Window_ChoiceList < Window_Command
  
  #--------------------------------------------------------------------------
  # * Update Window Position
  #--------------------------------------------------------------------------
  alias window_choice_update_placement update_placement
  def update_placement
    window_choice_update_placement
    self.width = $game_system.choice_window_width
    self.height - $game_system.choice_height
    self.x = $game_system.mb_x_pos
    self.y = $game_system.mb_y_pos
  end  
  
end 

 

 

 

*updated the script above for future usage*

 

Thanks this is working fine :).

One last question, is there any possibility that you can add an option which can be used for making the box transparent or dim?

And maybe an headline above the box like:

"Do you want to use this?"

Yes

No

 

If you could do that ur script would be so awesome and would help me soooo much.

Share this post


Link to post
Share on other sites

To make it transparent:

class Window_ChoiceList < Window_Command
  alias :i_want_the_window_choice_to_be_transparent               :initialize
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(message_window)
    i_want_the_window_choice_to_be_transparent(message_window)
    self.opacity = 0
  end
end

Share this post


Link to post
Share on other sites

Thanks, but now I cant turn it back to colours right?

It overwrites initialize permanently or not ?

 

Sorry If im to stupid for this lol, arent working lot with script :(.

Hope Im not pissing you of xD.

Share this post


Link to post
Share on other sites
class Window_ChoiceList < Window_Command
  alias :i_want_the_window_choice_to_be_transparent               :initialize
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(message_window)
    i_want_the_window_choice_to_be_transparent(message_window)
    self.opacity = $game_system.message_choice_transparency
  end
end

class Game_System
  attr_accessor                                   :message_choice_transparency
  alias :choice_set_up_position_extended                          :initialize
  def initialize
    @message_choice_transparency = 0
  end
  
  def change_transparency(trans)
    @message_choice_transparency = trans
  end
  
end

to change the transparency of the choice, do a script call:

$game_system.change_transparency(trans)

where trans is the value of transparency you want to change for your choice list.

Share this post


Link to post
Share on other sites

Isnt working maybe I did something wrong dunno. -> "no implicit conversion from nil to integer"

I used it like that:

 

 

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# VXA - Choice Setup Position
# ** Author: Soulpour777
# Version 1.0
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Description:
# Choices are, well permanently positioned to the right side of the screen.
# However, sometimes you do not want this, and perhaps might want to put the
# choice on the center, on the top, down, left side, right side or whatever 
# side there is. This script does that.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Usage:
# Script Calls:
# $game_system.change_y_pos(y_pos)
# ^ changes the y position of the choice list, where y_pos is the number.
# $game_system.change_x_pos(x_pos)
# ^ changes the x position of the choice list, where x_pos is the number.
# $game_system.change_window_width(w_width)
# ^ changes the width of the choice list window, where w_width is the number.
# $game_system.change_choice_height(c_height)
# ^ changes the window height of the choice list, where c_height is the number.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Author's Notes:
# You can use this to position your choices. I am really annoyed with the 
# choice position of the default maker.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system data. It saves the disable state of saving and 
# menus. Instances of this class are referenced by $game_system.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------  
  attr_accessor :choice_width
  attr_accessor :choice_window_width
  attr_accessor :mb_y_pos
  attr_accessor :mb_x_pos
  attr_accessor :choice_height

  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------  
  alias message_choice_initialize initialize
  
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------  
  def initialize
    message_choice_initialize
    @choice_width = 320
    @choice_height = 20
    @mb_y_pos = 30
    @mb_x_pos = 0
    @choice_window_width = Graphics.width - @choice_width
  end
  
  #--------------------------------------------------------------------------
  # * Change Y Position
  #--------------------------------------------------------------------------  
  def change_y_pos(y_pos)
    @mb_y_pos = y_pos
  end
  
  #--------------------------------------------------------------------------
  # * Change X Position
  #--------------------------------------------------------------------------  
  def change_x_pos(x_pos)
    @mb_x_pos = x_pos
  end  
  
  #--------------------------------------------------------------------------
  # * Change Window Width
  #--------------------------------------------------------------------------  
  def change_window_width(w_width)
    @choice_window_width = w_width
  end
  
  #--------------------------------------------------------------------------
  # * Change Choice Height
  #--------------------------------------------------------------------------  
  def change_choice_height(c_height)
    @choice_height = c_height
  end
  
end


#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================

class Window_ChoiceList < Window_Command
  
  #--------------------------------------------------------------------------
  # * Update Window Position
  #--------------------------------------------------------------------------
  alias window_choice_update_placement update_placement
  def update_placement
    window_choice_update_placement
    self.width = $game_system.choice_window_width
    self.height - $game_system.choice_height
    self.x = $game_system.mb_x_pos
    self.y = $game_system.mb_y_pos
  end  
  
end 

class Window_ChoiceList < Window_Command
  alias :i_want_the_window_choice_to_be_transparent               :initialize
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(message_window)
    i_want_the_window_choice_to_be_transparent(message_window)
    self.opacity = $game_system.message_choice_transparency
  end
end

class Game_System
  attr_accessor                                   :message_choice_transparency
  alias :choice_set_up_position_extended                          :initialize
  def initialize
    @message_choice_transparency = 0
  end
  
  def change_transparency(trans)
    @message_choice_transparency = trans
  end
  
end

 

 

 

But before you answered I tried to figure it out my way which was like that, I just oriented it on your script and tried some thing:

 

 

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# VXA - Choice Setup Position
# ** Author: Soulpour777
# Version 1.0
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Description:
# Choices are, well permanently positioned to the right side of the screen.
# However, sometimes you do not want this, and perhaps might want to put the
# choice on the center, on the top, down, left side, right side or whatever
# side there is. This script does that.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Usage:
# Script Calls:
# $game_system.change_y_pos(y_pos)
# ^ changes the y position of the choice list, where y_pos is the number.
# $game_system.change_x_pos(x_pos)
# ^ changes the x position of the choice list, where x_pos is the number.
# $game_system.change_window_width(w_width)
# ^ changes the width of the choice list window, where w_width is the number.
# $game_system.change_choice_height(c_height)
# ^ changes the window height of the choice list, where c_height is the number.
# $game_system.choice_window_opacity = x
# ^ changes the window box opacity from 0(transparent) to 255, where x is the number.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Author's Notes:
# You can use this to position your choices. I am really annoyed with the
# choice position of the default maker.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system data. It saves the disable state of saving and
# menus. Instances of this class are referenced by $game_system.
#==============================================================================
 
class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------  
  attr_accessor :choice_width
  attr_accessor :choice_window_width
  attr_accessor :choice_window_opacity
  attr_accessor :mb_y_pos
  attr_accessor :mb_x_pos
  attr_accessor :choice_height
 
  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------  
  alias message_choice_initialize initialize
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------  
  def initialize
    message_choice_initialize
    @choice_width = 320
    @choice_height = 20
    @mb_y_pos = 30
    @mb_x_pos = 0
    @choice_window_width = Graphics.width - @choice_width
    @choice_window_opacity = (2**8) - 1 # 255
  end
 
  #--------------------------------------------------------------------------
  # * Change Y Position
  #--------------------------------------------------------------------------  
  def change_y_pos(y_pos)
    @mb_y_pos = y_pos
  end
 
  #--------------------------------------------------------------------------
  # * Change X Position
  #--------------------------------------------------------------------------  
  def change_x_pos(x_pos)
    @mb_x_pos = x_pos
  end  
 
  #--------------------------------------------------------------------------
  # * Change Window Width
  #--------------------------------------------------------------------------  
  def change_window_width(w_width)
    @choice_window_width = w_width
  end
 
  #--------------------------------------------------------------------------
  # * Change Choice Height
  #--------------------------------------------------------------------------  
  def change_choice_height(c_height)
    @choice_height = c_height
  end
  
  #--------------------------------------------------------------------------
  # * Change Choice Opacity
  #--------------------------------------------------------------------------  
  def change_window_opacity(w_opacity)
    @choice_window_opacity = w_opacity
  end

end
 
 
#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================
 
class Window_ChoiceList < Window_Command
 
  #--------------------------------------------------------------------------
  # * Update Window Position
  #--------------------------------------------------------------------------
  alias window_choice_update_placement update_placement
  def update_placement
    window_choice_update_placement
    self.width = $game_system.choice_window_width
    self.height - $game_system.choice_height
    self.x = $game_system.mb_x_pos
    self.y = $game_system.mb_y_pos
    self.opacity = $game_system.choice_window_opacity
  end  
 
end

=begin
  TODO: remove if not needed
class Window_ChoiceList < Window_Command
  alias :i_want_the_window_choice_to_be_transparent               :initialize
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(message_window)
    i_want_the_window_choice_to_be_transparent(message_window)
    self.opacity = 0
  end
end
=end

 

 

 

Which was working fine for me maybe you want to add it if not just delete it :D.

 

Thanks anyways dude you helped me a lot !

Share this post


Link to post
Share on other sites

Re-organize the script this way:

 

 

 

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# VXA - Choice Setup Position
# ** Author: Soulpour777
# Version 1.0
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Description:
# Choices are, well permanently positioned to the right side of the screen.
# However, sometimes you do not want this, and perhaps might want to put the
# choice on the center, on the top, down, left side, right side or whatever 
# side there is. This script does that.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Usage:
# Script Calls:
# $game_system.change_y_pos(y_pos)
# ^ changes the y position of the choice list, where y_pos is the number.
# $game_system.change_x_pos(x_pos)
# ^ changes the x position of the choice list, where x_pos is the number.
# $game_system.change_window_width(w_width)
# ^ changes the width of the choice list window, where w_width is the number.
# $game_system.change_choice_height(c_height)
# ^ changes the window height of the choice list, where c_height is the number.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Author's Notes:
# You can use this to position your choices. I am really annoyed with the 
# choice position of the default maker.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system data. It saves the disable state of saving and 
# menus. Instances of this class are referenced by $game_system.
#==============================================================================

class Game_System
  attr_accessor                                   :message_choice_transparency
  alias :choice_set_up_position_extended                          :initialize
  def initialize
    @message_choice_transparency = 0
  end
  
  def change_transparency(trans)
    @message_choice_transparency = trans
  end
  
end

class Window_ChoiceList < Window_Command
  alias :i_want_the_window_choice_to_be_transparent               :initialize
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(message_window)
    i_want_the_window_choice_to_be_transparent(message_window)
    self.opacity = $game_system.message_choice_transparency
  end
end

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------  
  attr_accessor :choice_width
  attr_accessor :choice_window_width
  attr_accessor :mb_y_pos
  attr_accessor :mb_x_pos
  attr_accessor :choice_height

  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------  
  alias message_choice_initialize initialize
  
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------  
  def initialize
    message_choice_initialize
    @choice_width = 320
    @choice_height = 20
    @mb_y_pos = 30
    @mb_x_pos = 0
    @choice_window_width = Graphics.width - @choice_width
  end
  
  #--------------------------------------------------------------------------
  # * Change Y Position
  #--------------------------------------------------------------------------  
  def change_y_pos(y_pos)
    @mb_y_pos = y_pos
  end
  
  #--------------------------------------------------------------------------
  # * Change X Position
  #--------------------------------------------------------------------------  
  def change_x_pos(x_pos)
    @mb_x_pos = x_pos
  end  
  
  #--------------------------------------------------------------------------
  # * Change Window Width
  #--------------------------------------------------------------------------  
  def change_window_width(w_width)
    @choice_window_width = w_width
  end
  
  #--------------------------------------------------------------------------
  # * Change Choice Height
  #--------------------------------------------------------------------------  
  def change_choice_height(c_height)
    @choice_height = c_height
  end
  
end


#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================

class Window_ChoiceList < Window_Command
  
  #--------------------------------------------------------------------------
  # * Update Window Position
  #--------------------------------------------------------------------------
  alias window_choice_update_placement update_placement
  def update_placement
    window_choice_update_placement
    self.width = $game_system.choice_window_width
    self.height - $game_system.choice_height
    self.x = $game_system.mb_x_pos
    self.y = $game_system.mb_y_pos
  end  
  
end 

 

 

Share this post


Link to post
Share on other sites

OMG thanks, i needed this for hte large choices Script, so now i can move my large amount of choices whereever i please :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×