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
521 스킬 SG_Skill Invoking Battle Items by sandgolem (SDK호환) 백호 2009.02.22 894
520 전투 전투의 승리마다 행동에 따라서 능력치가 상승한다! 1 백호 2009.02.22 1238
519 기타 대화 글씨가 한글자씩 나오는 스크립트 2 백호 2009.02.22 2464
518 기타 소지금 7자리수(9,999,999원)돌파 6 백호 2009.02.22 1752
517 기타 쓸 용도가 없지만 마비노기 게임 만들 때 좋죠[장작스크립트] 5 백호 2009.02.22 2407
516 기타 SG_Call Script Fix by sandgolem (SDK호환) 백호 2009.02.22 802
515 전투 SG_Auto battle by sandgolem (SDK호환) 백호 2009.02.22 1031
514 기타 광물캐기 시스템 v2 3 백호 2009.02.22 1775
513 메뉴 Customizable Ring Menu by SephirothSpawn 백호 2009.02.22 884
512 기타 My메세지(메세지 출력 스크립트) 1 file 백호 2009.02.22 1533
511 장비 장비 전능력 스크립트 4 file 백호 2009.02.22 1783
510 기타 레벨,능력치 9999 3 백호 2009.02.22 1596
509 전투 Advanced Individual Battle Command v2.1 by Trickster@rmxp.org (SDK호환) 1 file 백호 2009.02.22 1189
508 기타 거울에 자신의모습이 비춰지는 스크립트 2 백호 2009.02.22 1488
507 기타 SG_Window Control v2 by sandgolem 백호 2009.02.22 823
506 메뉴 기본메뉴 뜯어고친것. (스샷추가) 6 file 백호 2009.02.22 4313
505 기타 Rataime's Multi Demo 1 file 백호 2009.02.22 834
504 메뉴 1-Scene CMS 1.03 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 871
» 전투 FF10 전투 대미지 공식 by hydro@rmxp.org 백호 2009.02.22 1141
502 기타 SG_Multiple Currencies v3 by sandgolem (SDK호환) 백호 2009.02.22 803
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