Jump to content
Sign in to follow this  
kilrbe3

Having multiple conditions in trigger to trigger another

Recommended Posts

Having a issue that I have not seen earlier.

For some reason this usually works with;

trig1 AND trig2 AND trig3

in a condition, than when that's met, it fires a OnAct with a

endtrig = true

than another trigger fires to end the mission

that end trigger has a

endtrig in its condition & End #1 ending.

Yet I am getting this in my RPT. For the life of me, can't figure out why. I've checked the trigger names & spellings. Even copy and pasted all the names to double sure.

Error in expression <scudtrig AND tnktrig AND rptrig AND suptrig AND a>
 Error position: <AND tnktrig AND rptrig AND suptrig AND a>
 Error and: Type Object, expected Bool

The trigger looks like;

Condition;

scudtrig AND tnktrig AND rptrig AND suptrig AND artytrig AND aatrig AND sptown AND tnstrig

OnAct;

cutText ["All Objectives Complete. Mission Complete","PLAIN",2]; endtrig = true

End trigger;

Condition;

endtrig

With End#1.

Where is my mistake in this? I think it's something very simple, but am clearly missing it... :(

Share this post


Link to post
Share on other sites

By the error description it sounds like one of your triggers has the name e.g "scudtrig". The trigger is an object, not a boolean. You could use triggerActivated command, or ensure that the the triggers sets a variable to true which you then check in your last trigger.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×