SphereCommunity
Max Damage - Printable Version

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



Max Damage - Alias - 10-26-2012 08:13 PM

Hi i just was wondering how to do if weapon have like 75-85 dmg it only gona do max damage ? Like all the way do 85


RE: Max Damage - daedelus - 10-26-2012 09:29 PM

Code:
DAM min,max.  RW     Gets or sets the base damage that the weapon will deal.
More info!

Maybe if you put DAM = 85 or 85,85?.

Thanks


RE: Max Damage - Alias - 10-26-2012 09:39 PM

yea it will work if i put DAM=85,85 but i want make max dam only against monsters but for players 75-85


RE: Max Damage - darksun84 - 10-26-2012 10:07 PM

Try, inside a @hit trigger, this code

PHP Code:
if !(src.isplayer)  
 
argn1 = <argo.ar.hi// I don't know if this is the right sintax, but i am sure that AR.HI hold the maximum damage inside a weapon 
endif 



RE: Max Damage - daedelus - 10-26-2012 10:15 PM

Code:
if !(src.isplayer)  
argn1 = <argo.ar.hi> // I don't know if this is the right sintax, but i am sure that AR.HI hold the maximum damage inside a weapon
endif

Sure with <AR>?

Code:
ON=@Hit
IF !(<SRC.ISPLAYER>)
ARGN1 = <ARGO.DAM.HI>
ENDIF

may be can work. tell us.

Thanks


RE: Max Damage - Alias - 10-26-2012 10:53 PM

jup its works, thanks guys Smile


RE: Max Damage - darksun84 - 10-26-2012 11:08 PM

ah yes it was dam Big Grin


RE: Max Damage - daedelus - 10-26-2012 11:36 PM

great Big Grin

Thanks