Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
miss
Author Message
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
miss
How i can control by script chance of miss of hit in combat?
(This post was last modified: 09-01-2012 07:28 PM by Art.)
09-01-2012 07:28 PM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #2
RE: miss
ON=@HitTry
ACTDIFF=

ACTDIFF=0 - 100% success;
ACTDIFF=-100 - 100% miss;
positive ACTDIFF - chanse of success.
09-01-2012 08:46 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #3
RE: miss
How the chances works?

I tried ACTDIFF=15 to test 15% of success, but character always have success, and i tried -10, every hit is miss.
09-02-2012 01:11 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: miss
ACTDIFF = Action Difficulty

From what I can tell, you can change the difficulty of the player's current action by changing this value. Any negative number means failure... but I am not sure what a positive number really means. Is that the minimum skill they need to perform that action successfully? Only a developer with access to the code could explain how it works.
09-02-2012 03:52 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #5
RE: miss
im also setting actdiff 0 to never fail on hittry but im not sure is it works or not. sometimes players still miss.
(This post was last modified: 09-02-2012 04:31 AM by Shaklaban.)
09-02-2012 04:31 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #6
RE: miss
Before you code using ACTDIFF you might want to look at the value of ACTION to see what it is you are affecting. I've notice that often the value of ACTION in a trigger is unexpectedly lost (perhaps completed)...
(This post was last modified: 09-02-2012 04:58 AM by RanXerox.)
09-02-2012 04:57 AM
Find all posts by this user Like Post Quote this message in a reply
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
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #8
RE: miss
So i can just use ACTDIFF = ... in SkillStart for proper effect?

Also i didn't found "OF_Skill_DiffFirst" in Revision.
09-02-2012 07:39 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

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



Post: #9
RE: miss
The last quote specifies more information about OF_Skill_DiffFirst. These are revisions from 55i to - 55r. First implemented by Kell, modified by Vjaka.

If I remmeber, if ACTDIFF is greater than the amount of skill you have it will always fail, if ACTDIFF is less it will have a certain fail rate depending on the difference of your skill and ACTDIFF and if ACTDIFF is 0 or less it will always succeed.

There is no float point in your skill, so setting ACTDIFF to 1000 is like setting it to 100.0%, similar idea to changing a skill value through .scp.

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 09-03-2012 10:21 AM by Skul.)
09-03-2012 10:20 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #10
RE: miss
With actdiff=0 character always doing hit, but fighting skill not grow Sad

Maybe some special solution exist?
(This post was last modified: 09-08-2012 09:28 AM by Art.)
09-08-2012 09:27 AM
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)