[Papyrus] Arrow Weight, even for followers inventories

Post » Sun Jan 31, 2016 10:04 pm

I'm trying to find a way to add an actual weight to arrows, but not only from the player, also other NPCs, like followers. Meaning you can't just dump all your arrows in the inventory of any NPC. (I already found a way to make this work for containers.)



There are some mods which do this, but none of them add an actual arrow weight for NPCs. I would prefer to do this with any OnUpdate scripts, though. I'm okay with adding a scripts to arrow AMMO records, though. (As I'm getting


into MXFP, so I could use that to apply the script to every arrow/bolt in ones load order.)



Is there any way to do this?



Thanks in advance



Kind regards



Sac

User avatar
Harry Leon
 
Posts: 3381
Joined: Tue Jun 12, 2007 3:53 am

Post » Mon Feb 01, 2016 12:02 am

Do Arrows accept Scripts? I looked at them the other day, but did not pay enough attention... If they do, you could use a 'OnContainerChanged' script to add/remove a weighted, non-playable misc-item to the container. It would not actually add weight to the arrows, but simulate it whilst they're in inventory... The thing is, do NPCs even suffer from weight penalties? I never use companions, so have no idea, but I'm sure I read somewhere they don't... :S



Failing that, you could maybe use a Magic Effect, plus OnMenuClose() --it wouldn't be an onupdate, but it'd trigger whenever a menu is closed (and you can set which menus), to basically do the same. That would be 'harder' because you'd have to find a way to add it to every NPC--if it's for personal use, and no-other mods edit them, you could add the new spell to the Races directly.

User avatar
kelly thomson
 
Posts: 3380
Joined: Thu Jun 22, 2006 12:18 pm

Post » Mon Feb 01, 2016 1:48 am

I don't have the editor open in front of me but you shouldn't be scripting something like arrows where there are a ton of them in the world and they are frequently carried in large quantities.

It's a great way to introduce script lag and consume excessive amounts of memory.
User avatar
Brandon Wilson
 
Posts: 3487
Joined: Sat Oct 13, 2007 1:31 am

Post » Sun Jan 31, 2016 11:27 pm

@Viper,


That is why I was thinking of a "OnMenuClose"+Ability... If you're applying it only to companions, I'd assume it'd be less stressful, since it's only running in that moment? And you could apply it to whoever is the active companion? (I really know basically nothing about companions because it's something I've not looked into :/ But I'm *assuming* there's a way to get the current companion?)

User avatar
Brittany Abner
 
Posts: 3401
Joined: Wed Oct 24, 2007 10:48 pm

Post » Mon Feb 01, 2016 9:36 am

Arrows can't have scripts attached in the editor.

User avatar
Laura Shipley
 
Posts: 3564
Joined: Thu Oct 26, 2006 4:47 am

Post » Mon Feb 01, 2016 12:55 am


I'm not sure about that. I mean, I could use MXFP, or even ASIS to give the spell to all NPCs in the load order, but I'm not sure that would good for papyrus as it might cause even more script lag.



Edit: Or just give to all races, indeed.

User avatar
Laura Hicks
 
Posts: 3395
Joined: Wed Jun 06, 2007 9:21 am

Post » Mon Feb 01, 2016 8:50 am

@Terra,


Thanks for the info!



Them, yep, I'd suggest either a) listening to Viper and not bothering at all, or B) running a check on the NPCs inventory. From experience, I'd say... Listen to Viper, as he's rightly like 100% of the time :P (case in point, when I checked how Scripts ran on-load, and Viper was like "No, don't do that, it'll break things!" :P )



@SA,


What is MXFP? I have not heard of it...

User avatar
Channing
 
Posts: 3393
Joined: Thu Nov 30, 2006 4:05 pm

Post » Sun Jan 31, 2016 9:48 pm


Yeah, checking their inventory in a process done on menu close is fine.


There are an order of magnitude more arrows in the game than NPCs. However neither is very "friendly". (You can make it more "friendly" by making sure the scripts don't do anything most of the time)

Papyrus is designed to, and excels at, making special individual things by tweaking their behavior. (Puzzles in a dungeon, quests) It is not designed to change how every copy of every thing in the game behaves all the time. (Combat overhauls) This is because Papyrus is heavily throttled to avoid impacting the game's framerate. (The previous scripting system would negatively impact your framerate if too much was going on)

That's not to say it's impossible to do. Some very creative and determined people have pushed things to the absolute limit with clever adjustments and interesting uses of other systems, but it's not what Papyrus is designed to do. It's kind of like using a trowel to shovel snow. Sure, you can do it, but you're better off getting a snow shovel (and you wouldn't want to use a show shovel to do gardening)
User avatar
Neko Jenny
 
Posts: 3409
Joined: Thu Jun 22, 2006 4:29 am

Post » Sun Jan 31, 2016 7:52 pm

This is MXPF (sorry for the misspelling): http://www.nexusmods.com/skyrim/mods/68617/?

User avatar
Nikki Lawrence
 
Posts: 3317
Joined: Sat Jul 01, 2006 2:27 am


Return to V - Skyrim