Is there skills that cost life%

This is the place for people to research themes and ideas for their mods as well as for others to post their suggestions for mod makers to make use of.

Moderator: Nefarius

Post Reply
User avatar
Psycrono7
Posts: 78
Joined: Tue Nov 05, 2013 10:42 pm

Is there skills that cost life%

Post by Psycrono7 » Sun Aug 27, 2017 7:18 am

Anyone do the concept that skills consume life%?

No not Paladin's skill sacrifice I think.
Image
Miniguns Assault!

ascar
Posts: 69
Joined: Mon Aug 02, 2021 6:40 pm
France

Re: Is there skills that cost life%

Post by ascar » Mon Mar 06, 2023 6:56 pm

interrested too but i think it requieres code edit

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

Re: Is there skills that cost life%

Post by Cypress » Tue Mar 07, 2023 1:03 am

It's possible, as long as the skill applies a state (there are a LOT of ways to do this: with srvdofunc, srvstfunc, or even through a missile). Apply negative hpregen for 1 frame, using calcs to scale the hpregen based on max HP. If you give a description of the exact mechanics of the skill, I can probably make it for you.

User avatar
Specktro
Posts: 78
Joined: Sat Jun 10, 2017 12:49 am
Location: Rio Grande do Sul, Brasil
Brazil

Re: Is there skills that cost life%

Post by Specktro » Wed Mar 08, 2023 3:25 am

I believe Paladin's Sacrifice consumes life. Or it just "damages" the user?
Image
Image
Be Xtreme!

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

Re: Is there skills that cost life%

Post by Cypress » Fri Mar 10, 2023 9:52 am

Sacrifice consumes life based on the damage you deal. If you want life% consumed, try:

srvstfunc=28
srvmissilea=(any valid missile, like firebolt)
aurastate=might
auralencalc=1
aurastat1=hpregen
aurastatcalc1=-stat('maxhp'.accr)*(x)/100

Where x=the percentage of life you want to lose per cast. This system will work for any skill that does not already use a srvstfunc. You'll probably want to change Might to some invisible state.

Post Reply

Return to “Mod Concepts & Research”