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 7291
181 전투 A-battle 수정 file 백호 2009.02.21 1174
180 전투 데미지마루 백호 2009.02.21 1174
179 키입력 Key Simulator by Fantasist 4 습작 2013.05.01 1171
178 맵/타일 Map Event Large Make 2 백호 2009.02.22 1170
177 이동 및 탈것 World Map & Teleporter by SephirothSpawn 2 file 백호 2009.02.22 1170
176 이동 및 탈것 KGC_Teleport file 백호 2009.02.22 1166
175 기타 Encounter Control by SephirothSpawn (SDK호환) 4 file 백호 2009.02.22 1165
174 기타 레벨9999스크립트 4 백호 2009.02.21 1165
173 아이템 아이템 사용 클래스 한정 스크립트! 2 백호 2009.02.22 1164
172 이동 및 탈것 마나 소비 텔레포트 2 백호 2009.02.22 1164
171 기타 전투 승리 BGM+페이드아웃 스크립트 1 file 백호 2009.02.21 1162
170 오디오 음악 재생 스크립트 3 file 백호 2009.02.21 1160
169 기타 맵처리를 가볍게 1 백호 2009.02.21 1158
168 기타 스테이터스 표시 플러스 1.00ver 백호 2009.02.22 1155
167 스킬 스킬 도감 1 백호 2009.02.21 1154
166 기타 Drago - Custom Resolution by LiTTleDRAgo Alkaid 2014.02.13 1152
» 전투 FF10 전투 대미지 공식 by hydro@rmxp.org 백호 2009.02.22 1152
164 이동 및 탈것 [통합] 텔레포트 통합 수정편 1 백호 2009.02.22 1151
163 기타 메세지창의 위치 변동 자동화 file 백호 2009.02.21 1151
162 기타 Tax Script 1.2 by The Darklord@rmxp.org 2 file 백호 2009.02.22 1149
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52