[RMXP] Simple Item, Equip, Status and Skill Menu.

Hi guys. I'm searching for some very simple script for my new Item, Equip, Status and Skill Menu. Actually I'm using Drago Scene Menu as my Scene Menu and other script like: ccoa's weather script, KH SAVE, ums by ccoa, mode7, CCOA 3.04 RTA, Mog Damage System, DRG - Scene Menu Animated Cursor, Scene into flash, mana title, MOG Scene Shop, mog scene story, Party Changer, Stop the victory ME, Skill Chrono Trigger, shadow text, ,dash, region system, mog battler effects, Light Effects XP 2.1...
These are some pictures with description of what I would.
Content Hidden Spoiler
Scene Item:
Image
Image
Image

Scene Equip:
Image

Scene Status:
Image

Scene Skill (single tech):
Image

I also use a Link Tech system. For example, an hero can use a "special" skill in battle only if there is other (one or more) heroes in battle...
An example: HERO1 can use in battle the tech MAGIC WIND only if HERO2 and HERO3 are in battle.
This is the script used for link tech:
Content Hidden Spoiler
  1. #==============================================================================
  2. # • Tecniche combinate stile Chrono Trigger
  3. # di mikb89
  4. # demo: 2 agosto 2009
  5. # versione 1.2 - CCOA (3.04) compatible
  6. #------------------------------------------------------------------------------
  7. # Per creare una skill combo basta fare una skill normale e poi
  8. # configurare qui ciò che viene richiesto.
  9. # Da notare che nelle skill combo è utilizzato il sistema che c'era
  10. # nell'rm2k, cioè che per usare una tecnica con un attributo, devi
  11. # avere l'equipaggiamento con quell'attributo. Ad esempio lo skill
  12. # "Colpo di spada" con l'attributo "Spada", richiede che devi avere
  13. # equipaggiata un arma con l'attributo "Spada" (una spada, quindi);
  14. # se non usate gli attributi non ci fate caso, ma nell'rm2k era così. Se
  15. # invece li usate e volete lo stesso anche per gli skill normali, copiate
  16. # alla fine di questo script lo script Skill Add-on che segue.
  17. # NEW: Se non volete usare questo sistema degli attributi adesso potete
  18. #      configurarlo tramite il USA_ATTRIBUTI_SKILL sotto impostato a 0
  19. #==============================================================================
  20. # • Configurazioni:
  21. #------------------------------------------------------------------------------
  22. module Impostazioni
  23. class CTCombo
  24.  
  25. TASTO_CAMBIO_SKILL_E_COMBO = Input::A
  26. # I combo vengono utilizzati scegliendo Skill dal menu (o come l'avete
  27. # tradotto) e premendo un tasto.
  28. # Premendolo nuovamente si torna alle skill normali. Con questa costante
  29. # si specifica il tasto da premere.
  30. # Input::A equivale a SHIFT
  31. # Input::CTRL equivale a CONTROL
  32. # Input::L e Input::R equivalgono a PageUp e PageDown
  33. # e ce ne sono altri, l'importante è che c'è Input:: prima
  34.  
  35. ARCHIVIAZIONE_VIA_SWITCH = 0
  36. # Occorre spendere due parole...
  37. # In Chrono Trigger ci sono tre membri che vanno in battaglia ma i personaggi
  38. # che sono nel party (oltre quei tre) dal menu possono usare i combo. Questa
  39. # situazione può essere emulata tramite switch mettendo 1. Con 0 per il combo
  40. # saranno considerati validi soltanto i personaggi che vanno in battaglia.
  41.  
  42. SWITCH_INIZIALE_MEMBRI = 11
  43. # Se la constante sopra è settata a 1 questo valore specifica lo switch che
  44. # viene attivato quando il PRIMO eroe è nel party. Gli altri eroi avranno gli switch
  45. # seguenti a seconda del loro ordine nel database.
  46. # Da notare che se questo metodo è attivo gli switch vanno impostati anche per
  47. # i tre eroi che vanno in battaglia.
  48.  
  49. USA_ATTRIBUTI_SKILL = 0
  50. # Attiva (1) o disattiva (0) il sistema di abilitazione skill per attributi.
  51. # Dato che non tutti conoscono questa opzione (che era standard nei vecchi
  52. # rpg maker) ho pensato di dare la possibilità di rimuoverla.
  53. # Qualunque sia l'impostazione, varrà solo per le SKILL COMBO!
  54. # Quindi per le skill normali basterà mettere sopra (attivo) o sotto (disattivo)
  55. # il Main lo Skill AddOn incluso in questa demo.
  56. end
  57. end
  58.  
  59. $combo_skill = [53, 54, 55, 56, 57, 58, 59, 60, 61, 81, 82, 83, 84, 85, 86, 87, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 147, 148, 149, 150, 151, 152, 153, 154]
  60. # Contiene gli id delle skill che sono combo.
  61. # In questo caso le skill dal n° 82 al n° 84 sono combo.
  62. # Quindi vi chiederete: "Sono combo sì, ma chi le usa?"
  63. # Questo viene specificato sotto.
  64.  
  65. $combo_hero = [[1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 9], [1, 8], [1, 7], [1, 10], [2, 3], [2, 4], [2, 5], [2, 6], [2, 8], [2, 7], [3, 4], [3, 5], [3, 7], [4, 5], [4, 6], [4, 9], [5, 10], [9, 8], [9, 7], [7, 8], [7, 9, 8], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [11, 12, 13, 14], [6, 11, 12, 13, 14], [15, 16, 17, 18]]
  66. # Contiene gli id degli eroi che usano le combo (per ogni combo sono tra parentesi quadra).
  67. # In questo caso la prima skill combo (la n° 82 come impostato sopra) sarà eseguita dagli eroi
  68. # n°1 e 8; la seconda skill dagli eroi 5 e 8; la terza da 7 e 8.
  69. # E a questo punto vi chiederete: "E come faccio a specificare gli MP necessari per ogni eroe?"
  70. # E anche questo viene specificato sotto.
  71.  
  72. $combo_point = [[4, 4], [4, 4], [4, 4], [4, 4], [6, 6], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [4, 4], [8, 8, 8], [10, 10, 10, 10, 10], [12, 12, 12, 12, 12], [16, 16, 16, 16, 16], [20, 20, 20, 20, 20], [22, 22, 22, 22, 22], [16, 16, 16, 16], [16, 16, 16, 16, 16], [20, 20, 20, 20]]
  73. # Contiene i punti necessari per eseguire la combo per ogni eroe.
  74. # Identico a quello sopra, solo che dovete sostituire il numero dell'eroe con gli MP necessari per
  75. # utilizzare la combo. In questo caso nella skill 82 l'eroe 1 necessiterà di 100 MP, l'eroe 8 di 75.
  76. # Nota: gli MP specificati nella scheda della skill, se la skill è combo, non serviranno
  77. #       ad un emerito niente.
  78.  
  79. # Fine configurazioni
  80.  
  81. #-----------------VALENTINO------------
  82. SKILL_COMBO = {
  83. 147=>SHOOT, #shoot
  84. 148=>ARROW,  #arrow
  85. 149=>VICTORY, #victory
  86. 150=>CLUSTER, #cluster
  87. 152=>ARROW  #arrow
  88. }
  89. #----------------VALENTINO-------------
  90.  
  91.  
  92. class Window_Combo < Window_Selectable
  93.   #--------------------------------------------------------------------------
  94.   # ● Inizializzazione
  95.   #--------------------------------------------------------------------------
  96.   def initialize(actor)
  97.     super(0, 320, 640, 160)
  98.     @actor = actor
  99.     @column_max = 1
  100.     refresh
  101.     self.index = 0
  102.     if $game_temp.in_battle
  103.       self.y = 64
  104.       self.height = 256
  105.       self.back_opacity = 160
  106.     end
  107.   end
  108.   #--------------------------------------------------------------------------
  109.   # ● Riporta la combo selezionata
  110.   #--------------------------------------------------------------------------
  111.   def skill
  112.     return @data[self.index]
  113.   end
  114.   #--------------------------------------------------------------------------
  115.   # ● Conteggia i combo da disegnare
  116.   #--------------------------------------------------------------------------
  117.   def refresh
  118.     if self.contents != nil
  119.       self.contents.dispose
  120.       self.contents = nil
  121.     end
  122.     @data = []
  123.     for i in [email hidden]
  124.       skill = $data_skills[@actor.skills[i]]
  125.       if skill != nil and $combo_skill.include?(skill.id)
  126.         @data.push(skill)
  127.       end
  128.     end
  129.     @item_max = @data.size
  130.     if @item_max > 0
  131.       self.contents = Bitmap.new(width - 32, row_max * 32)
  132.       for i in 0...@item_max
  133.         draw_item(i)
  134.       end
  135.     end
  136.   end
  137.   #--------------------------------------------------------------------------
  138.   # ● Disegna la combo
  139.   #--------------------------------------------------------------------------
  140.   def draw_item(index)
  141.     skill = @data[index]
  142.     for i in 0...$combo_skill.size
  143.       if $combo_skill[i] != nil
  144.       if $combo_skill[i] == skill.id
  145.         n = i
  146.       end
  147.       end
  148.     end
  149.     v = 0
  150.     for h in 0...$combo_hero[n].size
  151.       if $game_actors[$combo_hero[n][h]] != nil
  152.       if $game_actors[$combo_hero[n][h]].combo_can_use?(skill.id)
  153.         v += 1
  154.       end
  155.     end
  156.     end
  157.    
  158.     #VALENTINO
  159.      formation = SKILL_COMBO[skill.id]
  160.      @colore = false
  161.     if formation != nil
  162.       if $battle_formation == formation
  163.         self.contents.font.color = normal_color
  164.       else
  165.         @colore = true
  166.         self.contents.font.color = disabled_color
  167.       end
  168.     end
  169.     #VALENTINO
  170.    
  171.     if v == $combo_hero[n].size
  172.       self.contents.font.color = normal_color
  173.     else
  174.       self.contents.font.color = disabled_color
  175.     end
  176.    
  177.    self.contents.font.color = disabled_color if @colore
  178.    
  179.    
  180.     x = 4
  181.     y = index * 32
  182.     rect = Rect.new(x, y, self.width - 32, 64)
  183.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  184.     bitmap = RPG::Cache.icon(skill.icon_name)
  185.     opacity = self.contents.font.color == normal_color ? 255 : 128
  186.     self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
  187.     self.contents.draw_text(x + 28, y, 204, 32, skill.name, 0)
  188.     if not $game_temp.in_battle
  189.       self.contents.draw_text(x + 232, y, 48, 32, $combo_point[n][0].to_s, 2)
  190.       self.contents.draw_text(x + 288, y, 48, 32, $combo_point[n][1].to_s, 2) rescue nil
  191.       self.contents.draw_text(x + 344, y, 48, 32, $combo_point[n][2].to_s, 2) rescue nil
  192.       self.contents.draw_text(x + 400, y, 48, 32, $combo_point[n][3].to_s, 2) rescue nil
  193.     else
  194.       po = []
  195.       for i in 0...$game_party.actors.size
  196.         if $combo_hero[n].include?($game_party.actors[i].id)
  197.           po.push $game_party.actors[i].id
  198.         end
  199.       end
  200.       ex = po.size
  201.       for r in 0...$combo_hero[n].size
  202.         if $combo_hero[n][r] != nil
  203.         if not po.include?($combo_hero[n][r])
  204.           po.push $combo_hero[n][r]
  205.         end
  206.         end
  207.       end
  208.       for ach in 0...po.size
  209.         if ach == ex
  210.           self.contents.font.color = self.contents.font.color == normal_color ? knockout_color : Color.new(255, 64, 0, 128)
  211.         end
  212.         for h in 0...$combo_hero[n].size
  213.           if $combo_point[n][h] != nil
  214.           if $combo_hero[n][h] == po[ach]
  215.             punti = $combo_point[n][h]
  216.           end
  217.           end
  218.         end
  219.         self.contents.draw_text(x + 232 + (ach * 56), y, 48, 32, punti.to_s, 2)
  220.       end
  221.     end
  222.   end
  223.   #--------------------------------------------------------------------------
  224.   # ● Finestra con descrizione combo
  225.   #--------------------------------------------------------------------------
  226.   def update_help
  227.     @help_window.set_text(self.skill == nil ? "" : self.skill.description)
  228.   end
  229. end
  230.  
  231. class Window_ComboStatus < Window_Base
  232.   #--------------------------------------------------------------------------
  233.   # ● Inizializzazione
  234.   #--------------------------------------------------------------------------
  235.   def initialize(actor, n)
  236.     super(0, 64*n, 640, 64)
  237.     self.contents = Bitmap.new(width - 32, height - 32)
  238.     @actor = actor
  239.     refresh
  240.   end
  241.   #--------------------------------------------------------------------------
  242.   # ● Disegna i valori
  243.   #--------------------------------------------------------------------------
  244.   def refresh
  245.     self.contents.clear
  246.     if @actor != nil
  247.       draw_actor_name(@actor, 4, 0)
  248.       draw_actor_state(@actor, 140, 0)
  249.       draw_actor_hp(@actor, 284, 0)
  250.       draw_actor_sp(@actor, 460, 0)
  251.     end
  252.   end
  253.   #--------------------------------------------------------------------------
  254.   # ● Imposta il personaggio
  255.   #--------------------------------------------------------------------------
  256.   def actor=(actor)
  257.     @actor = actor
  258.     refresh
  259.   end
  260. end
  261.  
  262. class Scene_Combo
  263.   #--------------------------------------------------------------------------
  264.   # ● Inizializzazione
  265.   #--------------------------------------------------------------------------
  266.   def initialize(actor_index = 0, equip_index = 0)
  267.     @actor_index = actor_index
  268.   end
  269.   #--------------------------------------------------------------------------
  270.   # ● Ciclo principale
  271.   #--------------------------------------------------------------------------
  272.   def main
  273.     @actor = $game_party.actors[@actor_index]
  274.     @help_window = Window_Help.new
  275.     @status_window = Window_ComboStatus.new(@actor, 1)
  276.     @status_window2 = Window_ComboStatus.new(nil, 2)
  277.     @status_window3 = Window_ComboStatus.new(nil, 3)
  278.     @status_window4 = Window_ComboStatus.new(nil, 4)
  279.     @skill_window = Window_Combo.new(@actor)
  280.     @skill_window.help_window = @help_window
  281.     @target_window = Window_Target.new
  282.     @target_window.visible = false
  283.     @target_window.active = false
  284.     Graphics.transition
  285.     loop do
  286.       Graphics.update
  287.       Input.update
  288.       update
  289.       if $scene != self
  290.         break
  291.       end
  292.     end
  293.     Graphics.freeze
  294.     @help_window.dispose
  295.     @status_window.dispose
  296.     @status_window2.dispose
  297.     @status_window3.dispose
  298.     @status_window4.dispose
  299.     @skill_window.dispose
  300.     @target_window.dispose
  301.   end
  302.   #--------------------------------------------------------------------------
  303.   # ● Aggiornamento
  304.   #--------------------------------------------------------------------------
  305.   def update
  306.     @help_window.update
  307.     @status_window.update
  308.     @status_window2.update
  309.     @status_window3.update
  310.     @status_window4.update
  311.     @skill_window.update
  312.     @target_window.update
  313.     if @skill_window.active
  314.       update_skill
  315.       return
  316.     end
  317.     if @target_window.active
  318.       update_target
  319.       return
  320.     end
  321.   end
  322.   #--------------------------------------------------------------------------
  323.   # ● Gestione combo
  324.   #--------------------------------------------------------------------------
  325.   def update_skill
  326.     for i in 0...$combo_skill.size
  327.       if $combo_skill[i] == @skill_window.skill.id
  328.         n = i
  329.       end
  330.     end
  331.     if n != nil
  332.       v = 0
  333.       for h in 0...$combo_hero[n].size
  334.         if $game_actors[$combo_hero[n][h]] != nil
  335.         if $game_actors[$combo_hero[n][h]].combo_can_use?(@skill_window.skill.id)
  336.           v += 1
  337.         end
  338.         end
  339.       end
  340.     end
  341.     @status_window.actor = $game_actors[$combo_hero[n][0]] rescue @status_window.actor = @actor
  342.     @status_window2.actor = $game_actors[$combo_hero[n][1]] rescue @status_window2.actor = nil
  343.     @status_window3.actor = $game_actors[$combo_hero[n][2]] rescue @status_window3.actor = nil
  344.     @status_window4.actor = $game_actors[$combo_hero[n][3]] rescue @status_window4.actor = nil
  345.     if Input.trigger?(Input::B)
  346.       $game_system.se_play($data_system.cancel_se)
  347.       $scene = Scene_Menu.new(1)
  348.       return
  349.     end
  350.     if Input.trigger?(Input::C)
  351.       @skill = @skill_window.skill
  352.       if @skill == nil or not v == $combo_hero[n].size
  353.         $game_system.se_play($data_system.buzzer_se)
  354.         return
  355.       end
  356.       $game_system.se_play($data_system.decision_se)
  357.       if @skill.scope >= 3
  358.         @skill_window.active = false
  359.         @target_window.x = (@skill_window.index + 1) % 2 * 304
  360.         @target_window.visible = true
  361.         @target_window.active = true
  362.         if @skill.scope == 4 || @skill.scope == 6
  363.           @target_window.index = -1
  364.         elsif @skill.scope == 7
  365.           @target_window.index = @actor_index - 10
  366.         else
  367.           @target_window.index = 0
  368.         end
  369.       else
  370.         if @skill.common_event_id > 0
  371.           $game_temp.common_event_id = @skill.common_event_id
  372.           $game_system.se_play(@skill.menu_se)
  373.           for s in 0...$combo_hero[n].size
  374.             if $game_actors[$combo_hero[n][s]] != nil
  375.             $game_actors[$combo_hero[n][s]].sp -= $combo_point[n][s]
  376.           end
  377.          
  378.           end
  379.           @status_window.refresh
  380.           @status_window2.refresh
  381.           @status_window3.refresh
  382.           @status_window4.refresh
  383.           @skill_window.refresh
  384.           @target_window.refresh
  385.           $scene = Scene_Map.new
  386.           return
  387.         end
  388.       end
  389.       return
  390.     end
  391.     if Input.trigger?(Input::R)
  392.       $game_system.se_play($data_system.cursor_se)
  393.       @actor_index += 1
  394.       @actor_index %= $game_party.actors.size
  395.       $scene = Scene_Combo.new(@actor_index)
  396.       return
  397.     end
  398.     if Input.trigger?(Input::L)
  399.       $game_system.se_play($data_system.cursor_se)
  400.       @actor_index += $game_party.actors.size - 1
  401.       @actor_index %= $game_party.actors.size
  402.       $scene = Scene_Combo.new(@actor_index)
  403.       return
  404.     end
  405.     if Input.trigger?(Impostazioni::CTCombo::TASTO_CAMBIO_SKILL_E_COMBO)
  406.       $game_system.se_play($data_system.decision_se)
  407.       $scene = Scene_Skill.new(@actor_index)
  408.       return
  409.     end
  410.   end
  411.   #--------------------------------------------------------------------------
  412.   # ● Scelta personaggio per utilizzare combo di cura
  413.   #--------------------------------------------------------------------------
  414.   def update_target
  415.     for i in 0...$combo_skill.size
  416.       if $combo_skill[i] == @skill_window.skill.id
  417.         n = i
  418.       end
  419.     end
  420.     @status_window.actor = $game_actors[$combo_hero[n][0]] rescue @status_window.actor = @actor
  421.     @status_window2.actor = $game_actors[$combo_hero[n][1]] rescue @status_window2.actor = nil
  422.     @status_window3.actor = $game_actors[$combo_hero[n][2]] rescue @status_window3.actor = nil
  423.     @status_window4.actor = $game_actors[$combo_hero[n][3]] rescue @status_window4.actor = nil
  424.     v = 0
  425.     for h in 0...$combo_hero[n].size
  426.       if $game_actors[$combo_hero[n][h]] != nil
  427.       if $game_actors[$combo_hero[n][h]].combo_can_use?(@skill_window.skill.id)
  428.         v += 1
  429.       end
  430.       end
  431.     end
  432.     if Input.trigger?(Input::B)
  433.       $game_system.se_play($data_system.cancel_se)
  434.       @skill_window.active = true
  435.       @target_window.visible = false
  436.       @target_window.active = false
  437.       return
  438.     end
  439.     if Input.trigger?(Input::C)
  440.       unless v == $combo_hero[n].size
  441.         $game_system.se_play($data_system.buzzer_se)
  442.         return
  443.       end
  444.       if @target_window.index == -1
  445.         used = false
  446.         for i in $game_party.actors
  447.           used |= i.skill_effect(@actor, @skill)
  448.         end
  449.       end
  450.       if @target_window.index <= -2
  451.         target = $game_party.actors[@target_window.index + 10]
  452.         used = target.skill_effect(@actor, @skill)
  453.       end
  454.       if @target_window.index >= 0
  455.         target = $game_party.actors[@target_window.index]
  456.         used = target.skill_effect(@actor, @skill)
  457.       end
  458.       if used
  459.         $game_system.se_play(@skill.menu_se)
  460.         for s in 0...$combo_hero[n].size
  461.           if $game_actors[$combo_hero[n][s]] != nil
  462.           $game_actors[$combo_hero[n][s]].sp -= $combo_point[n][s]
  463.           end
  464.         end
  465.         @status_window.refresh
  466.         @status_window2.refresh
  467.         @status_window3.refresh
  468.         @status_window4.refresh
  469.         @skill_window.refresh
  470.         @target_window.refresh
  471.         if $game_party.all_dead?
  472.           $scene = Scene_Gameover.new
  473.           return
  474.         end
  475.         if @skill.common_event_id > 0
  476.           $game_temp.common_event_id = @skill.common_event_id
  477.           $scene = Scene_Map.new
  478.           return
  479.         end
  480.       end
  481.       unless used
  482.         $game_system.se_play($data_system.buzzer_se)
  483.       end
  484.       return
  485.     end
  486.   end
  487. end
  488.  
  489. class Game_Actor < Game_Battler
  490.     def combo_can_use?(skill_id)
  491.     for i in 0...$combo_skill.size
  492.       if $combo_skill[i] == skill_id
  493.         n = i
  494.       end
  495.     end
  496.     for i in 0...$combo_hero[n].size
  497.       if $game_actors[$combo_hero[n][i]] != nil
  498.       if not $game_actors[$combo_hero[n][i]].skills.include?(skill_id)
  499.         return false
  500.       end
  501.     end
  502.     end
  503.  
  504.     if Impostazioni::CTCombo::USA_ATTRIBUTI_SKILL == 0
  505.       return super
  506.     else
  507.       @acc = 0
  508.       @times = 0
  509.       for a in $data_skills[skill_id].element_set
  510.         @times +=1
  511.         if ($combo_hero[n][0] != nil and $data_weapons[$game_actors[$combo_hero[n][0]].weapon_id] != nil and $data_weapons[$game_actors[$combo_hero[n][0]].weapon_id].element_set.include?(a)) or
  512.           ($combo_hero[n][1] != nil and $data_weapons[$game_actors[$combo_hero[n][1]].weapon_id] != nil and $data_weapons[$game_actors[$combo_hero[n][1]].weapon_id].element_set.include?(a)) or
  513.           ($combo_hero[n][2] != nil and $data_weapons[$game_actors[$combo_hero[n][2]].weapon_id] != nil and $data_weapons[$game_actors[$combo_hero[n][2]].weapon_id].element_set.include?(a))
  514.           @acc += 1
  515.         else
  516.           if ($combo_hero[n][0] != nil and $data_armors[$game_actors[$combo_hero[n][0]].armor1_id] != nil and $data_armors[$game_actors[$combo_hero[n][0]].armor1_id].guard_element_set.include?(a)) or
  517.             ($combo_hero[n][1] != nil and $data_armors[$game_actors[$combo_hero[n][1]].armor1_id] != nil and $data_armors[$game_actors[$combo_hero[n][1]].armor1_id].guard_element_set.include?(a)) or
  518.             ($combo_hero[n][2] != nil and $data_armors[$game_actors[$combo_hero[n][2]].armor1_id] != nil and $data_armors[$game_actors[$combo_hero[n][2]].armor1_id].guard_element_set.include?(a))
  519.             @acc += 1
  520.           else
  521.             if ($combo_hero[n][0] != nil and $data_armors[$game_actors[$combo_hero[n][0]].armor2_id] != nil and $data_armors[$game_actors[$combo_hero[n][0]].armor2_id].guard_element_set.include?(a)) or
  522.               ($combo_hero[n][1] != nil and $data_armors[$game_actors[$combo_hero[n][1]].armor2_id] != nil and $data_armors[$game_actors[$combo_hero[n][1]].armor2_id].guard_element_set.include?(a)) or
  523.               ($combo_hero[n][2] != nil and $data_armors[$game_actors[$combo_hero[n][2]].armor2_id] != nil and $data_armors[$game_actors[$combo_hero[n][2]].armor2_id].guard_element_set.include?(a))
  524.               @acc += 1
  525.             else
  526.               if ($combo_hero[n][0] != nil and $data_armors[$game_actors[$combo_hero[n][0]].armor3_id] != nil and $data_armors[$game_actors[$combo_hero[n][0]].armor3_id].guard_element_set.include?(a)) or
  527.                 ($combo_hero[n][1] != nil and $data_armors[$game_actors[$combo_hero[n][1]].armor3_id] != nil and $data_armors[$game_actors[$combo_hero[n][1]].armor3_id].guard_element_set.include?(a)) or
  528.                 ($combo_hero[n][2] != nil and $data_armors[$game_actors[$combo_hero[n][2]].armor3_id] != nil and $data_armors[$game_actors[$combo_hero[n][2]].armor3_id].guard_element_set.include?(a))
  529.                 @acc += 1
  530.               else
  531.                 if ($combo_hero[n][0] != nil and $data_armors[$game_actors[$combo_hero[n][0]].armor4_id] != nil and $data_armors[$game_actors[$combo_hero[n][0]].armor4_id].guard_element_set.include?(a)) or
  532.                   ($combo_hero[n][1] != nil and $data_armors[$game_actors[$combo_hero[n][1]].armor4_id] != nil and $data_armors[$game_actors[$combo_hero[n][1]].armor4_id].guard_element_set.include?(a)) or
  533.                   ($combo_hero[n][2] != nil and $data_armors[$game_actors[$combo_hero[n][2]].armor4_id] != nil and $data_armors[$game_actors[$combo_hero[n][2]].armor4_id].guard_element_set.include?(a))
  534.                   @acc += 1
  535.                 else
  536.                   return false
  537.                 end
  538.               end
  539.             end
  540.           end
  541.         end
  542.       end
  543.       if @times == @acc
  544.         return super
  545.       else
  546.         return false
  547.       end
  548.     end
  549.   end
  550. end
  551.  
  552. class Game_Battler
  553.   def combo_can_use?(skill_id)
  554.     for i in 0...$combo_skill.size
  555.       if $combo_skill[i] == skill_id
  556.         n = i
  557.       end
  558.     end
  559.     for i in 0...$combo_hero[n].size
  560.       if $game_actors[$combo_hero[n][i]] != nil
  561.       if $combo_point[n][i] > $game_actors[$combo_hero[n][i]].sp
  562.         return false
  563.       end
  564.       end
  565.     end
  566.     for i in 0...$combo_hero[n].size
  567.       if $game_actors[$combo_hero[n][i]] != nil
  568.       if $game_actors[$combo_hero[n][i]].hp == 0 and not $game_actors[$combo_hero[n][i]].immortal
  569.         return false
  570.       end
  571.       end
  572.     end
  573.     for i in 0...$combo_hero[n].size
  574.       if $game_actors[$combo_hero[n][i]] != nil
  575.       if $data_skills[skill_id].atk_f == 0 and $game_actors[$combo_hero[n][i]].restriction == 1
  576.         return false
  577.       end
  578.       end
  579.     end
  580.     occasion = $data_skills[skill_id].occasion
  581.     pl = 0
  582.     if $game_temp.in_battle
  583.       for i in 0...$combo_hero[n].size
  584.         if $game_actors[$combo_hero[n][i]] != nil
  585.         if $game_party.actors.include?($game_actors[$combo_hero[n][i]])
  586.           pl += 1
  587.         end
  588.         end
  589.       end
  590.       if pl == $combo_hero[n].size
  591.         return (occasion == 0 or occasion == 1)
  592.       else
  593.         return false
  594.       end
  595.     else
  596.       for i in 0...$combo_hero[n].size
  597.         if $combo_hero[n][i] != nil
  598.         if Impostazioni::CTCombo::ARCHIVIAZIONE_VIA_SWITCH
  599.           if $game_switches[$combo_hero[n][i] + Impostazioni::CTCombo::SWITCH_INIZIALE_MEMBRI - 1] == true
  600.             pl += 1
  601.           end
  602.           end
  603.         else
  604.           if $game_party.actors.include?($combo_hero[n][i])
  605.             pl += 1
  606.           end
  607.         end
  608.       end
  609.       if pl == $combo_hero[n].size
  610.         return (occasion == 0 or occasion == 2)
  611.       else
  612.         return false
  613.       end
  614.     end
  615.   end
  616. end
  617.  
  618. class Scene_Skill
  619.   alias ctbs_update_skill update_skill
  620.   def update_skill
  621.     ctbs_update_skill
  622.     if Input.trigger?(Impostazioni::CTCombo::TASTO_CAMBIO_SKILL_E_COMBO)
  623.       $game_system.se_play($data_system.decision_se)
  624.       $scene = Scene_Combo.new(@actor_index)
  625.       return
  626.     end
  627.   end
  628. end
  629.  
  630. class Scene_Battle
  631.   def main
  632.     $game_temp.in_battle = true
  633.     $game_temp.battle_turn = 0
  634.     $game_temp.battle_event_flags.clear
  635.     $game_temp.battle_abort = false
  636.     $game_temp.battle_main_phase = false
  637.     $game_temp.battleback_name = $game_map.battleback_name
  638.     $game_temp.forcing_battler = nil
  639.     $game_system.battle_interpreter.setup(nil, 0)
  640.     @troop_id = $game_temp.battle_troop_id
  641.     $game_troop.setup(@troop_id)
  642.     @party_command_window = Window_PartyCommand.new
  643.     @help_window = Window_Help.new
  644.     @help_window.back_opacity = 160
  645.     @help_window.visible = false
  646.     @status_window = Window_BattleStatus.new
  647.     @message_window = Window_Message.new
  648.     #ccoa
  649.     #s1 = $data_system.words.attack
  650.     #s2 = $data_system.words.skill
  651.     #s3 = $data_system.words.guard
  652.     #s4 = $data_system.words.item
  653.     #@actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])
  654.     #@actor_command_window.y = 160
  655.     #@actor_command_window.back_opacity = 160
  656.     #@actor_command_window.active = false
  657.     #@actor_command_window.visible = false
  658.     @help_window2 = Win_Help.new
  659.     @help_window2.visible = false
  660.     @help_window2.contents_opacity = 0
  661.     @help_time = 0
  662.     @actor_command_windows = []
  663.     setup_actor_command_windows
  664.     @cursor_bitmap = Sprite.new
  665.     @cursor_bitmap.bitmap = RPG::Cache.windowskin($game_system.windowskin_name)
  666.     @cursor_bitmap.src_rect.set(128, 96, 32, 32)
  667.     @cursor_bitmap.visible = false
  668.     @blink_count = 0
  669.     #fine ccoa
  670.     @spriteset = Spriteset_Battle.new
  671.     @wait_count = 0
  672.     # compatibilità CCOA
  673.     @extra_sprites = [] if @extra_sprites == nil
  674.    # cp_preset_party
  675.    # @cp_meters = CP_Meters.new
  676.    # @extra_sprites.push(@cp_meters)
  677.     # fine compatibilità
  678.     if $data_system.battle_transition == ""
  679.       Graphics.transition(0)
  680.     else
  681.       Graphics.transition(40, "Graphics/Transitions/" +
  682.         $data_system.battle_transition) #era 40 ora è 100 x ccoa
  683.     end
  684.     start_phase1
  685.     loop do
  686.       Graphics.update
  687.       Input.update
  688.       update
  689.       if $scene != self
  690.         break
  691.       end
  692.     end
  693.     $game_map.refresh
  694.     Graphics.freeze
  695.     #ccoa
  696.     for window in @actor_command_windows
  697.       window.dispose
  698.     end
  699.     #@actor_command_window.dispose
  700.     #fine ccoa
  701.     @party_command_window.dispose
  702.     @help_window.dispose
  703.     @help_window2.dispose #ccoa
  704.     @status_window.dispose
  705.     @message_window.dispose
  706.     if @skill_window != nil
  707.       @skill_window.dispose
  708.     end
  709.     #ccoa
  710.     if @skill_window2 != nil
  711.       @skill_window2.dispose
  712.     end
  713.     #fine ccoa
  714.     if @combo_window != nil
  715.       @combo_window.dispose
  716.     end
  717.     if @item_window != nil
  718.       @item_window.dispose
  719.     end
  720.     if @result_window != nil
  721.       @result_window.dispose
  722.     end
  723.     @spriteset.dispose
  724.     # compatibilità CCOA
  725.     @cursor_bitmap.dispose
  726.     #@cp_meters.dispose
  727.     # fine compatibilità
  728.     if $scene.is_a?(Scene_Title)
  729.       Graphics.transition
  730.       Graphics.freeze
  731.     end
  732.     if $BTEST and not $scene.is_a?(Scene_Gameover)
  733.       $scene = nil
  734.     end
  735.   end
  736.  
  737.   def update_phase3
  738.     if @enemy_arrow != nil
  739.       update_phase3_enemy_select
  740.       return #ccoa
  741.     elsif @actor_arrow != nil
  742.       update_phase3_actor_select
  743.       return #ccoa
  744.     elsif @skill_window != nil
  745.       update_phase3_skill_select
  746.       return #ccoa
  747.     elsif @combo_window != nil
  748.       update_phase3_combo_select
  749.       return #ccoa
  750.     elsif @item_window != nil
  751.       update_phase3_item_select
  752.       return #ccoa
  753.     end #ccoa
  754.    
  755.     #ccoa
  756.     #elsif @actor_command_window.active
  757.     #  update_phase3_basic_command
  758.     #end
  759.     # If actor command window is enabled
  760.     for i in 0..$game_party.actors.size - 1
  761.       if @actor_command_windows[i].active
  762.           update_phase3_basic_command
  763.         return
  764.       end
  765.     end
  766.     #fine ccoa
  767.   end
  768.  
  769.   alias update_phase3_skill_select_combo update_phase3_skill_select
  770.   def update_phase3_skill_select
  771.     update_phase3_skill_select_combo
  772.     if Input.trigger?(Impostazioni::CTCombo::TASTO_CAMBIO_SKILL_E_COMBO)
  773.         $game_system.se_play($data_system.decision_se)
  774.         @active_battler.current_action.kind = 1
  775.         end_skill_select
  776.         start_combo_select
  777.       return
  778.     end
  779.   end
  780.  
  781.   def update_phase3_combo_select
  782.     @combo_window.visible = true
  783.     @combo_window.update
  784.     for i in 0...$combo_skill.size
  785.       if $combo_skill[i] == @combo_window.skill.id
  786.         n = i
  787.       end
  788.     end
  789.     for b in 0...$game_party.actors.size
  790.       $game_party.actors.blink = false
  791.     end
  792.     if n != nil
  793.       for h in 0...$combo_hero[n].size
  794.         if $game_actors[$combo_hero[n][h]] != nil
  795.         if $game_party.actors.include?($game_actors[$combo_hero[n][h]])
  796.           $game_actors[$combo_hero[n][h]].blink = true
  797.           end
  798.         end
  799.       end
  800.     end
  801.     if Input.trigger?(Input::B)
  802.       $game_system.se_play($data_system.cancel_se)
  803.       end_combo_select
  804.       return
  805.     end
  806.     if Input.trigger?(Input::C)
  807.       @skill = @combo_window.skill
  808.       #VALENTINO
  809.     formation = SKILL_COMBO[@skill.id]
  810.     if formation != nil
  811.       unless $battle_formation == formation
  812.         $game_system.se_play($data_system.buzzer_se)
  813.         return
  814.       end
  815.     end
  816.       #VALENTINO
  817.      
  818.       if n == nil
  819.         $game_system.se_play($data_system.buzzer_se)
  820.         return
  821.       end
  822.       v = 0
  823.       for h in 0...$combo_hero[n].size
  824.         if $game_actors[$combo_hero[n][h]] != nil
  825.         if $game_actors[$combo_hero[n][h]].combo_can_use?(@skill.id)
  826.           v += 1
  827.         end
  828.         end
  829.       end
  830.       if @skill == nil or not v == $combo_hero[n].size
  831.         $game_system.se_play($data_system.buzzer_se)
  832.         return
  833.       end
  834.       $game_system.se_play($data_system.decision_se)
  835.       @active_battler.current_action.skill_id = @skill.id
  836.       @combo_window.visible = false
  837.       if @skill.scope == 1
  838.         start_enemy_select
  839.       elsif @skill.scope == 3 or @skill.scope == 5
  840.         start_actor_select
  841.       else
  842.         end_combo_select
  843.         phase3_next_actor
  844.       end
  845.       return
  846.     end
  847.     if Input.trigger?(Impostazioni::CTCombo::TASTO_CAMBIO_SKILL_E_COMBO)
  848.         $game_system.se_play($data_system.decision_se)
  849.         @active_battler.current_action.kind = 1
  850.         end_combo_select
  851.         start_skill_select
  852.       return
  853.     end    
  854.   end
  855.  
  856.   def update_phase3_enemy_select
  857.     @enemy_arrow.update
  858.     if Input.trigger?(Input::B)
  859.       $game_system.se_play($data_system.cancel_se)
  860.       end_enemy_select
  861.       return
  862.     end
  863.     if Input.trigger?(Input::C)
  864.       $game_system.se_play($data_system.decision_se)
  865.       @active_battler.current_action.target_index = @enemy_arrow.index
  866.       end_enemy_select
  867.       if @skill_window != nil
  868.         end_skill_select
  869.       end
  870.       if @combo_window != nil
  871.         end_combo_select
  872.       end
  873.       if @item_window != nil
  874.         end_item_select
  875.       end
  876.       phase3_next_actor
  877.     end
  878.   end
  879.  
  880.   def update_phase3_actor_select
  881.     @actor_arrow.update
  882.     if Input.trigger?(Input::B)
  883.       $game_system.se_play($data_system.cancel_se)
  884.       end_actor_select
  885.       return
  886.     end
  887.     if Input.trigger?(Input::C)
  888.       $game_system.se_play($data_system.decision_se)
  889.       @active_battler.current_action.target_index = @actor_arrow.index
  890.       end_actor_select
  891.       if @skill_window != nil
  892.         end_skill_select
  893.       end
  894.       if @combo_window != nil
  895.         end_combo_select
  896.       end
  897.       if @item_window != nil
  898.         end_item_select
  899.       end
  900.       phase3_next_actor
  901.     end
  902.   end
  903.  
  904.   def start_combo_select
  905.     @combo_window = Window_Combo.new(@active_battler)
  906.     @combo_window.help_window = @help_window
  907.     #ccoa
  908.     for i in 0..$game_party.actors.size - 1
  909.       @actor_command_windows[i].active = false
  910.       @actor_command_windows[i].visible = false
  911.     end
  912.     #@actor_command_window.active = false
  913.     #@actor_command_window.visible = false
  914.     #fine ccoa
  915.   end
  916.  
  917.   def end_combo_select
  918.     for b in 0...$game_party.actors.size
  919.       $game_party.actors[b].blink = false
  920.     end
  921.     @active_battler.blink = true
  922.     @combo_window.dispose
  923.     @combo_window = nil
  924.     @help_window.visible = false
  925.     #ccoa
  926.     @actor_command_windows[@actor_index].active = true
  927.     @actor_command_windows[@actor_index].visible = true
  928.     #@actor_command_window.active = true
  929.     #@actor_command_window.visible = true
  930.     #fine ccoa
  931.   end
  932.  
  933.   def make_skill_action_result
  934.     @animate = nil
  935.     @skill = $data_skills[@active_battler.current_action.skill_id]
  936.     for i in 0...$combo_skill.size
  937.       if $combo_skill[i] == @skill.id
  938.         n = i
  939.       end
  940.     end
  941.     if not $combo_skill.include?(@skill.id)
  942.       #ccoa
  943.       if @active_battler.is_a?(Game_Actor)
  944.         if $USING_INDIV_SKILL_ANIM
  945.           @active_battler.set_pose(@active_battler.skill_hash[$data_skills[@active_battler.current_action.skill_id].name], false)
  946.         else # get animation by skill type
  947.           @active_battler.set_pose(@active_battler.skill_type_hash[@active_battler.skill_kind], false)
  948.         end
  949.       else
  950.         @active_battler.set_pose($SKILL, false)
  951.       end
  952.       #fine ccoa
  953.       unless @active_battler.current_action.forcing
  954.         unless @active_battler.skill_can_use?(@skill.id)
  955.           $game_temp.forcing_battler = nil
  956.           @phase4_step = 1
  957.           return
  958.         end
  959.       end
  960.       @active_battler.sp -= @skill.sp_cost
  961.       @status_window.refresh
  962.       #ccoa
  963.       @help_window2.contents_opacity = 0
  964.       @help_window2.y = -200
  965.       $name_help = CCOA_CBS::NAME_SKILL
  966.       @help_window2.set_text(@skill.name, 1)
  967.       #@help_window.set_text(@skill.name, 1)
  968.       #fine ccoa
  969.       @animation1_id = @skill.animation1_id
  970.       @animation2_id = @skill.animation2_id
  971.       @common_event_id = @skill.common_event_id
  972.       set_target_battlers(@skill.scope)
  973.       for target in @target_battlers
  974.         target.skill_effect(@active_battler, @skill)
  975.         #ccoa
  976.         unless target == @active_battler
  977.           reset_pose(target)
  978.         end
  979.         #fine ccoa
  980.       end
  981.     else
  982.       #ccoa
  983.       if n != nil
  984.         for h in 0...$combo_hero[n].size
  985.           if $game_actors[$combo_hero[n][h]] != nil
  986.           if $game_actors[$combo_hero[n][h]].is_a?(Game_Actor)
  987.             if $USING_INDIV_SKILL_ANIM
  988.               $game_actors[$combo_hero[n][h]].set_pose($game_actors[$combo_hero[n][h]].skill_hash[$data_skills[@active_battler.current_action.skill_id].name], false)
  989.             else # get animation by skill type
  990.               $game_actors[$combo_hero[n][h]].set_pose($game_actors[$combo_hero[n][h]].skill_type_hash[$game_actors[$combo_hero[n][h]].skill_kind], false)
  991.             end
  992.             end
  993.           else
  994.             $game_actors[$combo_hero[n][h]].set_pose($SKILL, false) if $game_actors[$combo_hero[n][h]] != nil
  995.           end
  996.         end
  997.       else
  998.         if @active_battler.is_a?(Game_Actor)
  999.           if $USING_INDIV_SKILL_ANIM
  1000.             @active_battler.set_pose(@active_battler.skill_hash[$data_skills[@active_battler.current_action.skill_id].name], false)
  1001.           else # get animation by skill type
  1002.             @active_battler.set_pose(@active_battler.skill_type_hash[@active_battler.skill_kind], false)
  1003.           end
  1004.         else
  1005.           @active_battler.set_pose($SKILL, false)
  1006.         end
  1007.       end
  1008.       #fine ccoa
  1009.       unless @active_battler.current_action.forcing
  1010.         if n != nil
  1011.           v = 0
  1012.           for h in 0...$combo_hero[n].size
  1013.             if $game_actors[$combo_hero[n][h]] != nil
  1014.             if $game_actors[$combo_hero[n][h]].combo_can_use?(@skill.id)
  1015.               v +=1
  1016.             end
  1017.             end
  1018.           end
  1019.         end
  1020.         unless v == $combo_hero[n].size
  1021.           $game_temp.forcing_battler = nil
  1022.           @phase4_step = 1
  1023.           return
  1024.         end
  1025.       end
  1026.       if n != nil
  1027.         for h in 0...$combo_hero[n].size
  1028.           if $game_actors[$combo_hero[n][h]] != nil
  1029.           $game_actors[$combo_hero[n][h]].sp -= $combo_point[n][h]
  1030.           @animate = $combo_hero[n]
  1031.         end
  1032.         end
  1033.       end
  1034.       @status_window.refresh
  1035.       #ccoa
  1036.       @help_window2.contents_opacity = 0
  1037.       @help_window2.y = -200
  1038.       $name_help = CCOA_CBS::NAME_SKILL
  1039.       @help_window2.set_text(@skill.name, 1)
  1040.       #@help_window.set_text(@skill.name, 1)
  1041.       #fine ccoa
  1042.       @animation1_id = @skill.animation1_id
  1043.       @animation2_id = @skill.animation2_id
  1044.       @common_event_id = @skill.common_event_id
  1045.       set_target_battlers(@skill.scope)
  1046.       for target in @target_battlers
  1047.         target.skill_effect(@active_battler, @skill)
  1048.         #ccoa
  1049.         if n != nil
  1050.           for h in 0...$combo_hero[n].size
  1051.             if $game_actors[$combo_hero[n][h]] != nil
  1052.             unless target == $game_actors[$combo_hero[n][h]]
  1053.               reset_pose(target)
  1054.             end
  1055.             end
  1056.           end
  1057.         else
  1058.           unless target == @active_battler
  1059.             reset_pose(target)
  1060.           end
  1061.         end
  1062.         #fine ccoa
  1063.       end
  1064.     end
  1065.   end
  1066.  
  1067.   def update_phase4_step3
  1068.     if @animate == nil
  1069.       if @animation1_id == 0
  1070.         @active_battler.white_flash = true
  1071.         #ccoa
  1072.         if @active_battler.animated
  1073.           @wait_count = [@active_battler.attack_frames * 10 - 10, 8].max
  1074.         else
  1075.           @wait_count = 8
  1076.         end
  1077.         #fine ccoa
  1078.       else
  1079.         @active_battler.animation_id = @animation1_id
  1080.         @active_battler.animation_hit = true
  1081.       end
  1082.       #ccoa
  1083.       if @active_battler.current_action.kind == 0 and @active_battler.current_action.basic == 0
  1084.         @active_battler.set_pose($ATTACK, false)
  1085.       end
  1086.       #fine ccoa
  1087.       @phase4_step = 4
  1088.     else
  1089.       if @animation1_id == 0
  1090.         for b in [email hidden]
  1091.           $game_actors[@animate[b]].white_flash = true
  1092.           #ccoa
  1093.           if $game_actors[@animate[b]].animated
  1094.             @wait_count = [$game_actors[@animate[b]].attack_frames * 10 - 10, 8].max
  1095.           else
  1096.             @wait_count = 8
  1097.           end
  1098.           #fine ccoa
  1099.         end
  1100.       else
  1101.         for b in [email hidden]
  1102.           $game_actors[@animate[b]].animation_id = @animation1_id
  1103.           $game_actors[@animate[b]].animation_hit = true
  1104.         end
  1105.       end
  1106.       #ccoa
  1107.       for b in [email hidden]
  1108.         if $game_actors[@animate[b]].current_action.kind == 0 and $game_actors[@animate[b]].current_action.basic == 0
  1109.           $game_actors[@animate[b]].set_pose($ATTACK, false)
  1110.         end
  1111.       end
  1112.       #fine ccoa
  1113.       @animate = nil
  1114.       @phase4_step = 4
  1115.     end
  1116.   end
  1117. end
  1118.  
  1119. class Window_Skill < Window_Selectable
  1120.   def refresh
  1121.     if self.contents != nil
  1122.       self.contents.dispose
  1123.       self.contents = nil
  1124.     end
  1125.     @data = []
  1126.     for i in [email hidden]
  1127.       skill = $data_skills[@actor.skills[i]]
  1128.       #ccoa
  1129.       if (@skill_kind == -1)
  1130.         if skill != nil and not $combo_skill.include?(skill.id)
  1131.           @data.push(skill)
  1132.         end
  1133.       else
  1134.         if (skill != nil and skill.element_set.include?(@skill_kind)) and not $combo_skill.include?(skill.id)
  1135.           @data.push(skill)
  1136.         end
  1137.       end
  1138.       #if skill != nil and not $combo_skill.include?(skill.id)
  1139.       #  @data.push(skill)
  1140.       #end
  1141.       #fine ccoa
  1142.     end
  1143.     @item_max = @data.size
  1144.     if @item_max > 0
  1145.       self.contents = Bitmap.new(width - 32, row_max * 32)
  1146.       for i in 0...@item_max
  1147.         draw_item(i)
  1148.       end
  1149.     end
  1150.   end
  1151. end
  1152.  
  1153. #ccoa
  1154. class Win_Skill < Window_Selectable
  1155.     def refresh
  1156.     if self.contents != nil
  1157.       self.contents.dispose
  1158.       self.contents = nil
  1159.     end
  1160.  
  1161.     @data = []
  1162.     for i in [email hidden]
  1163.       skill = $data_skills[@actor.skills[i]]
  1164.       if (@skill_kind == -1)
  1165.         if skill != nil and not $combo_skill.include?(skill.id)
  1166.           @data.push(skill)
  1167.         end
  1168.       else
  1169.         if (skill != nil and skill.element_set.include?(@skill_kind)) and not $combo_skill.include?(skill.id)
  1170.           @data.push(skill)
  1171.         end
  1172.       end
  1173.     end
  1174.     @item_max = @data.size
  1175.     if @item_max > 0
  1176.       self.contents = Bitmap.new(width - 32, row_max * 32)
  1177.       for i in 0...@item_max
  1178.         draw_item(i)
  1179.       end
  1180.     end
  1181.   end
  1182. end
  1183. #fine ccoa
Expand to see the code.

and I would to group these skills in a separate menu if possible, otherwise it will not make them appear in the skill menu.
[b]Scene Skill (Link Tech):

Image

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=77576