SphereCommunity
SRC.DAMAGE - Printable Version

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



SRC.DAMAGE - Snaigel - 02-10-2017 01:18 AM

Hi, so I have this trigger on a weapon script

ON=@Damage
SRC.Damage=30,39

but the damage is always 30, it doesn't eval the chance 30 to 39, and I tryied with {30 39} aswell.

maybe it's another way to write it with src.damage?


RE: SRC.DAMAGE - xwerswoodx - 02-10-2017 08:16 AM

We solved it but answer is <R30,39> maybe someone need some day.


RE: SRC.DAMAGE - Coruja - 02-10-2017 12:50 PM

yep, random numbers must be generated using <R30,39>
also don't forget that the final damage value can be reduced by char armor/resists. To ignore armor calculation you must change the damage type to dam_fixed

SRC.DAMAGE <R30,39> dam_fixed


RE: SRC.DAMAGE - Snaigel - 02-11-2017 09:22 AM

I use the same post

I created this event

Quote:[Events e_espadademonio_event]

On=@Hit

SRC.DAMAGE <R38,50>,dam_fixed,<CONT>

But how can I add it to a specific weapon?


RE: SRC.DAMAGE - Artyk - 02-12-2017 01:59 AM

In the weapon's code add:

Code:
ON=@EQUIP
SRC.EVENTS +e_espadademonio_event

ON=@UNEQUIP
SRC.EVENTS -e_espadademonio_event



RE: SRC.DAMAGE - xwerswoodx - 02-12-2017 06:28 AM

SRC.DAMAGE <R38,50>,dam_fixed,<CONT>

->

SRC.DAMAGE <R38,50>,dam_fixed,<UID>

You should use UID not CONT on Event. (or ARGO.CONT) is similar.