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
Prevent hardcoded skillgain from combat
Author Message
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #1
Prevent hardcoded skillgain from combat
Hi.

I have noticed that there is a hardcoded skillgain from combat skills, like swordfighting, tactics, and parrying.
It would de possible to stop certain skillgains like tactics or parrying?, specially the last one, because it gains skill even there isn´t any real parry in the combat.

I have tried to blocking it, using ON=@Gain, Return 1, under Parry skill at skills.scp, but it didn´t work because there isn´t any real parry and this trigger don´t fires.
Parry skill goes up only staying at combat.

Do you know any workaround to stop gaining thouse skills?

Thanks in advance. Smile
12-13-2015 10:48 PM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #2
RE: Prevent hardcoded skillgain from combat
did you try @skillgain?

http://wiki.sphere.torfo.org/index.php/@SkillGain

In your main player event use something like

ON=@SkillGain
IF <ARGN1>==5 //skill_parrying
RETURN 1
ENDIF

This should stop Parrying from gaining - but you would then have to think about writing something custom to deal with the parrying skill gain, otherwise noone would ever be able to GM it.
(This post was last modified: 12-13-2015 11:13 PM by richm.)
12-13-2015 11:12 PM
Find all posts by this user Like Post Quote this message in a reply
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #3
RE: Prevent hardcoded skillgain from combat
Yes, I have a custom skill gain system and I am already using ON=@SkillGain on players event. Some custom scripts actions have "Skillgain <skill> 1", and the @SkillGain over the player fires.

But if I put some conditions to not gain skill on tactics or parrying in that trigger, I would have to make another function to gain skill besides my custom system, and it is would be harder to mantain.

Ideally, it that skillgain actions wouldn´t fire it would the best.
I have tried with Flags=skf_scripted, but with no luck.
12-13-2015 11:26 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Prevent hardcoded skillgain from combat
Set ADV_RATE=0 to both skills, then restart server
12-14-2015 09:22 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)