IsInCombat (Conditions Window)

Post » Wed Jun 20, 2012 5:24 am

What's the integer value for when you use IsInCombat in the conditions window? It normally defaults to 0, but you can change it. Nothing similar to it in the papyrus version.
User avatar
Matt Fletcher
 
Posts: 3355
Joined: Mon Sep 24, 2007 3:48 am

Post » Tue Jun 19, 2012 8:44 pm

I'm not sure what you mean, IsInCombat is 0(false) when the actor is not in combat or 1(true) when the actor is in combat.
User avatar
carla
 
Posts: 3345
Joined: Wed Aug 23, 2006 8:36 am

Post » Wed Jun 20, 2012 2:45 am

there is an extra integer choice/option when you use it as a condition.

the condition looks something like this when its in use:
IsInCombat > Integer choice box > Operator box > Value
This confused me also, so I used GetCombatState instead (0 = not in combat, 1 = in combat, 2 = searching)
User avatar
lucy chadwick
 
Posts: 3412
Joined: Mon Jul 10, 2006 2:43 am

Post » Wed Jun 20, 2012 2:49 am

there is an extra integer choice/option when you use it as a condition.

the condition looks something like this when its in use:
IsInCombat > Integer choice box > Operator box > Value
This confused me also, so I used GetCombatState instead (0 = not in combat, 1 = in combat, 2 = searching)
Glad I'm not the only one confused. I left it at 0 and it seems to work, not 100% sure. The NPC I ran it on appeared skittish - as if not sure which AI to run. So I added the condition but it still seemed skittish.

Might try GetCombatState instead to be sure. Thanks!
User avatar
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm

Post » Wed Jun 20, 2012 8:08 am

You can either use IsInCombat == 1 for someone who is in combat, or IsInCombat == 0 for someone who is not in combat. You can also make things complicated like IsInCombat !=1 or !=0. >0 or < 1 etc.
User avatar
Mandy Muir
 
Posts: 3307
Joined: Wed Jan 24, 2007 4:38 pm

Post » Wed Jun 20, 2012 12:30 am

You can either use IsInCombat == 1 for someone who is in combat, or IsInCombat == 0 for someone who is not in combat. You can also make things complicated like IsInCombat !=1 or !=0. >0 or < 1 etc.

What I meant was the other number in the "Select Function Parameters" box. My fault for not being clear. I didn't mean the Comparison and Value fields. When you add IsInCombat to a conditions window yourself, you'll see what I am talking about.
User avatar
meg knight
 
Posts: 3463
Joined: Wed Nov 29, 2006 4:20 am

Post » Tue Jun 19, 2012 10:38 pm

I suppose the first parameter is the combat situation (0 out of combat, 1 in combat, 2 searching) and the second one 1 is in the state described, 0 is not. It's only an assumption though.
User avatar
LuCY sCoTT
 
Posts: 3410
Joined: Sun Feb 04, 2007 8:29 am

Post » Wed Jun 20, 2012 6:25 am

I suppose the first parameter is the combat situation (0 out of combat, 1 in combat, 2 searching) and the second one 1 is in the state described, 0 is not. It's only an assumption though.

So should I be setting it to 1 if I want to check it the player is in combat (since I'm running it on the player reference).
User avatar
Jessica Colville
 
Posts: 3349
Joined: Wed Oct 18, 2006 6:53 pm

Post » Wed Jun 20, 2012 2:55 am

So should I be setting it to 1 if I want to check it the player is in combat (since I'm running it on the player reference).
Only if my assumption is correct.
User avatar
Kat Ives
 
Posts: 3408
Joined: Tue Aug 28, 2007 2:11 pm

Post » Wed Jun 20, 2012 5:13 am

Just tested it, and it doesn't seem to matter what you put for the first parameter ("Select Function Parameter"), the game seems to ignore it. The only thing that matters is the value you compare it to.
User avatar
Jonny
 
Posts: 3508
Joined: Wed Jul 18, 2007 9:04 am

Post » Wed Jun 20, 2012 8:34 am

Just tested it, and it doesn't seem to matter what you put for the first parameter ("Select Function Parameter"), the game seems to ignore it. The only thing that matters is the value you compare it to.

Thanks. That was how it worked in Oblivion too. It must be there to confuse us :)
User avatar
Stefanny Cardona
 
Posts: 3352
Joined: Tue Dec 19, 2006 8:08 pm


Return to V - Skyrim