How to make perk take effect depending on equipped weapon

Post » Tue May 17, 2011 5:53 am

i wanted to have a greater crit chance depending on skill level. only way i know how is to give a perk for it. say i wanted to add crit chance if the pc is using guns/energy/weapons/explosives/meleee or unarmed, what conditions should i have?

my initial thought is using GetAnimWeaponType (no idea if this is correct) but i see no way to distinguish between guns or energy weapons being used so im thinking there has to be a better way to tell what type of skill is being used for the weapon equipped. or there's GetIsUsedtemEquipType but then it has separate entries for smallguns and bigguns whereas NV has combined both
User avatar
Kate Norris
 
Posts: 3373
Joined: Mon Nov 27, 2006 6:12 pm

Post » Tue May 17, 2011 9:37 am

You can try with a form list, create a list with all the weapons you want to use that perk, then use GetEquipped as condition and select the list.

Maybe there is another way to do it, but this way should work.
User avatar
maya papps
 
Posts: 3468
Joined: Mon Aug 07, 2006 3:44 pm

Post » Tue May 17, 2011 12:41 am

You can try with a form list, create a list with all the weapons you want to use that perk, then use GetEquipped as condition and select the list.

Maybe there is another way to do it, but this way should work.

thanks for the reply! wont bare hand to hand be a problem though? also, the only condition i found is the IsInList and IsWeaponInList ones. should it be run on the Weapon tab or the Perk Owner? :P
User avatar
Jack Bryan
 
Posts: 3449
Joined: Wed May 16, 2007 2:31 am

Post » Tue May 17, 2011 1:29 am

thanks for the reply! wont bare hand to hand be a problem though? also, the only condition i found is the IsInList and IsWeaponInList ones. should it be run on the Weapon tab or the Perk Owner? :P


Use IsWeaponInList on the Weapon tab.
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm

Post » Tue May 17, 2011 9:25 am

excellent! thank you!

just realized i couldve readily answered my own question just by looking at some perks in the geck :banghead:

still, i appreciate the helpfulness of those who replied :D
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm

Post » Tue May 17, 2011 1:32 pm

Glad you were able to figure it out, Norbingel. For future reference, if you see SmallGuns anywhere, that's what we use for Guns. If you see BigGuns, it's obsolete. For looking at weapons of a skill type, use IsWeaponSkillType (for Unarmed, this encompasses Fists). For something more eclectic (like Cowboy), you can make a formlist.
User avatar
Lily Evans
 
Posts: 3401
Joined: Thu Aug 31, 2006 11:10 am

Post » Tue May 17, 2011 11:15 am

thanks for weighing in Sawyer! great to see someone from Obsidian taking time to answer even little things like this. and they say once a game group goes big, they stop caring :goodjob:

i really shouldve done a little more searching before posting but my work takes up a lot of time and that leaves little room for gaming, much more modding. anyway thanks again! :D
User avatar
lolly13
 
Posts: 3349
Joined: Tue Jul 25, 2006 11:36 am


Return to Fallout: New Vegas