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
miss
Author Message
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #7
RE: miss
Quote:- Added ACTDIFF to characters to obtain the current action difficulty.
Suggestion: One can use ACTDIFF to modify difficulty within skill Start triggers.
Quote:- Added OF_Skill_DiffFirst = 0008. With this flag turned on, difficulty for a skill is calculated BEFORE
calling @Start/@SkillStart. This has the advantage of allowing the difficulty for a skill to be changed
via ACTDIFF within that trigger. Notice that for a skill to fail, ACTDIFF must be set above the current
(modified) skill. Setting ACTDIFF to a negative value means that the skill will abort, that is, @Fail
will not be called and no skill gain will be attempted. To always fail set ACTDIFF to a value above the
possible skill (say, 1001).
This has the sideffect of calling @SpellCast before @Start/@SkillStart. On the other hand, it is the
ultimate tool for implementing your own skill difficulties.
Here's an example of making the difficulty for arms lore AT LEAST the same value as for making the item
(using the primary skill). Characters with skill above ACTDIFF will always succeed.
ON = @Start
if ( <SRC.ACTDIFF> < <SRC.ACT.SKILLMAKE.1.VAL> )
SRC.ACTDIFF = <SRC.ACT.SKILLMAKE.1.VAL>
endif
Quote:- Changed args in functions to be writeable. This is useful in scripts, but for triggers, the server will read
back the values and use the new ones wherever it makes sense. For the time being, these triggers were
changed:
@GetHit, ARGN1 is the damage being apllied, ARGN2 the damage type (as usual, but now writeable).
@Hit, ARGN1 is now the raw damage being applied, prior to armour (writeable). ARGO is the weapon (if any).
@PersonalSpace, ARGN1 is the stamina required to move (writeable). "return 1" stops the movement, "return 0"
allows the movement but shows none of the hard-coded messages. Plain "return" or no return, works as standard.
@Hit, @HitTry and @HitMiss were also changed so that ARGO is the weapon being used (handy so you don't have to
be looking at layers n stuff).
I should add that ACTDIFF is also available, and it can be used to change the difficulty of a skill, even make
a skill succedd that would otherwise fail (by setting it to 0). It can also be used in @HitTry now, and if
set to any non-negative value, a missing hit will instead succeed.
Quote:- Removed OF_Skill_DiffFirst since the actdiff is calculated in any case.

Mostly done by Kell and partly changed by Vjaka.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 09-02-2012 05:08 AM by Skul.)
09-02-2012 05:07 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
miss - Art - 09-01-2012, 07:28 PM
RE: miss - Wap - 09-01-2012, 08:46 PM
RE: miss - Art - 09-02-2012, 01:11 AM
RE: miss - RanXerox - 09-02-2012, 03:52 AM
RE: miss - Shaklaban - 09-02-2012, 04:31 AM
RE: miss - RanXerox - 09-02-2012, 04:57 AM
RE: miss - Skul - 09-02-2012 05:07 AM
RE: miss - Art - 09-02-2012, 07:39 AM
RE: miss - Skul - 09-03-2012, 10:20 AM
RE: miss - Art - 09-08-2012, 09:27 AM
RE: miss - Skul - 09-11-2012, 05:31 PM
RE: miss - Art - 09-13-2012, 05:56 PM
RE: miss - Skul - 09-13-2012, 07:33 PM
RE: miss - Art - 09-14-2012, 04:51 AM
RE: miss - Skul - 09-14-2012, 10:38 AM
RE: miss - Art - 09-23-2012, 07:59 AM
RE: miss - RanXerox - 09-23-2012, 08:21 AM
RE: miss - Art - 09-23-2012, 08:29 AM
RE: miss - Skul - 09-23-2012, 08:29 AM
RE: miss - Art - 09-23-2012, 09:11 AM
RE: miss - Art - 09-23-2012, 10:18 AM
RE: miss - Skul - 09-23-2012, 11:09 AM
RE: miss - Art - 09-23-2012, 06:54 PM
RE: miss - ShiryuX - 09-24-2012, 10:59 AM

Forum Jump:


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