Perk Entry Conditions?

Post » Wed Jun 20, 2012 5:45 pm

Hi!

I have discovered that what conditions you have access to depends on what your "entry point" is... a "weapon" condition appears with "mod attack damage" but not with "mod percent blocked" for example. Is there any way around this? Specifically, I am trying to alter the player's chance of being staggered, but only when she is wielding a one-handed weapon with nothing in her off-hand. I've used a "GetEquippedItemType == 0" condition on the left hand, but don't have a "weapon" tab to find out what she has equipped in her right.

I guess I could use GetEquippedItemType on the right hand to invalidate everything but the four one-handed weapon types, but I would like access to the more obvious and elegant solution the "weapon" tab would offer.

Does anyone have any ideas?

Thanks in advance!
User avatar
Queen
 
Posts: 3480
Joined: Fri Dec 29, 2006 1:00 pm

Post » Wed Jun 20, 2012 5:13 pm

From http://www.creationkit.com/GetEquippedItemType


0: Nothing
1: One-handed sword
2: One-handed dagger
3: One-handed axe
4: One-handed mace
5: Two-handed sword
6: Two-handed axe/mace
7: Bow
8: Staff
9: Magic spell
10: Shield
11: Torch


I think that's what's going on here :D
User avatar
Alexx Peace
 
Posts: 3432
Joined: Thu Jul 20, 2006 5:55 pm

Post » Wed Jun 20, 2012 7:47 pm

I am aware of that page, but it's not really what I'm asking at all :P
User avatar
Jimmie Allen
 
Posts: 3358
Joined: Sun Oct 14, 2007 6:39 am

Post » Wed Jun 20, 2012 7:40 am

o, looks elegant enough to me lol I figured you were confused over how easy it was >.<

Lots of bethesda stuff has a nice pile of conditions. If it works...
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm

Post » Wed Jun 20, 2012 2:53 pm

Ah well, if that is the best way to do it, that's what I'll try XD
User avatar
Sheila Esmailka
 
Posts: 3404
Joined: Wed Aug 22, 2007 2:31 am

Post » Wed Jun 20, 2012 6:56 am

A related question though:

Are those values for GetEquippedItemType hardcoded, or can they be changed? As a matter of practice, would it be preferable to code in four OR conditions (one for each 1-handed weapon type), or two AND conditions: >=1 AND <=4 ?

EDIT: also, is there a way to decrease the stamina cost of blocking or bashing?
User avatar
Sakura Haruno
 
Posts: 3446
Joined: Sat Aug 26, 2006 7:23 pm

Post » Wed Jun 20, 2012 3:51 am

A related question though:

Are those values for GetEquippedItemType hardcoded, or can they be changed? As a matter of practice, would it be preferable to code in four OR conditions (one for each 1-handed weapon type), or two AND conditions: >=1 AND <=4 ?

I think either of those should work. The difference in game performance should be negligible? But I'd guess the 2 AND conditions would be slightly less taxing.

EDIT: also, is there a way to decrease the stamina cost of blocking or bashing?
Those are probably tied to a Game Setting. Luckily the Skyrim GMST list comes with a handy dandy filter, so try searching for block or bash or stam.
User avatar
Jack Bryan
 
Posts: 3449
Joined: Wed May 16, 2007 2:31 am

Post » Wed Jun 20, 2012 5:57 am

Game settings can't be set by script yet :/ Go SKSE go!
User avatar
Adam Porter
 
Posts: 3532
Joined: Sat Jun 02, 2007 10:47 am


Return to V - Skyrim