Axeface Posted February 24, 2014 Share Posted February 24, 2014 (edited) Hello clever scripters (might be wrong forum, sorry),I'de like to know if it is possible to change an items weight permenantly, in-game and by targetting it. By spell or shout or whatever, anyone know? Thanks Edited February 24, 2014 by Axeface Link to comment Share on other sites More sharing options...
IsharaMeradin Posted February 24, 2014 Share Posted February 24, 2014 A persistent change across saves? No.That does not mean that you cannot store the modified weight value in a global variable and reset the weight on each new game load. Here is an example of how to reset an item's weight for each game session: Event OnPlayerLoadGame() If ItemWeight.GetValueInt() == 1 Float Weight = ItemWeight.GetValue() TheItem.SetWeight(Weight) EndIf EndEvent The above would need to run on a player alias script. You would also need to figure out how to populate the variables with data.ItemWeight is a global variable that holds the modified weight valueTheItem is the object that you are affecting The global variable could probably be assigned via property. The item could too, but if you want to be able to change the weight on any item rather than a specific known item then you'll need to perhaps call it as an alias on a quest or something. As far as targeting, you could use a spell if you wished. You would be able to do the initial weight change and storing of the weight value in the global variable. Oh, SetWeight requires SKSE I know it is not a full answer. Maybe it will at least start you down the right path. Link to comment Share on other sites More sharing options...
Axeface Posted February 24, 2014 Author Share Posted February 24, 2014 (edited) Thank you Ishara! I'm going to try my hand at scripting it with your advice. It does sound like it will be quite a heavy script though if the player chages a lot of items? And not across saves no, this would be specific to a players save game:-My idea, in case your interested is to make a mod that builds upon the cool idea of transmute, and fiddling with items at a molecular level. I want to add spells to alteration that can reduce an items weight (Mundane Reconstruction), and also a way for mages to improve weapons and armour through alteration thats scales with alteration skill/or seperate adept/expert etc spells (Mundane Amendment). Anyways, I've got a lot of reading to do :D (This thread can also be considered a request, as someone else may like the idea and want to create it). Edited February 24, 2014 by Axeface Link to comment Share on other sites More sharing options...
IsharaMeradin Posted February 24, 2014 Share Posted February 24, 2014 And not across saves no, this would be specific to a players save game:-When I said across saves, I meant the saves of that specific character. You can change the weight value in a particular game session but it will revert on the next game session of the same character. The snippet I posted earlier resolves that problem by resetting the weight with the value that you chose to store in the global variable. Link to comment Share on other sites More sharing options...
Recommended Posts