1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What does returndata do in weapon_damaged_other?

Discussion in 'Scripts' started by greatguys1, Jun 20, 2018.

  1. greatguys1

    greatguys1 Active Adventurer Developer Warriors of the North

    Apr 20, 2013
    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: Jun 20, 2018
  2. Thothie

    Thothie Administrator Staff Member Administrator Moderator Developer

    Apr 8, 2005
    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.)

Share This Page