SphereCommunity
About the new combat system - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: About the new combat system (/Thread-About-the-new-combat-system)

Pages: 1 2 3 4


RE: About the new combat system - XuN - 07-24-2015 07:11 PM

Code:
if (<local.iDiff> < 0)
    local.iDiff = 0 // just means it's very hard.
elseif (<local.iDiff>> 100)
    local.iDiff = 100 // just means it's very easy.
endif

Then if negatives works, just remove the '0' limitation and leave it this way:

Code:
if (<local.iDiff> > 100)
    local.iDiff = 100 // just means it's very easy.
endif



RE: About the new combat system - Lazarus - 07-25-2015 02:33 AM

Found something more weird about this.

Sword, Fencing, Mace, etc. below 50%, will not skillgain.
Sword, Fencing, Mace, etc. above 50% will skillgain.

hahaha

Made this:

Code:
ON=@HITTRY

IF (<<serv.skill.<action>.key>> < 500) || (<<serv.skill.<action>.key>> == 0)
IF (<ACTION>==SKILL_SWORDSMANSHIP)
    skillgain swordsmanship
    ELIF (<ACTION>==SKILL_FENCING)
    skillgain fencing
    ELIF (<ACTION>==SKILL_MACEFIGHTING)
    skillgain macefighting
    ELIF (<ACTION>==SKILL_ARCHERY)
    skillgain archery
    endif
endif



RE: About the new combat system - Rizz - 07-26-2015 12:26 AM

I would not set the skillgain under HITTRY, in this way you can increase the skill standing 3 tiles away from your opponent just pressing the macro "attack last" and without any hit.
I suggest you to use @success, @fail or @hit, @miss


RE: About the new combat system - Lazarus - 07-26-2015 03:19 AM

(07-26-2015 12:26 AM)Rizz Wrote:  I would not set the skillgain under HITTRY, in this way you can increase the skill standing 3 tiles away from your opponent just pressing the macro "attack last" and without any hit.
I suggest you to use @success, @fail or @hit, @miss

Okay then. Thank you! Smile I didn't know about the tiles.