SphereCommunity
modifing itemdef dam.lo dam.hi - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: modifing itemdef dam.lo dam.hi (/Thread-modifing-itemdef-dam-lo-dam-hi)

Pages: 1 2


modifing itemdef dam.lo dam.hi - kn4tseb - 06-23-2014 11:24 AM

DAM min,max RW Gets or sets the base damage that the weapon will deal.


dam.lo and dam.hi arent writeable but
dam min,max is a RW itemdef

but i get console error:

PHP Code:
local.dam1=<eval (<act.dam.lo>*135)/100>)  // shall use muldiv i know
local.dam2=<eval (<act.dam.hi>*135)/100>)
    
act.dam min,max act.dam <local.dam1>,<local.dam2

ive tried different ways and im always getting the fallowing error:

(sphere_event_special.scp,58)Undefined keyword 'dam'


RE: modifing itemdef dam.lo dam.hi - Ben - 06-23-2014 12:02 PM

that's because dam.lo and dam.hi are like you said... ITEMDEF properties, not in game dynamic item properties


RE: modifing itemdef dam.lo dam.hi - kn4tseb - 06-23-2014 12:26 PM

oh okey, so should i use, DAMAGE ? or there's not much i can do about it?


RE: modifing itemdef dam.lo dam.hi - Feeh - 06-23-2014 12:44 PM

(06-23-2014 12:26 PM)kn4tseb Wrote:  oh okey, so should i use, DAMAGE ? or there's not much i can do about it?

Yep,

[itemdef my_weap]
...
DAMAGE=6,7

http://wiki.sphere.torfo.org/index.php/ITEMDEF


RE: modifing itemdef dam.lo dam.hi - kn4tseb - 06-23-2014 12:47 PM

i was talking about modifing a ingame damage property for weapons under an event

something like dam min,max .... its suppose to be RW Confused


RE: modifing itemdef dam.lo dam.hi - Skul - 06-23-2014 10:00 PM

@hit and argn1
Code:
on=@hit
//argo = item used to hit
//argn1 = damage dealt



RE: modifing itemdef dam.lo dam.hi - darksun84 - 06-23-2014 10:58 PM

You can use MODAR for weapons, but it will increase/decrease both lowest damage and highest damage.


RE: modifing itemdef dam.lo dam.hi - kn4tseb - 06-24-2014 05:23 AM

i'm using ON=@SkillmakeItem trigger

the idea is once a condition is succesfully passed, crafted weapon gets a damage increase, but INCREASEDAM is not functional yet, and "damage" is for elemental type so neither one of them is functional...
how would this MODAR be for weapons? im reading this is for armor Confused

PD: why there is a modar for armor and there's not a moddam for weapons? is it because a client matter or because it might be implemented on future?


RE: modifing itemdef dam.lo dam.hi - Extreme - 06-24-2014 05:50 AM

Apply INCREASEDAM in your weapon and use it on @HIT/@GETHIT trigger.


RE: modifing itemdef dam.lo dam.hi - kn4tseb - 06-24-2014 05:55 AM

that might be a solution, so increasedam is applied when weapon is crafted and add an event for increasedam under @hit/gethit trigger ...

for example??

ON=@hit
if <argo.increasedam>
argn1 += someformula
endif ??

im not quite sure about what exactly argn1 evaluates, does it take STR?, weapon Dam ranges only?

so i could use arng1 += <muldiv <argo.dam min,max> 135 100> ??? in case i want a 35% extra damage?