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 메뉴 Adding Extra Menu in lafia Script 2 Man... 2008.10.29 1574
56 SephirothSpawn's Slanted Bars in VX 1.1 2 Man... 2008.10.28 1572
55 Path Finding 6 Man... 2008.10.08 1530
54 아이템 Item Price Changer 7 Man... 2008.10.28 1530
53 Sprite Mover 2 Man... 2008.10.27 1529
52 타이틀/게임오버 Title Skip System : 타이틀 스킵 file 허걱 2014.03.19 1510
51 기타 Drop Options 1.1 by Modern Algebra 4 Alkaid 2010.09.16 1509
50 Skill Delay VX 4 Man... 2008.10.28 1503
49 변수/스위치 Variable Criticals Man... 2008.10.28 1480
48 오디오 사운드 자동 변환 설정 rukan 2009.07.01 1461
47 메뉴 Etude87's Menu Editor for VX 25 습작 2015.01.14 1461
46 타이틀/게임오버 Random Title Screen 2 Man... 2008.10.28 1454
45 무슨 스크립트인지 모름 7 Man... 2008.10.26 1453
44 이동 및 탈것 대쉬금지의 변경 1 rukan 2009.07.02 1453
43 (?스크립트) 스크립트 읽어서 그래픽 넣으세요.(영어 잘하는 사람만 권장...) 2 Man... 2008.10.27 1444
42 KID's Luck Systems(무슨 뜻?) 4 Man... 2008.10.27 1378
41 영어 잘하는 사람만 보세요..저도 모르겠음(무슨 스크립트인지) 3 Man... 2008.10.27 1372
40 기타 페이드 시간 변경 2 rukan 2009.07.01 1360
39 기타 Resize and Scale by OriginalWij 1 습작 2013.05.13 1349
38 기타 MSX - XP Characters on VX/VX Ace 2 Alkaid 2013.01.26 1346
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