OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: pazuzu on 27 Nov 2004, 10:44:11
-
I discovered a bug using hidden objectives.
If players complete 1rst obj then skip 2nd obj & go to 3rd obj & complete it it checks off then they go back to 2nd obj & complete it it checks off but the 3rd obj unchecks.
So the mission ends with only 1rst & 2nd obj with check next to them but the mission ends anyway...
Has anyone seen this before?
Any way to fix it?
Thanks.
-
Did you set conditions for each objective ie when the first objective was completed on the activation line put something like firstobj = true, then the same for the second. On the second though the condition firstobj must be stated. Then on the third objective the condition must state firstobj and secondobj so they are completed first ??? You probably did, just a thought :)
-
Thanks for replying...
This is how I do it:
In obj1 trigger in activation field I put: "1" objstatus "done"; obj1=true; "2" objstatus "active"
In obj2 trigger: "2" objstatus "done"; obj2=true; "3" objstatus "active"
In obj3 trigger: "3" objstatus "done"; obj3=true
Not sure what you mean by puting obj1 and obj2 as condition for 3rd obj...
How would that work when I have condition "resistance not present" or west present....
Can it be a combination of those conditions along with obj1 and obj2 done?
Thanks for the help.
-
I think that:
In obj2 trigger: "2" objstatus "done"; obj2=true; "3" objstatus "active"
is reactivating the 3rd objective, even though it was done already, this must be resetting it again.
Thats the way I see it anyway.
Planck
-
Ya I think your right....
I cant think of a way to keep that from happening.
-
Well, something like:
"2" objstatus "done"; obj2=true; ? !(obj3) : "3" objstatus "active"
Syntax might be dodgy ::)
Planck
-
If you put obj1 and obj2 on condition field for obj3 it ensures the first two objectives are completed first before it will allow completion of obj3 :) apparently
-
OK, but how would I write that?
Do I keep the word "this" in condition?
So it would read:
"this obj1 AND obj2"
-
No, the word "this" is removed and "obj1 and obj2" is placed on the condition line, provided that's what you set and the condition statement when objective one was completed "obj1 = true" on the activation line, and the same basically for the second objective :)
-
But if I put obj1 and obj2 in the condition field of obj3 & obj3 is set to fire if "resistance not present" how will that work?
Wont it cancel out "resistance not present" by puting obj1 and obj2 as condition?
-
I really don't know enough specifics about your objectives, but only use what I've suggested if obj1 and obj2 must be completed before obj3 :) Other than that I've no recommendations, sorry :-\
-
I appreciate your help.
I ended up just making a test map for hidden obj.
When I put: obj1 AND obj2 in the condition field for Objective 3 trigger it just messed up the trigger I had set to detect west present.
I tried leaving the word "this" in the condition so the line went like this:
this AND obj1 AND obj2
This worked perfect.
Thanks again
-
Yep, that's how to do it if you are using East/West not present first you must include the "this" in that case. So you're right "this and obj1 and obj2" ;D