Jump to content
  • 0

Perfect Dodge Edit


Nitrate

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  12/10/13
  • Last Seen:  

Anyone knows how to edit all fo the characters' Perfect Dodge calc for LUK to only need 3 points instead of 10 for every 1 increment?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

You can start checking in the "status_calc_luk"(something like that) from file "status.c".

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  12/10/13
  • Last Seen:  

1 hour ago, benching said:

You can start checking in the "status_calc_luk"(something like that) from file "status.c".

 

Thank you for that. I think I found it.

if (bl->type&battle_config.enable_perfect_flee) {
        stat = status->flee2;
        stat += status->luk + 10; // (every 10 luk = +1 perfect flee)
        status->flee2 = cap_value(stat, 0, SHRT_MAX);
    } else
        status->flee2 = 0;

 

EDIT: Weird, setting the "10" value to any other value doesn't seem to change anything in terms of flee2's computation. Any ideas?

Edited by Nitrate
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

Sorry, I dont know how the server compute for the flee2.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  12/10/13
  • Last Seen:  

Any other thoughts on how I can edit this?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

On 6/4/2017 at 3:36 AM, Nitrate said:

Any other thoughts on how I can edit this?

The solution lies just above the code that you're trying to edit.

Capture2.PNG.11f1792b7a8c2c2ee1fdff66bbb568c4.PNG

Screenshots:

Capture.PNG.6cd47f73a8e1b89641e055e794fcab9f.PNGCapture1.PNG.549487a407915bd863e8222941920649.PNG

flee2_rate is calculated as

Capture.PNG.17891537f566199645938d5dde2e12f7.PNG

src code:

if (bl->type&battle_config.enable_perfect_flee) {
		stat = status->flee2;
		stat += (status->luk*10/3) + 10; // (every 3 luk = +1 perfect flee)
		status->flee2 = cap_value(stat, 0, SHRT_MAX);

 

Edited by Ninja
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...