this thread is dead.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Quote from: lonely_cubone on August 09, 2010, 11:39:58 pmQuote from: arialks on August 09, 2010, 10:10:24 pm
and what Skill command? O:
It's right below the Attack command in the config
So basically, do what you said, except replace "attack" with a skill.
Quote from: legacyblade on August 07, 2010, 02:28:57 am
It's called the combo system. It is your friend.
Quote from: Borat on August 07, 2010, 04:28:02 pm
Not sure if this fixed it.#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Mouse Map Menu by Nathmatt
# Version: 1.00
# Type: Menu
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# This work is protected by the following license:
# #----------------------------------------------------------------------------
# #
# # Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
# # ( http://creativecommons.org/licenses/by-nc-sa/3.0/ )
# #
# # You are free:
# #
# # to Share - to copy, distribute and transmit the work
# # to Remix - to adapt the work
# #
# # Under the following conditions:
# #
# # Attribution. You must attribute the work in the manner specified by the
# # author or licensor (but not in any way that suggests that they endorse you
# # or your use of the work).
# #
# # Noncommercial. You may not use this work for commercial purposes.
# #
# # Share alike. If you alter, transform, or build upon this work, you may
# # distribute the resulting work only under the same or similar license to
# # this one.
# #
# # - For any reuse or distribution, you must make clear to others the license
# # terms of this work. The best way to do this is with a link to this web
# # page.
# #
# # - Any of the above conditions can be waived if you get permission from the
# # copyright holder.
# #
# # - Nothing in this license impairs or restricts the author's moral rights.
# #
# #----------------------------------------------------------------------------
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
module Mouse_Map_Menu
Version = 1.00
#============================================================================
# Mouse_Map_Menu::Config
#----------------------------------------------------------------------------
# This module performs the the configurations.
#============================================================================
module Config
Condition = 0 # 0 for Horizontal 1 for Vertical
Icon_Back = "Background" # Change it to "" if you do not want this option
# Displays a background behind each icon. Place
# In pictures folder
Icons = ['040-Item09'] # Array of menu icons
Scenes = ['Scene_Menu'] # Array of scenes
X = 0 # The x co-ordanance is by 32
Y = 14 # The y co-ordanance is by 32
end
#============================================================================
# Mouse_Map_Menu::Processor
#----------------------------------------------------------------------------
# This class performs the mouse processing.
#============================================================================
class Processor
def main
size = Config::Icons.size
if size != Config::Scenes.size
raise 'You must have the same amount of icons & scenes'
end
@enable = []
@x = Config::X * 32
@y = Config::Y * 32
@screen_x = []
@screen_y = []
@sprite = []
@back = []
(0...size).each{|i|
@back[i] = Sprite.new
@back[i].bitmap = RPG::Cache.picture(Config::Icon_Back)
@sprite[i] = Sprite.new
@sprite[i].bitmap = RPG::Cache.icon(Config::Icons[i])
if Config::Condition == 0
@sprite[i].x = 4 + @x + i * 32
@sprite[i].y = 4 + @y
else
@sprite[i].x = 4 + @x
@sprite[i].y = 4 + @y + i * 32
end
@back[i].x = @sprite[i].x
@back[i].y = @sprite[i].y
@sprite[i].z = 100
@screen_x[i] = (@sprite[i].x + $game_map.display_x / 4) / 32
@screen_y[i] = (@sprite[i].y + $game_map.display_y / 4) / 32
@enable[i] = true}
end
def update
x,y = $mouse.pos
(0...Config::Scenes.size).each{|i|
if x >= @sprite[i].x && y >= @sprite[i].y && x <= @sprite[i].bitmap.width && y <= @sprite[i].bitmap.height
if Input.trigger?(Input::Key['Mouse Left'])
if @enable[i]
$game_system.se_play($data_system.decision_se)
eval("$scene = #{Config::Scenes[i]}.new")
break
end
else
$game_system.se_play($data_system.buzzer_se)
break
end
end}
end
def disable_item(i)
@enable[i] = false
end
def enable_item(i)
@enable[i] = true
end
def dispose
(0...Config::Scenes.size).each{|i|@sprite[i].dispose if @sprite[i] != nil}
@sprite.clear
end
end
end
class Mouse
def pos
return if $game_map.display_x == nil
x, y = self.position
x = ( x + $game_map.display_x / 4) / 32
y = ( y + $game_map.display_y / 4) / 32
return x, y
end
end
$mouse_map_menu = Mouse_Map_Menu::Processor.new
class Scene_Map
alias mouse_map_menu_main main
def main
$mouse_map_menu.main
mouse_map_menu_main
$mouse_map_menu.dispose
end
alias mouse_map_menu_update update
def update
$mouse_map_menu.update
mouse_map_menu_update
end
end
It'd help to know what the error said.