What does returndata do in weapon_damaged_other?

greatguys1

Epic Adventurer
MSC Developer
Warriors of the North
MSC Archivist
Joined
Apr 20, 2013
Messages
339
Reaction score
63
Age
26
Location
Yes
I played around with it, using setdmg 10 and constantly changing returndata anywhere from 0 - 3. I was under the impression that it was a multiplier for setdmg, though it always returned the damage as 7.0 regardless of what I hit, even if different enemies had different armor values.

Edit: This actually seems to be a bug tied to the dual wield penalty. I still can't get a reaction out of it though.
 
Last edited:

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Hrmm... I'm guessing you got gutsy and started digging into the weapon mod system - and yeah, if that is indeed one of those that doesn't returndata proper, may have to rethink that - unless set dmg xxx still works. It's a bit hard to tell which _damaged_other events will be affected by which, being among the reason I always do both returndata and set dmg. Often one will work where the other won't.

But yes, normally you'd expect it to multiply the damage by the ratio defined by returndata. (And yes, as always, beware this is the same data placeholder the $func() returns use by default.)
 
Top