The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About the new combat system
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #24
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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
About the new combat system - Rizz - 07-06-2015, 06:22 AM
RE: About the new combat system - Lazarus - 07-14-2015, 07:34 AM
RE: About the new combat system - Lazarus - 07-14-2015, 01:19 PM
RE: About the new combat system - XuN - 07-14-2015, 04:45 PM
RE: About the new combat system - Lazarus - 07-16-2015, 01:22 AM
RE: About the new combat system - Rizz - 07-16-2015, 08:07 AM
RE: About the new combat system - XuN - 07-18-2015, 07:17 PM
RE: About the new combat system - Lazarus - 07-19-2015, 07:53 AM
RE: About the new combat system - Coruja - 07-20-2015, 02:34 AM
RE: About the new combat system - Lazarus - 07-20-2015, 03:13 AM
RE: About the new combat system - XuN - 07-20-2015, 05:22 PM
RE: About the new combat system - Lazarus - 07-21-2015, 04:35 AM
RE: About the new combat system - Rizz - 07-24-2015, 01:07 AM
RE: About the new combat system - Lazarus - 07-24-2015, 03:50 AM
RE: About the new combat system - Rizz - 07-24-2015, 04:09 AM
RE: About the new combat system - Lazarus - 07-24-2015, 04:30 AM
RE: About the new combat system - Rizz - 07-24-2015, 04:39 AM
RE: About the new combat system - Lazarus - 07-24-2015, 04:42 AM
RE: About the new combat system - Rizz - 07-24-2015, 04:46 AM
RE: About the new combat system - Lazarus - 07-24-2015, 04:51 AM
RE: About the new combat system - Rizz - 07-24-2015 05:14 AM
RE: About the new combat system - Lazarus - 07-24-2015, 05:17 AM
RE: About the new combat system - Rizz - 07-24-2015, 05:35 AM
RE: About the new combat system - Lazarus - 07-24-2015, 05:41 AM
RE: About the new combat system - Rizz - 07-24-2015, 05:53 AM
RE: About the new combat system - Lazarus - 07-24-2015, 05:57 AM
RE: About the new combat system - Rizz - 07-24-2015, 10:45 AM
RE: About the new combat system - XuN - 07-24-2015, 07:11 PM
RE: About the new combat system - Lazarus - 07-25-2015, 02:33 AM
RE: About the new combat system - Rizz - 07-26-2015, 12:26 AM
RE: About the new combat system - Lazarus - 07-26-2015, 03:19 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)