SphereCommunity
Shields do nothing - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Shields do nothing (/Thread-Shields-do-nothing)



Shields do nothing - x77x - 08-17-2017 02:35 AM

any idea shield do nothing to overall AR rating?

and yes they are uncommented

ARMOR=xx


RE: Shields do nothing - darksun84 - 08-17-2017 03:42 AM

Shield give a chance to block all the damage, the chance is around 25% at 100% Parrying, while using a weapon without a shield gives a 12% chance to block all the damage.


RE: Shields do nothing - x77x - 08-17-2017 03:48 AM

how can i make it the old way, where it is added to AR?


RE: Shields do nothing - darksun84 - 08-17-2017 04:42 AM

You can use MODAR for the shields, then you will have to tweak the armour increase according to the value of the parry skill by using @skillchange and @ItemEquip.
Example:
Code:
ON=@SkillChange
//We have a shield equipped and skill increased, check if modar will increase
if <findlayer.2.type> == t_shield
    //Every 10% point of parrying AR is increased by 1.
    modar +=  ( (<argn2> - <<argn1>> ) / 100)
endif

ON=@ItemEquip
if <act.type> == t_shield
   modar += <act.modar> + ( parrying/ 100)

ON=@ItemUnequip
if <act.type> == t_shield
   modar -= <act.modar> - ( parrying/ 100)

I didn't test it, so probably there will be some errors


RE: Shields do nothing - x77x - 08-17-2017 08:44 AM

this works =)


Code:
ON=@ItemEquip
if <act.type> == t_shield
//   modar += <act.modar> + ( parrying/ 100)
     modar += <act.armor>
SAY i am equiping a shield!

ON=@ItemUnequip
if <act.type> == t_shield
//  modar -= <act.modar> - ( parrying/ 100)
     modar -= <act.armor>
SAY i am unequiping a shield!



RE: Shields do nothing - UltimaGo - 03-30-2019 01:44 PM

Im sorry to update this, i was trying to make it work, but i can't..
what im doing wrong?

Thanks!


PHP Code:
[SKILL 5]
DEFNAME=Skill_Parrying
KEY
=Parrying
TITLE
=Duelist
FLAGS
=skf_fight
STAT_STR
=75
STAT_DEX
=25
STAT_INT
=15
BONUS_STR
=50
BONUS_DEX
=50
BONUS_INT
=0
BONUS_STATS
=10
ADV_RATE
=10.0,150.0,600.0

ON
=@SkillChange
//We have a shield equipped and skill increased, check if modar will increase
if <findlayer.2.type> == t_shield
    
//Every 10% point of parrying AR is increased by 1.
    
modar +=  ( (<argn2> - <<argn1>> ) / 100)
endif

ON=@ItemEquip
if <act.type> == t_shield
 modar 
+= <act.modar> + ( parrying100)

ON=@ItemUnequip
if <act.type> == t_shield
 modar 
-= <act.modar> - ( parrying100



RE: Shields do nothing - x77x - 03-30-2019 09:34 PM

skillclasses, goes under...



[SKILLCLASS 0]
// undeclared class.
// max skills for players of this skill class.
DEFNAME=Class_Undeclared
NAME=undeclared
// EVENTS=e_ClassUndeclared
STATSUM=300
SKILLSUM=10000.0
STR=100
INT=100
DEX=100
..
..
..
..


might be different, no idea


RE: Shields do nothing - UltimaGo - 03-31-2019 02:34 AM

(03-30-2019 09:34 PM)x77x Wrote:  skillclasses, goes under...



[SKILLCLASS 0]
// undeclared class.
// max skills for players of this skill class.
DEFNAME=Class_Undeclared
NAME=undeclared
// EVENTS=e_ClassUndeclared
STATSUM=300
SKILLSUM=10000.0
STR=100
INT=100
DEX=100
..
..
..
..


might be different, no idea

???? Under what? I put the code under the Skill "parrying"

can you show me how do you have "Parrying skill"?

ty


RE: Shields do nothing - Seokotov - 04-01-2019 08:26 AM

triggers under parrying skill is a skill's triggers
you need to place this triggers in players event or in skillclass block


RE: Shields do nothing - UltimaGo - 04-06-2019 01:21 AM

(04-01-2019 08:26 AM)Seokotov Wrote:  triggers under parrying skill is a skill's triggers
you need to place this triggers in players event or in skillclass block

Oh i understand now.. thanks you very much..

Thats why wasn't working silly me Smile