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
Parry Skill Help
Author Message
UltimaGo
Apprentice
*

Posts: 22
Likes Given: 5
Likes Received: 0 in 0 posts
Joined: Mar 2017
Reputation: 0



Post: #7
RE: Parry Skill Help
(03-31-2017 02:01 AM)darksun84 Wrote:  Here i found that return 2 allows skill gain ( https://wiki.spherecommunity.net/index.p...own_Skills )
ON=@UseQuick
// Fires when the skill is used with the USEQUICK function
// ARGN2 = Skill difficulty (0-100, writable)
// ARGN3 = Whether or not attempt is successful (writable)
// RETURN 1 = Fail the skill attempt without skill gain
// RETURN 0 = Succeed the skill attempt without skill gain
// RETURN 2 = Proceed with skill gain (use ARGN3 to set fail or success)
Something like this?

ON=@UseQuick
IF !(<FINDLAYER.layer_hand2.ISARMOR>) //always fail the skill if there's no shield equipped
return 0
else
return 2
ENDIF

or like this?

ON=@UseQuick
IF !(<FINDLAYER.layer_hand2.ISARMOR>) //always fail the skill if there's no shield equipped
return 0
ENDIF
IF !(<FINDLAYER.layer_hand2.ISSHIELD)
return 2
ENDIF

Maybe its better use t_shield?
Thanks!
(This post was last modified: 03-31-2017 04:34 AM by UltimaGo.)
03-31-2017 04:33 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Parry Skill Help - UltimaGo - 03-30-2017, 09:36 AM
RE: Parry Skill Help - Coruja - 03-30-2017, 10:28 AM
RE: Parry Skill Help - YoAmoElUO - 03-30-2017, 10:42 AM
RE: Parry Skill Help - Coruja - 03-30-2017, 01:42 PM
RE: Parry Skill Help - UltimaGo - 03-31-2017, 12:59 AM
RE: Parry Skill Help - darksun84 - 03-31-2017, 02:01 AM
RE: Parry Skill Help - UltimaGo - 03-31-2017 04:33 AM
RE: Parry Skill Help - darksun84 - 03-31-2017, 05:15 AM
RE: Parry Skill Help - Coruja - 03-31-2017, 06:09 AM
RE: Parry Skill Help - darksun84 - 03-31-2017, 07:43 AM
RE: Parry Skill Help - UltimaGo - 03-31-2017, 08:11 AM
RE: Parry Skill Help - Gregory - 09-28-2019, 10:50 PM

Forum Jump:


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