nekollx Posted April 27, 2015 Share Posted April 27, 2015 I'm working on a mod that adjusts the players scale based on radiation, a extnsion of a existing mod "attack of the 50 foot woman" but i want to add a new feature if your radiation drops below 0 you start to shrink, ive laready set up my scripts for it but i'm not sure how to actually let the player get negative radiation, basicly i want to remove the limit on rad away so it will keep decreasing past 0 Link to comment Share on other sites More sharing options...
Aintiarna Posted April 28, 2015 Share Posted April 28, 2015 I'm pretty sure you can't have a rad level of less than zero. If the player has a radiation level of say 50 and you run the following in a script: Player.RestoreAV RadiationRads 1000 it will set the players total radiation level to zero, not -950. You can test it on the console if you like, but I'm pretty sure ModAV and SetAV will not create a negative rad level either. The pipboy rad display wouldn't be able to show it properly anyway. Link to comment Share on other sites More sharing options...
nekollx Posted April 28, 2015 Author Share Posted April 28, 2015 then is there some way to store the overflow into some kind of variable some way of tracking i so shrinking is possible? Link to comment Share on other sites More sharing options...
Aintiarna Posted April 28, 2015 Share Posted April 28, 2015 It's possible but not easy. You'd have to create a quest and script with variables to handle the negative radiation levels. Then you'd have to modify RadAway to call your script when used. The script would basically subtract radaway's -50 from the player's current rad level and add it to a running total. Getting it to reliably rise again in tandem with incoming radiation would be the hard bit. Maybe have the quest on a set 1 or 2 second processing delay, then use Player.GetRadiationLevel and keep adding the result to your negative rads variable. But that wouldn't account for ingested radiation. Better to just test the player's total accumulated radiation every second and keep a tally of the difference. Then use that tally to gradually change your negative rads variable. Does that make sense? Link to comment Share on other sites More sharing options...
nekollx Posted April 29, 2015 Author Share Posted April 29, 2015 thanks its a working theory and that helps Link to comment Share on other sites More sharing options...
Recommended Posts