Jump to content

Trying to add a flat 10 stamina drain to every bow shot, any ideas?


Recommended Posts

I've played around with creating mods before, though mostly it's been editing health/damage values, levelled lists, and a few values I understood fairly well (explode/dismember on weapons in fallout, etc)

 

I'm having a little trouble thinking how I would add a 10 stamina drain to the PC each time they loose an arrow (not a constant drain while it's drawn). This isn't intended to be realistic, it's meant as a balancing counter for VR where you can draw the bow as fast as you want, a constant drain would simply encourage rapid firing, where a cost per shot would encourage more careful aiming/conservation of reserves...

 

I thought maybe adding some kind of effect (enchant? spell?) to all bows (not very compatibility friendly, but if it would work...)

 

I'm trying to avoid scripting if at all possible, though it's something I've been meaning to learn for a while now so if it would be the only way I might just have to get started!

Link to comment
Share on other sites

You definitely need scripting for that but it should be rather easy given there's an event (I haven't tested it though)

 

1/ Ability on the player or a quest with a player alias to have a script running on the player

2/ https://www.creationkit.com/index.php?title=OnPlayerBowShot_-_Actor

3/ https://www.creationkit.com/index.php?title=DamageActorValue_-_Actor

 

I.e. something like this:

Scriptname StatDrainOnShot extends ReferenceAlias ; or activemagiceffect if you go with the ability method.
{Drains a stat upon shoting a bow}

Float Property Amount = 10.0 Auto
String Property Stat = "Stamina" Auto

Event OnPlayerBowShot(Weapon akWeapon, Ammo akAmmo, float afPower, bool abSunGazing)
   Game.GetPlayer().DamageActorValue(Stat, Amount * afPower) ;Added in that stamina drain would be proportional to power, could be just the amount everytime.
EnEvent

Scripting basics covered in:

http://www.cipscis.com/skyrim/tutorials/beginners.aspx

https://www.creationkit.com/index.php?title=Category:Bethesda_Scripting_Tutorial_Series

Edited by FrankFamily
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...