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
hits/stam/mana modifiers existing?
Author Message
Artyk
Journeyman
*

Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0



Post: #1
hits/stam/mana modifiers existing?
Hi guys,
are there internal variables to store modifiers for hits/mana/stam like <OSTR> + <MODSTR> = <STR> ?
I tried MODMAXHITS but it seems to be a function that only adds to the current MAXHITS

Thanks
06-26-2015 10:12 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: hits/stam/mana modifiers existing?
There's no hardcoded support for these properties ... however, if they were, it would work the same way: MaxHits = <BaseMaxhits> + <ModMaxHits>.

I used to simulate it in @UserStats:
Code:
[function f_stats_control]            //called in ON=@UserStats
maxhits=<eval <def.server_players_stats_base_maxhits>+<tag0.stat.maxhits>+<tag0.HitpointIncrease>>
maxmana=<eval <def.server_players_stats_base_maxmana>+<tag0.stat.maxmana>+<tag0.manaincrease>>
maxstam=<eval <def.server_players_stats_base_maxstam>+<tag0.stat.maxstam>+<tag0.StaminaIncrease>>

This converted MaxHits in the sum of that custom def + custom tag storing current MaxHits (the real one, if you prefer) + bonus of MaxHits.
06-27-2015 01:01 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Post Reply 


Forum Jump:


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