Author Topic: MOG'S XAS Edit [REQUEST]  (Read 2211 times)

0 Members and 1 Guest are viewing this topic.

Miss Nile

  • レゲシブレイドが大好きです。
  • *
  • Tier 7
  • **
  • Posts: 3109
  • Gender: Female
  • Miss of The Grand Nile; Founder of Snow Rose
    • Snow Rose Games
  • Current Mood: playful playful
MOG'S XAS Edit [REQUEST]
« on: November 03, 2010, 03:44:41 PM »
Hello everyone,

Recently, I decided to switch my battle system to ABS. However, I tried using nearly every single ABS I could find but none worked with the other scripts I am using except for Mog's XAS. I am still having some minor troubles with it however so I am hoping for some help.

First of all of course, the list of scripts I am using in order:

  • Caterpillar by Fukuyama
  • Ccoa's UMS
  • Ccoa's Weather Script
  • Chrono Tigger CMS - Picture Names
  • Chrono Tigger CMS - Cursor Script
  • Chrono Tigger CMS - Main Script
And this is the demo of the script I wish to be edited,

http://xasabs.wordpress.com/xas-download/

But only these are the necessary ones as I am NOT going to use the add-ons:



And of course, the CMS scripts I am using as well as I believe the problems are about them,

Picture Names
Code: (text) [Select]

#===============================================================================
# * Module CT_pictures
#-------------------------------------------------------------------------------
# The name of Pictures and Icons used in the
# menu are stored here
#-------------------------------------------------------------------------------
# ~Instructions
# Look at the picture and the icon folder to see the examples.
# Just replace them with other pictures if you like too, just make sure
# they are named like the ones before ore you change their names.
#===============================================================================
module CT_Pictures
#Menu Icons
Icon_1 = "item2"  #equip button
Icon_2 = "menu0"                        #item button
Icon_3 = "menu1"                         #skill button
Icon_4 = "change party"                        #change party member button
Icon_5 = "menu4"                          #save button
Icon_6 = "menu5"                         #quit button
Weapon_alternative = "item1"            #alternative Icon if your character has no Weapon equipped
Shield_alternative = "menu2"            #alternative Icon if your character has no Shield equipped
 
#Menu Pictures
BG_Picture = "background2"          #background picture
Cursor = "cursor"                              #icon of the cursor
end
 

Cursor Script
Code: (text) [Select]
#==============================================================================
# ■ Cursor Script
#------------------------------------------------------------------------------
#  Script to display a cursor instead of a highlight box
#   by squall
#   squall@rmxp.ch
#==============================================================================
 
#==============================================================================
# ■ Cursor_Sprite
#==============================================================================
 
class Sprite_Cursor < Sprite
  #--------------------------------------------------------------------------
  # ● instances
  #--------------------------------------------------------------------------
  attr_accessor :true_x
  attr_accessor :true_y
  #--------------------------------------------------------------------------
  # ● initialize
  #--------------------------------------------------------------------------
  def initialize(x = 0, y = 0)
    super()
    self.x = @true_x = x
    self.y = @true_y = y
    self.z += 1000
    self.bitmap = RPG::Cache.picture(CT_Pictures::Cursor) rescue Bitmap.new(32, 32)
  end
  #--------------------------------------------------------------------------
  # ● update
  #--------------------------------------------------------------------------
  def update
    super
   
    if self.y < @true_y
      n = (@true_y - self.y) / 3
      n = 1 if n == 0
      self.y += n
    elsif self.y > @true_y
      n = (self.y - @true_y) / 3
      n = 1 if n == 0
      self.y -= n
    end
 
    if self.x < @true_x
      n = (@true_x - self.x) / 3
      n = 1 if n == 0
      self.x += n
    elsif self.x > @true_x
      n = (self.x - @true_x) / 3
      n = 1 if n == 0
      self.x -= n
    end
  end
end
 
#==============================================================================
# ■ Window_Selectable
#==============================================================================
 
class Window_Selectable < Window_Base
  #--------------------------------------------------------------------------
  # ● instances
  #--------------------------------------------------------------------------
  attr_reader   :index
  attr_reader   :help_window
  attr_accessor :cursor
  alias update_cursor_moves update
  #--------------------------------------------------------------------------
  # ● initialize
  #--------------------------------------------------------------------------
  def initialize(x, y, width, height)
    super(x, y, width, height)
    @item_max = 1
    @column_max = 1
    @index = 0
    @cursor = Sprite_Cursor.new(x, y)
    unless $scene.is_a?(Scene_Menu)
      @cursor.opacity = 0
    end
    update_cursor
  end
  #--------------------------------------------------------------------------
  # ● x=
  #--------------------------------------------------------------------------
  def x=(x)
    super
    @cursor.x = x if !@cursor.nil?
  end
  #--------------------------------------------------------------------------
  # ● y=
  #--------------------------------------------------------------------------
  def y=(y)
    super
    @cursor.y = y if !@cursor.nil?
  end
  #--------------------------------------------------------------------------
  # ● visible=
  #--------------------------------------------------------------------------
  def visible=(visible)
    super
    if !@cursor.nil? and visible == false
      @cursor.visible = false
    end
  end
  #--------------------------------------------------------------------------
  # ● dispose
  #--------------------------------------------------------------------------
  def dispose
    @cursor.dispose
    super
  end
  #--------------------------------------------------------------------------
  # ● update_cursor_rect
  #--------------------------------------------------------------------------
  def update_cursor_rect
    row = @index / @column_max
    if row < self.top_row
      self.top_row = row
    end
    if row > self.top_row + (self.page_row_max - 1)
      self.top_row = row - (self.page_row_max - 1)
    end
    cursor_width = self.width / @column_max - 32
    x = @index % @column_max * (cursor_width + 32)
    y = @index / @column_max * 32 - self.oy
    if $scene.is_a?(Scene_Menu)
      self.cursor_rect.set(x, y, 0, 0)
    else
      self.cursor_rect.set(x, y, cursor_width, 32)
    end
  end
  #--------------------------------------------------------------------------
  # ● update_cursor
  #--------------------------------------------------------------------------
  def update_cursor
    @cursor.true_x = self.cursor_rect.x + self.x - 8
    @cursor.true_y = self.cursor_rect.y + self.y + 16
    @cursor.update
    @cursor.visible = self.visible
  end
  #--------------------------------------------------------------------------
  # ● update
  #--------------------------------------------------------------------------
  def update
    update_cursor_moves
    update_cursor
  end
end
 

Main Script for CMS: http://bb.xieke.com/files/Code.txt

So what do I want edited?

I found out that the XAS is not really working with the caterpillar script, so I decided to remove as I don't really need it. However, there are still some problems which I cannot fix since I am not a scripter.

First one is, the item using in the ABS. I can use an equipped item but I can't equip another. Like this,




However, it stays as it is in the first screenshot, not changing into the ether.


Second one is the skill menu. It's the same problem as the item one. When I click a skill in the menu, it won't be equipped even though I can use the equipped skill in battle.



That's pretty much it. I would really appreciate if someone helps me out.
« Last Edit: November 03, 2010, 03:48:15 PM by Luv »