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
Parrying AR Increase
Author Message
Loki
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2020
Reputation: 0



Post: #1
Parrying AR Increase
I am trying to figure out how to get Armour value to increase on shields beyond the parrying skill of 100.00 as it seems to be the default that if its over 100.0 it will not increase further.

https://forum.spherecommunity.net/Thread...ight=modar

I have used this as a reference but I think I am out of my knowledge base now.

Under SKILLCLASS 0 I have the following

PHP Code:
ON=@ItemEquip
 
if <act.type> == t_shield
   modar 
= <EVAL (<act.modar> + <parrying>)/100>

ON=@ItemUnequip
    
if <act.type> == t_shield
modar 
-= <EVAL (<parrying> - <act.modar>)/100

This works fine however if I increase the players parrying by 50 or 100 and they unequip the shield they will have less AR then they did before.

I started playing around with ON=@SkillChange and ON=@Gain but have come short.
11-04-2020 10:15 PM
Find all posts by this user Like Post Quote this message in a reply
Loki
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2020
Reputation: 0



Post: #2
RE: Parrying AR Increase
the 1st if statement is where I am starting to get brain fog I been looking at this for a bit long will take a break. If anyone looks and can offer some advice that would be great.

[/spoiler]
PHP Code:
ON=@SkillChange
if (<Serv.skill.5>)
if <
findlayer.2.type> == t_shield
    modar 
+=  ( (<argn2> - <<argn1>> ) / 100)
    
say hello
    
endif
endif 
11-05-2020 08:15 AM
Find all posts by this user Like Post Quote this message in a reply
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 9 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #3
RE: Parrying AR Increase
We do this with tag

Code:
if <act.type> == t_shield
    LOCAL.ModAR=((<parrying>)*(<hval <src.findlayer.2.armor>>))
    TAG.ModAR2=((<eval <LOCAL.ModAR>>/1000))
    modar += <TAG0.ModAR2>
endif

ON=@ItemUnequip
if <act.type> == t_shield
    modar -= <TAG0.ModAR2>
    TAG.ModAR2=
endif

https://www.uocryptonite.com/
(This post was last modified: 11-06-2020 05:40 AM by Jhobean.)
11-06-2020 05:39 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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