bluesmurph Posted April 22, 2012 Share Posted April 22, 2012 I am adding a spell to the game and i was wondering if their was a way to make it drain stamina instead of magika. I know this sounds weird but it would make more sense for the mod i am making. I know that whirlwind sprint drains a little stamina when you use it but i couldn't find out how they did that. Any Help? Link to comment Share on other sites More sharing options...
Sparafucile Posted April 22, 2012 Share Posted April 22, 2012 As far as I know, SPEL Cost is always in Magicka. You cannot change the Cost type, but you can make them "use Stamina" instead of costing Magicka. Here's the easiest method I can think of off the top of my head: Create MGEF DamageStaminaFFSelfName = Stamina CostEffect Type = Value Modifier, Fire and Forget, SelfMagic = NONE, 0Assoc. Item 1 = StaminaBase Cost = 0Flags = Detrimental, No Duration, No Area, PainlessPower Affects = MagnitudeCasting Sound Level = Silent That will enforce the cost. Now, for a SPEL. Since you didn't tell me your idea, let's see how you would modify an existing spell to "use Stamina" with the above. Edit SPEL MuffleID = MuffleStaminaName = Muffle (Stamina)Casting Perk = NONENo Dual Cast Modification = YESAuto-Calculate = NOSpell Cost = 0 To have it cost no Magicka, we need to turn off Auto-Calc to set Cost to 0. Because a Casting Perk will have no effect when Cost is zero (0 * 0.5 = 0), we set it to NONE. Also, I don't think it's possible for this implementation to work with the way Dual Casting increases cost, so we'll turn it off for this spell. Alright. The Muffle effect's calculated cost is 144 Magicka. What if we want our 'Muffle (Stamina)' spell to cost 72 Stamina? In the Effects list, edit the existing Muffle effect and add this Condition:S GetActorValue Stamina >= 72 ANDAdd the new 'Stamina Cost' effect to the spell with the same condition:DamageStaminaFFSelfMagnitude = 72Condition = S GetActorValue Stamina >= 72 AND And that's it. Link to comment Share on other sites More sharing options...
bluesmurph Posted April 22, 2012 Author Share Posted April 22, 2012 wow thank you. very detailed. I had a feeling that I wouldn't be able to make it cost stamina but i knew that i could set the magika cost to 0 and make it deal damage to stamina. I just had no idea how to do this. The Whirlwind sprint deals a small amount of stamina damage but i was never able to find out how it does this. Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts