scarycave Posted June 21, 2013 Share Posted June 21, 2013 (edited) Hi forums, like the title says, I'm having some trouble getting the game to tell if the player is wielding a one handed weapon with an ability.It's like this: the player gets (is supposed to) get +10 to several skills, they each have this function: if GetWeaponAnimType != 3 ANDif GetWeaponAnimType != 5 ANDif GetWeaponAnimType != 6 ANDif GetWeaponAnimType != 7 ANDif GetWeaponAnimType != 8 AND the ability also reduces those skills by 10 if they're holding a two handed weapon and its like this: if GetWeaponAnimType == 3 ORif GetWeaponAnimType == 5 ORif GetWeaponAnimType == 6 ORif GetWeaponAnimType == 7 ORif GetWeaponAnimType == 8 OR The games doesn't seem to register during tests and I'm not sure why... Edited June 21, 2013 by scarycave Link to comment Share on other sites More sharing options...
pkleiss Posted June 21, 2013 Share Posted June 21, 2013 Help me out a little here... What exactly are you doing this with?Actor EffectBase EffectScriptor something else? The nomenclature you used doesn't make sense to me as 'not equal' is '!='. A little more detail, perhaps even a screen shot of the pertinent data sheet you are working on would help. Link to comment Share on other sites More sharing options...
scarycave Posted June 21, 2013 Author Share Posted June 21, 2013 Oh sorry about that. It should be != instead of !*condition*.It's also an actor effect. Link to comment Share on other sites More sharing options...
pkleiss Posted June 21, 2013 Share Posted June 21, 2013 What have you chosen as the 'Run on' condition? I think you should chose 'Reference' and then select player from the first default cell. Maybe 'Target' will work as well, but certainly 'Subject' won't as that would be the item that contains the effect - which, even though you didn't mention it, is probably not the player. Link to comment Share on other sites More sharing options...
scarycave Posted June 21, 2013 Author Share Posted June 21, 2013 (edited) I'll try to see if I can do that - although, the ability is linked to a perk. When I did something similar to see if the player is wearing or not wearing glasses, it worked fine. I'll toy around with it later and see if I can get it working. //EDIT//Nevermind. Got it working - I changed the subject to reference like you said, and then changed it from an actor effect to an ability.One-Handed is pretty much done now. Thanks for your help. Now if only I could find out about that firing speed problem... Edited June 22, 2013 by scarycave Link to comment Share on other sites More sharing options...
Recommended Posts