SphereCommunity
Edit armor on [Event] - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Edit armor on [Event] (/Thread-Edit-armor-on-Event)



Edit armor on [Event] - escribano - 11-23-2012 02:51 PM

Hi folks,

I have a problem here that i cant solve myself....


im trying to change the armor of the item, IF the type is t_armor_leather:

on=@itemequip
if (<act.type> == t_armor_leather)
act.armor += 10
endif

But it doesn't work!!! and i get this error:
02:46:ERROR:(dg_sistema.scp,871)Undefined keyword 'armor'

There is a way to change the armor of a leather armor?
Thanks!


RE: Edit armor on [Event] - Skul - 11-23-2012 03:54 PM

use modar on the character:
Code:
on=@equip
src.modar += 10

on=@unequip
src.modar -= 10



RE: Edit armor on [Event] - darksun84 - 11-23-2012 10:00 PM

Wrong section btw Big Grin


RE: Edit armor on [Event] - Mordaunt - 11-24-2012 12:53 AM

Yes indeed, this would be script help not help wanted, which is a recruitment forum
I'd move it but I can't


RE: Edit armor on [Event] - Skul - 11-25-2012 08:07 AM

Linear Mode lol... I can't move it either.