SphereCommunity
Crafting skill speed - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Crafting skill speed (/Thread-Crafting-skill-speed)



Crafting skill speed - Indiaret - 07-02-2017 08:10 PM

Hi,

is it possible to modify the speed of crafting skill (Mining,lumberjacking,...) ?
Means how long it takes from start to harvest one resource.

Thanks.


RE: Crafting skill speed - darksun84 - 07-02-2017 09:24 PM

Try the @stroke / @skillstroke trigger (just for skill with skf_gather flags)

Code:
Added @SkillStroke trigger:
        Local.Skill=Skill ID. (Read only).
        Local.strokes=Strokes left*     (Read/Write).
        Local.Sound=Sound to make in this stroke if any (Read/Write).
        Local.Delay=Delay until next stroke (10 = 1 second).
        return 1 Abort the skill.
        return 2* Abort the consumption of resources in this stroke.
*Alchemy works different so its working with some exceptions:
                -Local.Strokes instead of going down it's going up until it reach the total strokes count, wich are equal to the amount of resources. In each stroke if no return is given resources are consumed.
                return 2 Its only allowed in alchemy skill, returning this will let the skill continue to next step (stroke, finish...) without consuming anything in this stroke.
-Modified @SkillStart: Local.CraftStrokeCnt is NOT writable for alchemy, since the skill works different and cannot be overriden this way, use @SkillStroke to add more Strokes if you want.



RE: Crafting skill speed - Indiaret - 07-02-2017 09:57 PM

Yea, this changed speed depended on number of strokes (animations) ... but still there is one animation moreover - local.strokes=1 -> 2 strokes.


RE: Crafting skill speed - darksun84 - 07-20-2017 01:01 AM

I think it's bugged, if you put for example a local.strokes value > 1 the gathering animation will be played forever.

I am super wrong, I forget about:
local.GatherStrokeCnt in @Skillstart/@Start