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
57 미니맵 미니맵 스크립트(아랫거랑 다른거) 75 file 츠키아 2008.08.08 6145
56 맵/타일 새로운 월드맵 만들기 (로맨싱사가풍) 37 file 078656577er 2009.10.09 6151
55 메뉴 스테이터스 창을 멋있게 쿨하게~!전신을 보여주자. 24 file 할렘 2009.02.06 6236
54 메시지 메시지 표시 시스템 [NMS3] 31 아방스 2009.01.24 6248
53 메뉴 파이날 판타지 IX 메뉴. 12 file 할렘 2009.02.06 6287
52 상점 상점을 색다르게 바꿔주는 스크립트 34 file 할렘 2009.02.02 6301
51 온라인 온라인입니다 4 file 알피지GM 2010.03.07 6358
50 메뉴 김태히님이 개조한 모그메뉴 스텟화면 43 file RPGbooster 2008.10.08 6360
49 온라인 net VX[ RPGVX 온라인 스크립트 ] 19 file 제로스S2 2009.08.03 6391
48 HUD KH HUD (HP MP 게이지바 스크립트) 41 아방스 2010.12.17 6422
47 전투 RPG Tankentai SBS 3.4d + ATB 1.2c Kaduki 18 시트르산 2010.09.10 6449
46 메시지 캐릭터 대화상자 - Character's Textbox ver 1.0 6 아방스 2010.12.17 6456
45 맵/타일 추가 맵칩 사용 - 공개 34 file 허걱 2009.08.19 6491
44 이동 및 탈것 동료가 따라다니게 하는 스크립트 59 file 아방스 2008.01.23 6516
43 미니맵 KGC 미니맵 스크립트 (한글번역) 45 file 레오 2009.02.01 6555
42 메뉴 매우 간단명료한 메뉴. 32 file 비극ㆍ 2010.04.23 6619
41 상점 스킬 샾 스크립트 2.0 48 아방스 2008.03.05 6628
40 스텟포인트 배분하기 88 file RPGbooster 2008.10.08 6637
39 이름입력 한글로 이름 입력하는 스크립트입니다. 55 file 헤르코스 2009.03.18 6662
38 전투 2003식 사이드뷰 적들도 가까이와서 공격함 ㅇㅇ 51 배군 2008.05.02 6750
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32