Larian Banner
Previous Thread
Next Thread
Print Thread
C1,C2,C3, ect? #648071
17/08/18 09:36 PM
17/08/18 09:36 PM
Joined: Aug 2018
Posts: 37
Z
Zeth fox Offline OP
apprentice
Zeth fox  Offline OP
apprentice
Z

Joined: Aug 2018
Posts: 37
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?

Re: C1,C2,C3, ect? [Re: Zeth fox] #648080
18/08/18 09:30 AM
18/08/18 09:30 AM
Joined: Nov 2017
Posts: 129
L
LarIlya Offline
member
LarIlya  Offline
member
L

Joined: Nov 2017
Posts: 129
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.

Re: C1,C2,C3, ect? [Re: Zeth fox] #648083
18/08/18 02:36 PM
18/08/18 02:36 PM
Joined: Aug 2018
Posts: 37
Z
Zeth fox Offline OP
apprentice
Zeth fox  Offline OP
apprentice
Z

Joined: Aug 2018
Posts: 37
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


Re: C1,C2,C3, ect? [Re: Zeth fox] #648084
18/08/18 06:00 PM
18/08/18 06:00 PM
Joined: Nov 2017
Posts: 129
L
LarIlya Offline
member
LarIlya  Offline
member
L

Joined: Nov 2017
Posts: 129
Yep, that's how it works.


Moderated by  Larian_Koala 

Powered by UBB.threads™ PHP Forum Software 7.6.2