Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#648071 17/08/18 09:36 PM
Joined: Aug 2018
Z
apprentice
OP Offline
apprentice
Z
Joined: Aug 2018
in scripting I'm seeing a lot of C1 C2 ect...all the way to 12....
what exactly is that?
when should I use C1 vs C2 or any combo of those in my IF statements?

Zeth fox #648080 18/08/18 09:30 AM
Joined: Nov 2017
L
member
Offline
member
L
Joined: Nov 2017
c1 refers to the first condition, c2 to the second, etc.

So in e.g.

Code
IF "!c1&!c2&!c3&c4"
		IsEqual(_Char,null)
		CharacterIsIgnoringGroundSurface(_Char)
		CharacterIsDead(_Char)
		CharacterIsPlayer(_Char)
	THEN	


c1 refers to IsEqual(_Char,null)
c2 refers to CharacterIsIgnoringGroundSurface(_Char)
etc.
and the string at the top clarifies that the first three must return false and the last one has to return true, i.e. the character must be not null, not ignoring ground surfaces, and not a dead, and the character must be a player.

Zeth fox #648083 18/08/18 02:36 PM
Joined: Aug 2018
Z
apprentice
OP Offline
apprentice
Z
Joined: Aug 2018
wow I think that makes a tons more sense....
so let me see if I understand correctly...

IF "!c1&!c2&!c3&c4"
C1---> IsEqual(_Char,null)
C2---> CharacterIsIgnoringGroundSurface(_Char)
c3---> CharacterIsDead(_Char)
c4---> CharacterIsPlayer(_Char)
c5---> whateverFunction(_blah)
ect+1 --->
THEN


Zeth fox #648084 18/08/18 06:00 PM
Joined: Nov 2017
L
member
Offline
member
L
Joined: Nov 2017
Yep, that's how it works.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5