$mogscript = {} if $mogscript == nil
$mogscript["mpequip"] = true
#==============================================================================
# Window_Base
#==============================================================================
class Window_Base < Window
def draw_equip_map(item, x, y)
if item == nil
return
end
draw_icon(item.icon_index , x + 3 , y + 34)
end
def draw_mequip(x, y)
mequip = Cache.picture("Mequip")
cw = mequip.width
ch = mequip.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y - ch + 65 ,mequip, src_rect)
end
end
#==============================================================================
# Scene_Map
#==============================================================================
class Scene_Map
alias ayene_start start
def start
@actor = $game_party.members[0]
@eqmap = Window_Equipmap.new(@actor)
@eqmap.x = MOG::EQPMAPX
@eqmap.y = MOG::EQPMAPY
if $game_switches[MOG::EQPMAPVIS] == false
@eqmap.visible = true
else
@eqmap.visible = false
end
ayene_start
end
alias ayene_terminate terminate
def terminate
ayene_terminate
@eqmap.dispose
end
alias mog8_update update
def update
if $game_switches[MOG::EQPMAPVIS] == false
@eqmap.visible = true
else
@eqmap.visible = false
end
if $eref == true
@eqmap.refresh
$eref = false
end
mog8_update
end
end
#==============================================================================
# Game_Map
#==============================================================================
class Game_Map
attr_accessor :eref
end
class Game_Interpreter
def eref
$eref = true
end
alias mog319ref command_319
def command_319
eref
return mog319ref
end
end
end
Dodatki
Skrypt wymaga umieszczenia w folderze Graphics/Pictures poniższego obrazka:
Spoiler:
Mequip.png
- wersja ang
- wersja pl
Demo
Screenshot
Spoiler:
Instrukcja
1. Wklej skrypt nad "Main" w Edytorze Skryptu.
2. Reszta instrukcji znajduje się w treści skryptu.
Ayene, czy da się/którym klawiszem przełączyć ekwipunek na innego bohatera?
________________________ Pozdrawiam, bo nie chcę zawsze pisać powyżej - KillYou
PS Jeżeli nie rozumiesz (pomoc) co jest napisane powyżej, to wrzucę screeny :)
The Elect
Twórca: KillYou
Pomocnicy Pr0mes, Spino333, Janus, Kacperer
============================================================
============================================================
Tekst Podpisu:
Podpis - dozwolona ilość znaków:500
$mogscript = {} if $mogscript == nil
$mogscript["mpequip"] = true
#==============================================================================
# Window_Base
#==============================================================================
class Window_Base < Window
def draw_equip_map(item, x, y)
if item == nil
return
end
draw_icon(item.icon_index , x + 3 , y + 34)
end
def draw_mequip(x, y)
mequip = Cache.picture("Mequip")
cw = mequip.width
ch = mequip.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y - ch + 65 ,mequip, src_rect)
end
end
#==============================================================================
# Scene_Map
#==============================================================================
class Scene_Map
alias ayene_start start
def start
@index = 0
new_equip_hud
ayene_start
end
alias ayene_terminate terminate
def terminate
ayene_terminate
@eqmap.dispose
end
alias mog8_update update
def update
if $game_switches[MOG::EQPMAPVIS] == false
@eqmap.visible = true
else
@eqmap.visible = false
end
if $eref == true
@eqmap.refresh
$eref = false
end
if Input.trigger?(Input::R)
if @index == $game_party.members.size - 1
@index = 0
else
@index += 1
end
elsif Input.trigger?(Input::L)
if @index == 0
@index = $game_party.members.size - 1
else
@index -= 1
end
end
new_equip_hud if @index != @actor.index
mog8_update
end
def new_equip_hud
@actor = $game_party.members[@index]
@eqmap.dispose if !@eqmap.nil?
@eqmap = Window_Equipmap.new(@actor)
@eqmap.x = MOG::EQPMAPX
@eqmap.y = MOG::EQPMAPY
if $game_switches[MOG::EQPMAPVIS] == false
@eqmap.visible = true
else
@eqmap.visible = false
end
end
end
#==============================================================================
# Game_Map
#==============================================================================
class Game_Map
attr_accessor :eref
end
class Game_Interpreter
def eref
$eref = true
end
alias mog319ref command_319
def command_319
eref
return mog319ref
end
end
end
Wyświetlany ekwipunek zmienia się za pomocą klawiszy L i R (domyślnie Page Up i Down)
________________________ Pozdrawiam, bo nie chcę zawsze pisać powyżej - KillYou
PS Jeżeli nie rozumiesz (pomoc) co jest napisane powyżej, to wrzucę screeny :)
The Elect
Twórca: KillYou
Pomocnicy Pr0mes, Spino333, Janus, Kacperer
============================================================
============================================================
Tekst Podpisu:
Podpis - dozwolona ilość znaków:500
PRZYCIK_UKRYCIA = Input::Z # "D" na klawiaturze
end
$mogscript = {} if $mogscript == nil
$mogscript["mpequip"] = true
#==============================================================================
# Window_Base
#==============================================================================
class Window_Base < Window
def draw_equip_map(item, x, y)
if item == nil
return
end
draw_icon(item.icon_index , x + 3 , y + 34)
end
def draw_mequip(x, y)
mequip = Cache.picture("Mequip")
cw = mequip.width
ch = mequip.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y - ch + 65 ,mequip, src_rect)
end
end
#==============================================================================
# Scene_Map
#==============================================================================
class Scene_Map
alias ayene_start start
def start
@index = 0
new_equip_hud
ayene_start
end
alias ayene_terminate terminate
def terminate
ayene_terminate
@eqmap.dispose
end
alias mog8_update update
def update
if $game_switches[MOG::EQPMAPVIS] == false
@eqmap.visible = true
else
@eqmap.visible = false
end
if Input.trigger?(MOG::PRZYCIK_UKRYCIA)
if $game_switches[MOG::EQPMAPVIS] == false
$game_switches[MOG::EQPMAPVIS] = true
else
$game_switches[MOG::EQPMAPVIS] = false
end
return
end
if $eref == true
@eqmap.refresh
$eref = false
end
if Input.trigger?(Input::R)
if @index == $game_party.members.size - 1
@index = 0
else
@index += 1
end
elsif Input.trigger?(Input::L)
if @index == 0
@index = $game_party.members.size - 1
else
@index -= 1
end
end
if Input.trigger?(Input::F5)
@actor.change_equip(0, nil)
end
new_equip_hud # if @index != @actor.index
mog8_update
end
def new_equip_hud
@actor = $game_party.members[@index]
@eqmap.dispose if !@eqmap.nil?
@eqmap = Window_Equipmap.new(@actor)
@eqmap.x = MOG::EQPMAPX
@eqmap.y = MOG::EQPMAPY
if $game_switches[MOG::EQPMAPVIS] == false
@eqmap.visible = true
else
@eqmap.visible = false
end
if Input.trigger?(MOG::PRZYCIK_UKRYCIA)
if $game_switches[MOG::EQPMAPVIS] == false
$game_switches[MOG::EQPMAPVIS] = true
else
$game_switches[MOG::EQPMAPVIS] = false
end
return
end
end
end
#==============================================================================
# Game_Map
#==============================================================================
class Game_Map
attr_accessor :eref
end
class Game_Interpreter
def eref
$eref = true
end
alias mog319ref command_319
def command_319
eref
return mog319ref
end
end
end
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach Nie możesz załączać plików na tym forum Możesz ściągać załączniki na tym forum