VX 스크립트

RMVX용입니다.  청마법 구현 스크립트.  사용법은 스크립트의 주석을 보세요.
 
 
 
=begin
Blue Mage
by Fomar0153
Version 1.0.0
 
Instructions
Ok this is pretty simple, you copy the script-x and paste it below Materials
in the script-x editor at which point you need to find the two lines:
  BlueMages = [1, 2, 3, 4]
  BlueMagic = [1, 2, 3, 4, 5, 6, 7, 8]
  BlueMagic = [1, 2, 3, 4, 5, 6, 7, 8]
Which are the lines you need to edit the first line tells the script-x
who the blue mage/s are, the numbers refer the actor's id in the database
for example:
  BlueMages = [1, 2, 3, 4]
means Ralph, Ulrika, Bennett and Ylva are blue mages
  BlueMages = [4]
means Ylva is the only blue mage
The other line:
    @bluemagic = [1, 2, 3, 4, 5, 6, 7, 8]
Tells the script-x which skills can be learnt by the blue mage the numbers once
again reference the skill's id in the database.
You can edit the blue mages and the skills they can learn during the course
of the game by using the script-x event for example to add a mage:
$game_party.bluemages.push(5)
To remove a mage:
$game_party.bluemages.delete(5)
To add magic:
$game_party.bluemagic.push(9)
To remove magic:
$game_party.bluemagic.delete(9)
 
And that's all my instructions so I hope you found them useful and enjoy using
this script-x.
=end
 
class Game_Party < Game_Unit
 
  attr_accessor :bluemages
  attr_accessor :bluemagic
 
  alias blue_mage_initialize initialize
  def initialize
    blue_mage_initialize
    @bluemages = [1, 2, 3, 4]
    @bluemagic = [1, 2, 3, 4, 5, 6, 7, 8]
  end
 
  def blue_mage?(id)
    return @bluemages.include?(id)
  end
 
  def blue_magic?(id)
    return @bluemagic.include?(id)
  end
 
end
 
class Scene_Battle
 
  alias blue_mage_execute_action_skill execute_action_skill
  def execute_action_skill
    blue_mage_execute_action_skill
    skill = @active_battler.action.skill
    targets = @active_battler.action.make_targets
    for target in targets
      if target.actor?
        if $game_party.blue_mage?(target.id) and $game_party.blue_magic?(skill.id)
          unless target.skill_learn?(skill)
            target.learn_skill(skill.id)
            wait(10)
            @message_window.add_instant_text(target.name + " learns " + skill.name)
            wait(60)
          end
        end
      end
    end
  end
 
end

Who's WMN

?
 
 

  W M  N  
                  자료공유

Comment '9'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5408
237 스킬 미완성 구버전. 2칸 위에 있는 글을 이용해주세요. 7 Last H 2009.02.23 1925
236 전투 반사 스테이트 -KGC 4 카르와푸딩의아틀리에 2009.09.12 2661
235 스킬 발상의전환 : 스킬과 아이템의 공격횟수를 동시에 증가시키기 14 star211 2010.02.16 3179
234 그래픽 밤낮 변환 VX용 26 독도2005 2008.03.23 4314
233 그래픽 밤낮 변환 스크립트 18 kram3 2008.01.31 3762
232 기타 밤낮의 변화에 따른 전투배경의 변화 스크립트 10 file 카르와푸딩의아틀리에 2009.07.01 2948
231 장비 방어구 착용시 최대HP, MP증가 스크립트(턴알) 3 file 기관차 2014.11.06 1222
230 전투 방어를 했을경우 hp / mp 회복 되도록 하는 스크립트 15 아방스 2008.01.22 3751
229 전투 방패가없어? 그럼 방어못하게하는 스크립트. 16 file 할렘 2009.02.07 3425
228 기타 배틀신에서 곡 넘기기 2 rukan 2009.07.02 1757
227 배틀할때 몬스터의 HP표시 !! 5 file 미카엘 2008.08.17 7517
226 기타 범용 게이지 묘화 - KGC 14 file 카르와푸딩의아틀리에 2009.08.19 3476
225 베틀 스크린 톤 체인지?? 무슨 말? 4 Man... 2008.10.28 1616
224 HUD 변수 표시 HUD 8 Tofuman 2009.02.15 2469
223 상점 보관함 스크립트 43 file 허걱 2009.02.02 5161
222 이동 및 탈것 부드럽게 이동, 8 방향이동 스크립트 25 file 사람이라면? 2010.08.16 3798
221 전투 불사신(무적) 스크립트 9 file 미얼 2009.10.29 3198
220 기타 블랙잭, 룰렛, 포커 스크립트 종합 9 file 도심 2010.08.22 2643
219 기타 블록 미니게임 11 file 사람이라면? 2010.08.15 2269
218 기타 빛 이펙트 71 file DEVIL<Li Patanis Roni Kraudus> 2008.06.06 5861
Board Pagination Prev 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ... 32 Next
/ 32