I am writing a little bit of script. In this, I want to check if a certain actor is NOT in the party. I found the code:
$gameParty.members().contains($gameActors.actor(002)))
But I want to do the exact opposite. I wish to check if they're not contained. What is the command for this or how do I work around it? Thanks in advance
Can't you just add "==false" at the end of that code in the Conditional Branch's script line? (And you have one too many close parentheses.)
Glad it worked! Weird about the parentheses though. I haven't used that long of a script call before, so I've never seen that error. But hey, if it ain't broke, as they say.
1) please NEVER use leading zeroes in a number in programming. the ID is 2, NOT 002.
The problem is that a leading zero is a mark for a change in the number system, like 0x marks hexadecimal numbers. 00 means "the following is an octal number", and that means the numbers only work for IDs 1 to 7. Octal 0010 for example is decimal 8, and that often messes people up.
2) if the computer says you're missing a ) then you placed the comparison at the wrong position. we would have to see the actual code to be able to point you to the mistake. And please use === instead of == for comparisons, for javascript that is better.