Limiting damage per hit

Post » Fri Nov 16, 2012 2:13 pm

I want the player - even a weedy mage - to lose a fight but not die. How can I limit the amount of damage a hit can do?

(I want to make the player to go through different stages of concussion as their health declines - so simply making them essential and then using OnEnterBleedout won't do quite what I want.)
User avatar
Christie Mitchell
 
Posts: 3389
Joined: Mon Nov 27, 2006 10:44 pm

Post » Fri Nov 16, 2012 1:46 pm

Could the PC cast a healing spell on themselves?

Either when his health is at a certain level or timed ... or something?
User avatar
Lou
 
Posts: 3518
Joined: Wed Aug 23, 2006 6:56 pm

Post » Fri Nov 16, 2012 9:06 am

You could briefly flag the player as essential. You'll go down to one knee, and you can do what you need to OnEnterBleedoutState or whatever, and then unflag him.
User avatar
le GraiN
 
Posts: 3436
Joined: Thu Mar 22, 2007 6:48 pm

Post » Fri Nov 16, 2012 8:18 pm

Reduce player health by 75, trigger as essential, OnBleedout then is coded to put the player back up but with a set of penalties? Repeat the cycle until player goes down four or five times?
User avatar
Lisha Boo
 
Posts: 3378
Joined: Fri Aug 18, 2006 2:56 pm

Post » Fri Nov 16, 2012 11:42 am

OnBleedout then is coded to put the player back up but with a set of penalties?

Yes, I think this is what I'll have to do. Thanks. :)
User avatar
Adam Baumgartner
 
Posts: 3344
Joined: Wed May 30, 2007 12:12 pm


Return to V - Skyrim