razorkid Posted October 6, 2015 Share Posted October 6, 2015 How would you go about creating a spell that redirects damage to your magicka/stamina pool rather than your health pool for ~8 seconds. So that any attacks you receive, the damage would be converted over to your magicka pool. And when your magicka pool "runs out" you take actual damage to your health pool again? Link to comment Share on other sites More sharing options...
FrankFamily Posted October 10, 2015 Share Posted October 10, 2015 (edited) Hi, there's probably a cleaner way to do it but here's what i've thought: 1º get you current health and save it 2º update every second or so to make it smooth 3º on each update it compares your current health with health saved before: initial health - current health = damage taken 4º if your current magicka/stamina is higher than that damage amount it does 5 otherwise it stops here ==> you take damage to your health since you don't have enough stamina/magicka 5º it heals that damage (you'd then have the initial health again) and damages the same amount to stamina/magicka. If it updates quickly enough it will give the appearance of taking damage directly to stamina/magicka... i think. Updates should be chained to ensure it doesn't do weird stuff.The only problem i see is that if the hit is higher than your total health you'll die even if you have enough stamina/magicka to take the hit. I'm asuming you know how to make scripts, if not do tell, i could find some time to write it. Edited October 10, 2015 by FrankFamily Link to comment Share on other sites More sharing options...
Recommended Posts