XP 스크립트

http://www.rmxp.org/forums/showthread.php?t=3862
(내용을 보려면 로그인 필요)
  전투알고리즘을 FF10의 그것으로 교체하는 것입니다.(주: FF10에서는 모든 무기의 공격력은 0으로 간주됨(즉, 무기를 장착해도 공격력 변화없음))

1. 물리공격
GAME_BATTLER 3
if hit_result == true
      # Calculate basic damage
      atk = [attacker.atk - self.pdef / 2, 0].max #찾기
      self.damage = atk * (20 + attacker.str) / 20 #찾기
      # Element correction
      self.damage *= elements_correct(attacker.element_set)
........

이 부분을 다음처럼 수정:

if hit_result == true
      # Calculate basic damage
      atk = (((attacker.str * attacker.str * attacker.str) / 32) + 30)
      self.damage = ((atk * ((((self.pdef - 280) * (self.pdef - 280))/110) + 16))/730) * (730 - (self.pdef * 51 - (self.pdef * self.pdef) / 11) / 10) / 730    # FFX CBA
      # Element correction
      self.damage *= elements_correct(attacker.element_set)
........


2. 마법/스킬
GAME_BATTLER 3
      # Calculate rate
      rate = 20
      rate += (user.str * skill.str_f / 100) #찾기
      rate += (user.dex * skill.dex_f / 100)
      rate += (user.agi * skill.agi_f / 100)
      rate += (user.int * skill.int_f / 100)
      # Calculate basic damage
      self.damage = power * rate / 20 #찾기 끝
      # Element correction
      self.damage *= elements_correct(skill.element_set)
........

이 부분을 다음처럼 수정:
      # Calculate rate
    rate = (skill.power * (((user.int * user.int) / 6) + skill.power) / 4)
      self.damage = (rate * ((((self.mdef - 280) * (self.mdef - 280))/110) + 16)/730) * (730 - (self.mdef * 51 - (self.mdef * self.mdef) / 11) / 10) / 730
    if skill.atk_f == 1
      rate = (((user.str * user.str * user.str) / 32) + 30)
      self.damage = ((rate * ((((self.pdef - 280) * (self.pdef - 280))/110) + 16))/730) * (730 - (self.pdef * 51 - (self.pdef * self.pdef) / 11) / 10) / 730
    end
    if skill.atk_f == 2
      rate = ( skill.power * ((user.int + skill.power) / 2)) * ( 0 -1)
      self.damage = rate
    end
      # Element correction
      self.damage *= elements_correct(skill.element_set)
........


참고: Skill Effect ratings of FFX magic.

백마법 -
케알: 24
케알라: 40
케알가: 80
기도: 8

흑마법 -
워터: 12
워터라: 24
워터가: 42
플레어: 60
알테마: 70


**주: FF시리즈의 전통(?)상, 모든 파라미터 최대값은 255를 넘지 않습니다.

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6154
521 기타 모험일기 5 키라링 2009.01.18 1825
520 장비 장비 화면 개조 스크립트 1 file 백호 2009.02.21 1824
519 전투 Mr.Mo's ABS Ultimate 2.6 by DerVVulfman Alkaid 2012.01.04 1820
518 상점 상점 메뉴 개조시킨 스크립트 - 수정 - 2 file 백호 2009.02.21 1818
517 전투 전투배경 확장 3 file 백호 2009.02.21 1817
516 이동 및 탈것 그래픽의 크기로 좁은길은 못지나가게한다. 7 file 백호 2009.02.21 1816
515 전투 데미지 출력 스크립트 6 백호 2009.02.22 1810
514 전투 Mr.Mo's ABS Ultimate 3.4 by DerVVulfman Alkaid 2012.03.14 1803
513 키입력 키보드 입력을 변수에 받아들이기 1 file 백호 2009.02.21 1802
512 기타 일시정지 스크립트 2 file 백호 2009.02.22 1796
511 아이템 Categorized Items Menu 1.3 by albertfish 1 file Alkaid 2010.09.09 1795
510 오디오 FMOD Ex Audio Module Rewrite 1.51 by Cowlol 2 file Alkaid 2010.11.18 1793
509 기타 [신기술 체험] 추가, 수정 심플액션 4 file 백호 2009.02.22 1790
508 메뉴 비밀소년님의 필드에서 경치 % 로 나오는거 윈도우 없이 8 백호 2009.02.22 1789
507 상태/속성 BattleStatus Modification 1.1 for RTAB by DerVVulfman@rmxp.org 2 file 백호 2009.02.22 1788
506 전투 적 한계 HP수치 돌파 스크립트 ■ RPGモジュール 3 쉴더 2009.02.21 1783
505 장비 장비 전능력 스크립트 4 file 백호 2009.02.22 1783
504 장비 [KGC]장비 제한(레벨,완력등등) 7 file 백호 2009.02.21 1780
503 기타 광물캐기 시스템 v2 3 백호 2009.02.22 1776
502 기타 Phylomortis.com 스크립트들. file Alkaid 2010.09.02 1775
Board Pagination Prev 1 ... 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... 52 Next
/ 52