VX 스크립트

Compatibility
This script rewrites def change_equip(equip_type, item, test = false).
If you have any other script that does something with def change_equip (alias or rewrite), just add this right before the "end" of that method

CODE
@bonus_set = []
    for i in 1..Sets.size
      weapons = [nil,Sets[i][0]]
      armors = [Sets[i][1],Sets[i][2],Sets[i][3],Sets[i][4]]
      if Sets[i].include?(@weapon_id)
        @bonus_set.push(i) if !@bonus_set.include?(i)
      end
      if Sets[i].include?(@armor4_id)
        @bonus_set.push(i) if !@bonus_set.include?(i)
      end
      if Sets[i].include?(@armor3_id)
        @bonus_set.push(i) if !@bonus_set.include?(i)
      end
      if Sets[i].include?(@armor2_id)
        @bonus_set.push(i) if !@bonus_set.include?(i)
      end
      if Sets[i].include?(@armor1_id)
        @bonus_set.push(i) if !@bonus_set.include?(i)
      end
    end
    @bonus_set_pieces = []
    for i in 0...@bonus_set.size
      @bonus_set_pieces.push(0)
    end
    if !@bonus_set.empty?
      for i in 0...@bonus_set.size
        weapons = [nil,Sets[@bonus_set[i]][0]]
        armors = [Sets[@bonus_set[i]][1],Sets[@bonus_set[i]][2],
                  Sets[@bonus_set[i]][3],Sets[@bonus_set[i]][4]]
        @bonus_set_pieces[i] += weapons.include?(@weapon_id) ? 1 : 0
        @bonus_set_pieces[i] += armors.include?(@armor1_id) ? 1 : 0
        @bonus_set_pieces[i] += armors.include?(@armor2_id) ? 1 : 0
        @bonus_set_pieces[i] += armors.include?(@armor3_id) ? 1 : 0
        @bonus_set_pieces[i] += armors.include?(@armor4_id) ? 1 : 0
      end
    end
여기 있고,
여기 또 있음 왜 그런지 모르곘승ㅁ
FontSize_Header = 20
FontSize = 12
X_position = 150
Y_position = 285
LineHeight = 15

class Window_Status < Window_Base
alias show_set_bonus_refresh refresh
  def refresh
    show_set_bonus_refresh
    draw_set_bonus(@actor)
  end
  def draw_set_bonus(actor)
    self.contents.font.color = system_color
    self.contents.font.size = FontSize_Header
    self.contents.draw_text(X_position,Y_position,100,WLH,"Set Bonus")
    self.contents.font.color = normal_color
    
    sets = actor.bonus_set #array with the sets listing
    set_pieces = actor.bonus_set_pieces # array with pieces number for each set
    bonus_set = [0,0,0,0,0,0,0,0,0] #different attribute listing
    for i in 0...sets.size
      bonus_array = Set_Bonus[sets[i]] #array with bonus
      pieces = set_pieces[i] #how many pieces
      for j in 0...pieces
        bonus_set[bonus_array[j][0]] += bonus_array[j][1] # [att,amount]
      end
    end
    
    
    
    #bonus_set = Set_Bonus[actor.bonus_set] #array of bonusses
    #bonus_pieces = actor.bonus_set_pieces #number of pieces
    y_pos = Y_position + 6
    self.contents.font.size = FontSize
    for i in 1...bonus_set.size
      y_pos += LineHeight if !(bonus_set[i] <= 0)
      self.contents.draw_text(X_position,y_pos,100,LineHeight,print_set_bonus([i,bonus_set[i]])) if !(bonus_set[i] <= 0)
    end    
  end
  def print_set_bonus(bonus_set)
    case bonus_set[0]
    when 1 then word = Vocab::atk
    when 2 then word = Vocab::def
    when 3 then word = Vocab::spi
    when 4 then word = Vocab::agi
    when 5 then word = Vocab::hp
    when 6 then word = Vocab::mp
    when 7 then word = "Critical"
    when 8 then word = "Evasion"
    end
    return word + " " + bonus_set[1].to_s + "%"
  end
end
무슨 스크립트 인지 모름
Comment '6'
  • ?
    Man... 2008.10.25 12:37
    ?
    하고 알려 주세요...
  • ?
    읽어버린세계 2008.10.25 15:28
    이거 뭐에요?
  • ?
    Man... 2008.10.25 16:52
    모름
  • ?
    ohsory1324 2008.10.26 11:57
    제목으로 봐서는
    아이템 장착했을때 보너스? 같은건가
  • ?
    Tofuman 2008.10.27 00:09
    이 스크립트 하나 자체론 아~~무것도 못합니다.
    사이트 들어가보니, 다른 2가지 스크립트를 조합해야 되는 군요.. (그중 진정 필요한 건 1개고...)
    아니, 오히려 이 스크립트는 다른 두 스크립트를 쓰다 다른 스크립트를 충돌할때
    그것을 방지하기 위한 거지, 전혀 쓸모가 없어요;;;
    스크립트가 뭔지도 모르고 그냥 올리시는 건 좀....
  • ?
    타로카드 2009.09.06 14:07

    ㅇㅅㅇ


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
497 기타 레벨업 시 증가분의 HP/MP 회복 10 시트르산 2010.09.12 2427
496 전투 Animated Battlers VX 3.4 by DerVVulfman 5 file Alkaid 2010.09.10 3117
495 기타 이벤트 제작용 소품 모음 스크립트 12 시트르산 2010.09.10 2209
494 전투 RPG Tankentai SBS 3.4d + ATB 1.2c Kaduki 18 시트르산 2010.09.10 6449
493 기타 타격관계도 등의 한계돌파 11 시트르산 2010.09.10 2365
492 맵/타일 맵상 캐릭터 그래픽 확대 / 축소 이벤트 스크립트 6 시트르산 2010.09.10 3023
491 메시지 Advanced Text System 3.0c by Modern Algebra 3 file Alkaid 2010.09.08 2302
490 액터 Point Spend System 1.05 by Drago del Fato (포인트로 스탯 올리기) 6 Alkaid 2010.09.08 2612
489 메시지 Universal Message System 0.3.0(beta) by ccoa 3 file Alkaid 2010.09.08 2304
488 기타 VX Weather Script by ccoa 1 Alkaid 2010.09.08 1318
487 액터 (수정)크리쳐 합체, 'SW_CreatureMix' by SiotWarrior 22 file 시옷전사 2010.09.07 2972
486 메시지 Advanced Text System 3.0b by Modern Algebra 3 file Alkaid 2010.09.05 2206
485 스킬 Grid Inventory 1.0f by Modern Algebra 2 Alkaid 2010.09.05 1960
484 상태/속성 Full Status CMS 1.0d by Modern Algebra 1 file Alkaid 2010.09.03 2408
483 상점 (수정)크리쳐 샵, 'SW_CreatureShop' by Siot Warrior 15 file 시옷전사 2010.09.03 3675
482 전투 GubiD's Tactical Battle System 1.5.1.4 (RMVX용) 2 Alkaid 2010.09.03 2858
481 저장 Advanced Files 1.3 by Dargor 6 file Alkaid 2010.09.02 2364
480 메뉴 자작 메뉴 스크립트 for VX(L's Simple Custom Menu VX ver.) 5 Alkaid 2010.09.02 4705
479 장비 Multi-Slot Equipment VX 1.6 by DerVVulfman 1 file Alkaid 2010.09.02 1637
478 저장 Neo Save System V by Helladen(Original by Woratana) 8 Alkaid 2010.09.02 2439
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32