Adding the Stun effect to Melee Weapons

Started by DigitalCore, April 20, 2017, 03:06:49 AM

Previous topic - Next topic

DigitalCore

Purely out of curiosity, I wanted to try and mod the mace to have a small stun effect on hit. I think I'm on the right track, but before I actually break something I wanted to check with anyone who knew.
<surpriseAttack>
          <extraMeleeDamages>
            <li>
              <def>Stun</def>
              <amount>21</amount>
            </li>
          </extraMeleeDamages>
        </surpriseAttack>

I've taken this from the bear paw attack code found in the Core. Can I just paste this after MeleeWeaponCooldown in the statBases or do I have to do something else?
Introducing the new and improved killbox: the Minefield! Now with 30% more explosions! Guaranteed to kill all those pesky tribals that keep visiting you at night.

minimurgle

I'd have a hard time explaining it so I'll just show you (kinda) https://ludeon.com/forums/index.php?topic=31573.msg323598#msg323598 If you look at the boxing gloves in there they have a conscious hit effect so that whoever is on the receiving end will lose a bit of consciousness. I would think you could do something like that with stun.
Don't mind the questions. I'm probably just confused.