KravisGile Posted December 4, 2016 Share Posted December 4, 2016 (edited) Hey all, I'm currently developing a mod that puts a boss NPC into "phases" based on HealthPercentage, similar to boss fights in The Witcher 3. Is there a way to force Skyrim AI to stop using a spell or shout at a certain health percentage by using a perk entry and/or condition and not a script? I've gone so far as to set "ModSpellMagnitude" to a 0.01 multiplier and ensured that the other spells weren't affected, but the NPC continues to use it and not their (now stronger) spells. Edited December 4, 2016 by KravisGile Link to comment Share on other sites More sharing options...
ishmaeltheforsaken Posted December 4, 2016 Share Posted December 4, 2016 Instead of the "Mod Spell Magntitude" entry point, try a "Mod Spell Cost" to make the spell too expensive for your boss to cast at the health thresholds you want it to be unavailable. Link to comment Share on other sites More sharing options...
Laydor Posted December 4, 2016 Share Posted December 4, 2016 (edited) What you could do is grant the ability to the NPC when they have that perk. And the NPC only has that perk at a certain remaining heath. Edited December 4, 2016 by Laydor Link to comment Share on other sites More sharing options...
Masterofnet Posted December 4, 2016 Share Posted December 4, 2016 (edited) 1. Why do you not want to use script? 2. You could put a (GetHealthPercentage) condition on the spells that would only allow them to work if the NPC was at a certain health level. Edited December 5, 2016 by Masterofnet Link to comment Share on other sites More sharing options...
Laydor Posted December 4, 2016 Share Posted December 4, 2016 2. You could put a (GetHealthPercentage) condition on the spells that would only allow them to work if the NPC was a a certain health level. That only works on the magic effect, which still allows the NPC to cast the spell, but has no effect. Link to comment Share on other sites More sharing options...
Masterofnet Posted December 5, 2016 Share Posted December 5, 2016 That only works on the magic effect, which still allows the NPC to cast the spell, but has no effect. Ya, Magic Effect. I am not seeing a really good way of doing this without using scripts somewhere. The ideal thing to do would be to unequip the spell at a certain health % and equip the stronger spell or spells. Link to comment Share on other sites More sharing options...
ishmaeltheforsaken Posted December 5, 2016 Share Posted December 5, 2016 That only works on the magic effect, which still allows the NPC to cast the spell, but has no effect. Ya, Magic Effect. I am not seeing a really good way of doing this without using scripts somewhere. The ideal thing to do would be to unequip the spell at a certain health % and equip the stronger spell or spells. Again, there's no reason why using the perk to up the spell's magicka cost wouldn't work. Link to comment Share on other sites More sharing options...
Masterofnet Posted December 5, 2016 Share Posted December 5, 2016 Again, there's no reason why using the perk to up the spell's magicka cost wouldn't work. I never said it wouldn't work, but don't think you are going to get the optimal result here without using script. Link to comment Share on other sites More sharing options...
KravisGile Posted December 5, 2016 Author Share Posted December 5, 2016 For spells, this works. However for shouts, this doesn't work. Shouts cannot have a "Spell Cost". You can apply a cost, but it does nothing. They can have a cooldown, but it affects all shouts. I'm really trying to make this mod as script-free as possible. Hmmm... Link to comment Share on other sites More sharing options...
Masterofnet Posted December 5, 2016 Share Posted December 5, 2016 (edited) I'm really trying to make this mod as script-free as possible. Hmmm... Did you create this NPC? If you do not use script to remove, unequip and equip the spells and shouts the results are not going to be very good. There will be lags between the times the spell is no longer available and the NPC equips the new spell. Edited December 5, 2016 by Masterofnet Link to comment Share on other sites More sharing options...
Recommended Posts