TheStein Posted July 1, 2011 Share Posted July 1, 2011 Pretty much what the title says. I want to make a perk that allows me to press a key and give up all but 10 (for sake of argument) HP in exchange for a stat boost. Or if such a perk is present in a previously existing mod, I'd take that too. I'm pretty new to this whole modding business, but consider myself a reasonably fast learner. At the moment I'm using GECK but if you have any other sugestions for modification tools I would gladly take them. Many thanks. Link to comment Share on other sites More sharing options...
caramellcube Posted July 2, 2011 Share Posted July 2, 2011 I think you could do it with an ingestible item, if you take a look at any of the chems or radioactive food you should be able to reverse engineer the way the effects work. I know there's an effect that can damage hp, but there might not be anything as standard to reduce it to a fixed amount, in which case you could attach a script to an indestible (never tried it but I think it works). Then it would be a case of using this function http://geck.bethsoft.com/index.php/SetActorValue as much as needed, although I think that function might change the stats permanently so it might not be suitable. Anyway, hope this helps. Link to comment Share on other sites More sharing options...
Phrozin Posted July 2, 2011 Share Posted July 2, 2011 Something like this?Begin Gamemode if iskeypressed 38 == 1 && player.GetDead == 0 ;38 is the "L" button, there's a list of the keys here ;http://geck.bethsoft.com/index.php/IsKeyPressed player.damageAV health 10 player.setAV strength 10 player.setAV perception 10 player.setAV endurance 10 player.setAV charisma 10 player.setAV intelligence 10 player.setAV agility 10 player.setAV luck 10 endif end How's that? Link to comment Share on other sites More sharing options...
TheStein Posted July 2, 2011 Author Share Posted July 2, 2011 (edited) Something like this?Begin Gamemode if iskeypressed 38 == 1 && player.GetDead == 0 ;38 is the "L" button, there's a list of the keys here ;http://geck.bethsoft.com/index.php/IsKeyPressed player.damageAV health 10 player.setAV strength 10 player.setAV perception 10 player.setAV endurance 10 player.setAV charisma 10 player.setAV intelligence 10 player.setAV agility 10 player.setAV luck 10 endif end How's that? Excellent. Thank you. Does this allow you to turn it off if you want, or is there a way to add like a timer to it? I guess this would require the script to store the previous values so they can be restored after you're finished. (I guess a timer may be a bit too optimistic of me) And if I remember correctly (away from my computer at the moment) you can also adjust specific (melee/ranged) weapon damage from the perk dialogue without needing to write it to a separate script right? Edited July 2, 2011 by TheStein Link to comment Share on other sites More sharing options...
TheStein Posted July 12, 2011 Author Share Posted July 12, 2011 OK!!!!!!!!!11 I got it!!! If any body is still interested, here is my script/ ability/ quest combo that does exactly what I wanted. scn VoxDrive short doOnce short TimerDoOnce short TimerGoodFaith short HP float timer Begin Gamemode if iskeypressed 38 == 0 && doOnce != 1 set doOnce to 1 endif if iskeypressed 38 == 1 && player.GetAV Health > 21 playsound DriveForceV set doOnce to 0 set TimerDoOnce to 1 set HP to player.GetAV Health - 20 else ShowMessage CantDrive endif if TimerDoOnce == 1 set timer to 20 set TimerDoOnce to 0 set TimerGoodFaith to 1 player.DamageAV Health HP Player.AddSpell ABILDriveVox endif if timer > 0 set timer to timer - getSecondsPassed elseif TimerGoodFaith == 1 playsound VoxOut showmessage msgVoxOut set TimerGoodFaith to 0 Player.Dispel ABILDriveVox endif end You make an ability with the stat mods you want (most convenient way to also remove them) spice up with your favorite sound effects, bundle it all into a quest, and glue it to a perk, and you're all set! Link to comment Share on other sites More sharing options...
Recommended Posts