Rizz 
Master
 
Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0
![]()
|
RE: About the new combat system
Going below 0 is normal since you have lower skills, that's why there is this part of the code
Code:
if (<local.iDiff> < 0)
local.iDiff = 0 // just means it's very hard.
elseif (<local.iDiff>> 100)
local.iDiff = 100 // just means it's very easy.
endif
If you add another line like serv.b local.iDiff <dlocal.iDiff> after, you'll see your value set to 0.
Anyway I found two problems:
1) PLAYER A (allskills 1000), PLAYER B (allskills 0) -> chance to hit 20
2) PLAYER A (allskills 1000), PLAYER B (allskills 0) -> chance to hit 10
3)
Code:
LOCAL.actdiff = <f_hitchance <src.uid>>
serv.b FINAL <dLOCAL.actdiff>
actdiff=<dLOCAL.actdiff>
serv.b ACTDIFF <actdiff>
FINAL != ACTDIFF and I don't know why
(This post was last modified: 07-24-2015 05:21 AM by Rizz.)
|
|
07-24-2015 05:14 AM |
|
|