SetNPCWeight (Papyrus, Console, Batch)

Post » Sun Jun 17, 2012 5:09 pm

Is it possible to use a papyrus script to send console commands, such as executing a batch file?
Alternately, is it possible to access an actor's chargen properties? - Specifically, their weight?

I've got a nifty script which dynamically adjusts an actor's size, but I can't adjust their weight, which is silly. Both Height & Weight are Actor 'Traits'. Height can be adjusted with SetScale, which is both a console command and an ObjectReference Script command in papyrus, but there does not appear to be an equivalent for SetNPCWeight. If I could call the console command (or execute a batch file containing it) from inside the papyrus script, it would circumvent this.

(Note: I am not talking about mass.)
User avatar
Brittany Abner
 
Posts: 3401
Joined: Wed Oct 24, 2007 10:48 pm

Post » Mon Jun 18, 2012 6:53 am

You can't run batch files via Papyrus, no.

Cipscis
User avatar
Andy durkan
 
Posts: 3459
Joined: Fri Aug 03, 2007 3:05 pm

Post » Mon Jun 18, 2012 2:54 am

I'll second that request. I actually could use both techniques.

Too bad to hear you can't exec bat files from Papyrus... would have been darn useful! If ever a workaround is found. let me know!

I've also searched for hours attempting to read/write the actor's weight... I am so surprised it is so difficult as it has been so easy via the console command line!

I have tried all the getav... tried getmass (only for Havok physics processing), etc... but no weight that can dynamically adjust the size of the character.

Has any progress been made on this issue? The weight slider functionality is one that must have taken so much effort by Beth to implement... surprised Papyrus can't change the value in response to different events!

J.
User avatar
STEVI INQUE
 
Posts: 3441
Joined: Thu Nov 02, 2006 8:19 pm

Post » Sun Jun 17, 2012 10:45 pm

Hi guys... If anyone knows even a part of the answer to the above question, please take a moment to share what you know...

I have no idea why Bethesda makes it so easy to adjust the weight slider in the console with 'setnpcweight' while no corresponding Papyrus function is available...

Are there workarounds??
- Could the Skyrim Script Extender help??
- Would it be possible for the user to invoke a console command for a batch file that iterates in a loop to once per second invoke 'setnpcweight' if a Papyrus variable is set?

I'm grasping at straws on this one... My 'next awesome mod' depends on this!! :-)

J
User avatar
Jake Easom
 
Posts: 3424
Joined: Sun Jul 29, 2007 4:33 am

Post » Sun Jun 17, 2012 6:06 pm

Batch files execute console commands that are compiled line-by-line, so no control statements will work in the console.

SKSE is your best bet, as far as I can tell. If you mention this in their thread in the Skyrim Mods forum, I'm sure they'll keep it in mind.

Cipscis
User avatar
Taylah Illies
 
Posts: 3369
Joined: Fri Feb 09, 2007 7:13 am

Post » Mon Jun 18, 2012 3:52 am

Thank you very much for taking the time Cipcis... making setnpcweight work from Papyrus is critical to my mod and I'll have to give up writing it if I can't figure this out.

I'll follow your recommendation and give 'em a shout on this important issue. If anyone finds out anything on this (even if it's rumours or incomplete info) please let me know!!

J

Batch files execute console commands that are compiled line-by-line, so no control statements will work in the console.

SKSE is your best bet, as far as I can tell. If you mention this in their thread in the Skyrim Mods forum, I'm sure they'll keep it in mind.

Cipscis
User avatar
Max Van Morrison
 
Posts: 3503
Joined: Sat Jul 07, 2007 4:48 pm

Post » Sun Jun 17, 2012 10:24 pm

Hi guys, for those of you having the issue with no 'setnpcweight' in Papyrus, I have posted the question in the SKSE thread http://www.gamesas.com/topic/1349044-wipz-skyrim-script-extender-skse/page__st__150.

This is truly an odd ommission considering the impressive technology between Papyrus and a highly complex game engine. I hope Bethesda will notice how cool it would be to allow us mod-makers to dynamically change an actor's weight slider from Papyrus and will introduce this in the next update to the game.

:)

J
User avatar
Fam Mughal
 
Posts: 3468
Joined: Sat May 26, 2007 3:18 am


Return to V - Skyrim