'GetWeight' condition?

Post » Wed Jun 20, 2012 7:29 am

When you create your character, you select a 'weight', or how buff your character is. Is there a condition to check this value? I want my guards to say a line only when the player is within a certain range. Like, they shouldn't say 'Hey there muscles' if your weight is 0 and you are a skinny little person.

Thanks,
Alexander J. Velicky
User avatar
katsomaya Sanchez
 
Posts: 3368
Joined: Tue Jun 13, 2006 5:03 am

Post » Wed Jun 20, 2012 2:11 pm

I smell an SKSE Actor.GetWeight() function.
User avatar
Robert Jackson
 
Posts: 3385
Joined: Tue Nov 20, 2007 12:39 am

Post » Wed Jun 20, 2012 6:36 pm

I smell an SKSE Actor.GetWeight() function.
Dangit. Well, I don't really want my mod to require SKSE just for one little function in a couple of lines of dialogue... I'll keep that in mind, though. Thanks.
User avatar
Charlie Sarson
 
Posts: 3445
Joined: Thu May 17, 2007 12:38 pm

Post » Wed Jun 20, 2012 12:39 pm

You could make FLSTs of different weighted characters, then check those :shrug:

Edit: Wouldn't work for the Player though. Hmm...

Of SKSE dependency: You should be able to wrap any SKSE functions in checks to make sure they're only called when SKSE is present, thus leaving the plugin independent of SKSE but ensuring it'll utilize it if present. See http://fallout3.nexusmods.com/mods/10903
User avatar
Jamie Lee
 
Posts: 3415
Joined: Sun Jun 17, 2007 9:15 am

Post » Wed Jun 20, 2012 11:33 am

Thumbs up for the Chicken ans Egg method from me again for FNV and prior games.
The biggest problem with that was not all modders adopted it.
I'm not sure if the same kind of method would work with Papyrus, or if it did work, it would just leave heaps of error messages in the error log when SKSE is not found.

I'm hoping we get it at SKSE level this time.
I made a http://www.gamesas.com/topic/1356343-wipz-skyrim-script-extender-skse/page__view__findpost__p__20484748 in the SKSE thread a while back, not sure if it got glossed over though.
Maybe by mutating (a useless for modding) command such as Debug.GetPlatformName() to perform the check in our mod and avoid the extra SKSE features if it still returns 'PC'.
User avatar
TRIsha FEnnesse
 
Posts: 3369
Joined: Sun Feb 04, 2007 5:59 am

Post » Wed Jun 20, 2012 8:30 am

Thanks :) The poultry should be possible with SKSE using an unused [00] global again, probably using Global.ConSetValue() *keeps crossing fingers for* as there's no native way to change a "Constant", then 'If SKSE' checks should be possible for Papyrus scripts, albeit this time we'll need a 'GlobalVariable Property SKSE Auto' line.

Somehow, I'm sure what we're after will be possible :)

CK error reports: Once SKSE_Loader.exe's -Editor parameter works, that'll probably be the way I open it 99/100 times (holy carp, I can't wait!)
User avatar
Miragel Ginza
 
Posts: 3502
Joined: Thu Dec 21, 2006 6:19 am


Return to V - Skyrim