Mana regenrating skills?

Weekly updated column for helping skill development. Users can't directly post requests but a PM or mail can be sent to Skill-Clinician.

Moderator: Skill Clinician

Devangell
Posts: 74
Joined: Thu Jul 30, 2020 10:06 am
Belgium

Mana regenrating skills?

Post by Devangell » Thu Mar 25, 2021 11:00 pm

Hello all

Is it possible to make skills (like teeth, bash, fire bolt, etc..) to regenerate/ leech mana on hit? Basically the concept of D3.
Tried and tested some things with no luck.

Thx in advance!

User avatar
eleriaqueen
Posts: 57
Joined: Mon Dec 16, 2019 8:49 am
France

Re: Mana regenrating skills?

Post by eleriaqueen » Fri Mar 26, 2021 11:48 am

Hello.
Hmmm, have you tried modifying skill to cost negative amounts of mana ? (it might "generate" mana)

User avatar
Cypress
Moderator
Champion of the Light
Posts: 446
Joined: Fri Dec 01, 2017 2:08 am

Re: Mana regenrating skills?

Post by Cypress » Fri Mar 26, 2021 3:10 pm

Missiles can leech via the mana element. If I remember correctly, it works such that (at hitshift=0) for every 1 mana damage = 1% of physical damage concurrently dealt is leeched. So to make it deal primarily leeching, you could set the damage to 1 and use very large mana damage numbers. You could also make it ignore immunities, so that physical immunes aren't immune to the leeching behavior. There are two ways you can attach leeching missiles with your main, damaging missile:

For skills using only srvmissile, this is easy. You can add in a srvdofunc that produces srvmissilea. So when you cast the spell, it will simultaneously release your damaging missile and your leeching missile.

For skills with behaviors gained via srvdofunc (e.g. Teeth) or only srvmissile, you could use submissiles. For example, use an explode release missile function, so that the moment after the primary missile hits something it releases the leeching missile.

Return to “Skill Clinic”