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
597 기타 Fullscreen++ by Zeus81 (VX/VXA) 2 Alkaid 2012.09.01 2230
596 전투 Slip_Damage_Ex - 슬립데미지 확장기능 (상태별 슬립데미지 적용) 7 허걱 2012.07.24 2198
595 메시지 메시지를 빠르게 넘겨주는 스크립트 3 타카나시 소라 2012.07.23 5038
594 전투 Team_Ilias's_Old_Project_Demo 4 습작 2012.07.11 2101
593 맵/타일 누가 이전에 올렸을지도..... KGC_MapLightening 3 file 클로버군 2012.07.02 2745
592 파티 5인 파티 프로젝트 V1.1 4 file 지나가는떡꼬치 2012.06.30 2988
591 기타 Etude87_GAGA_Chat 4 습작 2012.06.14 1916
590 이름입력 Etude87_HG_Hangul_Name_Scene file 습작 2012.06.14 1948
589 기타 Etude87_Hangul_utf8_List 습작 2012.06.04 1665
588 전투 Etude87_Tankentai_Addon ver.1.0 7 file 습작 2012.06.03 2882
587 퀘스트 퀘스트 마크 표시용 스크립트 10 file 허걱 2012.05.22 3704
586 그래픽 Arevulopapo's Particle Engine for VX/Ace by PK8 1 Alkaid 2012.05.13 2874
585 기타 078656577er님의 스크립트를 개조한, 사격용 스크립트 1 file 타코 2012.03.16 2519
584 맵/타일 Etude87_Map_Remember_VX ver.1.2 3 습작 2012.03.06 2430
583 아이템 드롭 아이템 확장 6 신규회원 2012.02.24 2977
582 기타 멥 이름 띄우기 10 신규회원 2012.02.24 3626
581 저장 세이브 시스템 확장 스크립트 9 file 신규회원 2012.02.24 3315
580 저장 Neo Save System VI by Helladen 2 Alkaid 2012.01.15 2886
579 기타 화면 해상도(640 X 480) 스크립트 6 file 쿠쿠밥솥 2012.01.10 3972
578 전투 XAS Hero Edition VX Manual 번역 1 케이언 2012.01.02 3558
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