Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Combat Changes
|
Author |
Message |
Lazarus 
Master
 
Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1
Hybris Ultima Online
![]()
|
RE: Combat Changes
(08-17-2015 06:56 PM)Coruja Wrote: you can replace internal combat formulas using triggers, the hit chance is the ACTDIFF on @HitTry
old formula:
Code:
ON=@HitTry
LOCAL.Skill = <QVAL (<WEAPON>)? <WEAPON.SKILL> : 43>
LOCAL.SkillAttack = <eval (<I.<LOCAL.Skill>> + <TACTICS>) / 2>
LOCAL.SkillDefend = <eval (<SRC.TACTICS> + (<SRC.STAM>*10)) / 2>
LOCAL.Diff = <eval (<LOCAL.SkillAttack> - <LOCAL.SkillDefend>) / 5>
LOCAL.Diff = <eval (<I.<LOCAL.Skill>> - <LOCAL.Diff>) / 10>
IF (<LOCAL.Diff> < 0)
LOCAL.Diff = 0
ELIF (<LOCAL.Diff> > 100)
LOCAL.Diff = 100
ENDIF
ACTDIFF = <R<LOCAL.Diff>>
It never enters in the IF (<LOCAL.Diff> < 0) because when diff goes to negative, then that function don't detect the < O.o
Oh and, when you try to hit and the character goes away, the hit didn't complete.
Not using // COMBAT_STAYINRANGE 00200 // Abort attack swing when out of range instead of waiting to come back in range
in Sphere.ini
...
Last build 56c.
(This post was last modified: 08-19-2015 06:52 AM by Lazarus.)
|
|
08-19-2015 06:48 AM |
|
|
Messages In This Thread |
RE: Combat Changes - Lazarus - 08-19-2015 06:48 AM
|
User(s) browsing this thread: 1 Guest(s)