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
@hittry speed
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
@hittry speed
I'm trying to stop weapon speed after 100 dex. Currently I am using this:

local.speed = <weapon.speed>
argn1 = <eval (<serv.SpeedScaleFactor> * 65) / ((<dex> + 100) * <feval <floatval 150 / <fval <local.speed>>>>)>


Which I found that when 2 players are fighting side by side, one player hitting something can change the other players weapon speed.

Can anyone help me out? I'm just wanting weapon speed to no longer increase after 100 dex.
(This post was last modified: 10-29-2015 11:11 AM by Leonidas.)
10-29-2015 10:20 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: @hittry speed
Change <dex> to <max 100,<dex>>
I hope you have the MAX function.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-30-2015 08:02 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: @hittry speed
or you can do it using LOCAL too (in the same way as you already did on LOCAL.Speed)

Code:
LOCAL.Speed = <WEAPON.SPEED>
LOCAL.Dex = <DEX>
IF (<LOCAL.Dex> > 100)
  LOCAL.Dex = 100
ENDIF
ARGN1 = <eval (<SERV.SpeedScaleFactor> * 65) / ((<LOCAL.Dex> + 100) * <feval <floatval 150 / <fval <LOCAL.Speed>>>>)>
10-31-2015 05:52 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #4
RE: @hittry speed
Awesome thank you guys!
11-03-2015 07:38 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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