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 6153
861 장비 Multi-equip script 노신버전 2 file 백호 2009.02.22 1129
860 기타 Tax Script 1.2 by The Darklord@rmxp.org 2 file 백호 2009.02.22 1130
859 전투 물리친 적의수 표시 file 백호 2009.02.21 1131
858 맵/타일 Map Event Large Make 2 백호 2009.02.22 1132
857 기타 메세지창의 위치 변동 자동화 file 백호 2009.02.21 1138
856 스킬 스킬 도감 1 백호 2009.02.21 1138
855 오디오 음악 재생 스크립트 3 file 백호 2009.02.21 1140
» 전투 FF10 전투 대미지 공식 by hydro@rmxp.org 백호 2009.02.22 1140
853 기타 스테이터스 표시 플러스 1.00ver 백호 2009.02.22 1141
852 이동 및 탈것 [통합] 텔레포트 통합 수정편 1 백호 2009.02.22 1143
851 키입력 Key Simulator by Fantasist 4 습작 2013.05.01 1143
850 기타 맵처리를 가볍게 1 백호 2009.02.21 1147
849 아이템 아이템 사용 클래스 한정 스크립트! 2 백호 2009.02.22 1147
848 맵/타일 Mode07 0.5 by mewsterus 3 백호 2009.02.22 1149
847 기타 레벨9999스크립트 4 백호 2009.02.21 1151
846 이동 및 탈것 KGC_Teleport file 백호 2009.02.22 1153
845 전투 A-battle 수정 file 백호 2009.02.21 1155
844 이동 및 탈것 마나 소비 텔레포트 2 백호 2009.02.22 1155
843 이동 및 탈것 World Map & Teleporter by SephirothSpawn 2 file 백호 2009.02.22 1156
842 기타 Encounter Control by SephirothSpawn (SDK호환) 4 file 백호 2009.02.22 1157
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52