Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Combo Attacks Script Help
#6
Hi,

Here is the full code for draw_item

Code:
#--------------------------------------------------------------------------
  def draw_item(index)
    skill = @data[index]
    for i in 0...$combo_skill.size
      if $combo_skill[i] != nil
      if $combo_skill[i] == skill.id
        n = i
      end
      end
    end
    v = 0
    for h in 0...$combo_hero[n].size
      if $game_actors[$combo_hero[n][h]] != nil
      if $game_actors[$combo_hero[n][h]].combo_can_use?(skill.id)
        v += 1
      end
    end
    end
    
    #VALENTINO
    formation = SKILL_COMBO[skill.id]
    @colore = false
    if formation != nil
      if $battle_formation == formation
        self.contents.font.color = normal_color
      else
        @colore = true
        self.contents.font.color = disabled_color
      end
    end
    #VALENTINO
    
    if v == $combo_hero[n].size
      self.contents.font.color = normal_color
    else
      self.contents.font.color = disabled_color
    end
    
   self.contents.font.color = disabled_color if @colore
    
    
    x = 4
    y = index * 32
    rect = Rect.new(x, y, self.width - 32, 64)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    bitmap = RPG::Cache.icon(skill.icon_name)
    opacity = self.contents.font.color == normal_color ? 255 : 128
    self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
    self.contents.draw_text(x + 28, y, 204, 32, skill.name, 0)
    if not $game_temp.in_battle
      self.contents.draw_text(x + 232, y, 48, 32, $combo_point[n][0].to_s, 2)
      self.contents.draw_text(x + 288, y, 48, 32, $combo_point[n][1].to_s, 2) rescue nil
      self.contents.draw_text(x + 344, y, 48, 32, $combo_point[n][2].to_s, 2) rescue nil
      self.contents.draw_text(x + 400, y, 48, 32, $combo_point[n][3].to_s, 2) rescue nil
    else
      po = []
      for i in 0...$game_party.actors.size
        if $combo_hero[n].include?($game_party.actors[i].id)
          po.push $game_party.actors[i].id
        end
      end
      ex = po.size
      for r in 0...$combo_hero[n].size
        if $combo_hero[n][r] != nil
        if not po.include?($combo_hero[n][r])
          po.push $combo_hero[n][r]
        end
        end
      end
      for ach in 0...po.size
        if ach == ex
          self.contents.font.color = self.contents.font.color == normal_color ? knockout_color : Color.new(255, 64, 0, 128)
        end
        for h in 0...$combo_hero[n].size
          if $combo_point[n][h] != nil
          if $combo_hero[n][h] == po[ach]
            punti = $combo_point[n][h]
          end
          end
        end
        self.contents.draw_text(x + 232 + (ach * 56), y, 48, 32, punti.to_s, 2)
      end
    end
  end

I thought this just drew the combo selection box - although I'm not very familiar with a lot of the code here so it may do much more than that...

Thanks for your help.
Reply }


Messages In This Thread
Combo Attacks Script Help - by JackMonty - 03-09-2013, 10:31 AM
RE: Combo Attacks Script Help - by JackMonty - 04-19-2013, 11:05 AM
RE: Combo Attacks Script Help - by MechanicalPen - 04-19-2013, 06:38 PM
RE: Combo Attacks Script Help - by JackMonty - 04-22-2013, 01:13 PM
RE: Combo Attacks Script Help - by MechanicalPen - 04-22-2013, 06:37 PM
RE: Combo Attacks Script Help - by JackMonty - 04-23-2013, 01:56 PM
RE: Combo Attacks Script Help - by MechanicalPen - 04-24-2013, 07:51 PM
RE: Combo Attacks Script Help - by JackMonty - 05-01-2013, 08:41 AM
RE: Combo Attacks Script Help - by MechanicalPen - 05-03-2013, 03:10 AM
RE: Combo Attacks Script Help - by JackMonty - 05-04-2013, 11:04 AM
RE: Combo Attacks Script Help - by MechanicalPen - 05-04-2013, 07:12 PM
RE: Combo Attacks Script Help - by JackMonty - 05-04-2013, 10:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Script compatibility help Lord Vectra 3 3,679 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 13,286 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 14,005 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 14,435 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 7,747 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 9,142 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 8,806 05-31-2017, 05:10 AM
Last Post: Zachariad
   Multi Attack & Combo Display Keeroh 10 12,455 05-15-2017, 06:39 PM
Last Post: DerVVulfman
   Actor names in Quest Script jreagan406 5 7,735 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 6,682 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets



Users browsing this thread: