![]() |
Prevent hardcoded skillgain from combat - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Prevent hardcoded skillgain from combat (/Thread-Prevent-hardcoded-skillgain-from-combat) |
Prevent hardcoded skillgain from combat - Gil Amarth - 12-13-2015 10:48 PM Hi. I have noticed that there is a hardcoded skillgain from combat skills, like swordfighting, tactics, and parrying. It would de possible to stop certain skillgains like tactics or parrying?, specially the last one, because it gains skill even there isn´t any real parry in the combat. I have tried to blocking it, using ON=@Gain, Return 1, under Parry skill at skills.scp, but it didn´t work because there isn´t any real parry and this trigger don´t fires. Parry skill goes up only staying at combat. Do you know any workaround to stop gaining thouse skills? Thanks in advance. ![]() RE: Prevent hardcoded skillgain from combat - richm - 12-13-2015 11:12 PM did you try @skillgain? http://wiki.sphere.torfo.org/index.php/@SkillGain In your main player event use something like ON=@SkillGain IF <ARGN1>==5 //skill_parrying RETURN 1 ENDIF This should stop Parrying from gaining - but you would then have to think about writing something custom to deal with the parrying skill gain, otherwise noone would ever be able to GM it. RE: Prevent hardcoded skillgain from combat - Gil Amarth - 12-13-2015 11:26 PM Yes, I have a custom skill gain system and I am already using ON=@SkillGain on players event. Some custom scripts actions have "Skillgain <skill> 1", and the @SkillGain over the player fires. But if I put some conditions to not gain skill on tactics or parrying in that trigger, I would have to make another function to gain skill besides my custom system, and it is would be harder to mantain. Ideally, it that skillgain actions wouldn´t fire it would the best. I have tried with Flags=skf_scripted, but with no luck. RE: Prevent hardcoded skillgain from combat - darksun84 - 12-14-2015 09:22 PM Set ADV_RATE=0 to both skills, then restart server |