OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hertog Jan on 25 Apr 2005, 11:48:13
-
hey,
I have this very weird problem: I have a trigger with in the Act. field the command: trigger1done=true
When I try to preview the mission, OFP crashes to the desktop, without a message or something....
IÂ'm running the 1.85 version (updates wonÂ't install...damn virus scanner...)
So is anyone familiar with this bug?
Or anyone has another idea how to link 2 triggers, and when both conditions are met, you win the game?
Thnx!!!
-
i would suggest retracing your editing steps one by one until you pinpoint the problem. it's unlikely that a trigger on its own will crash flashpoint.
as for the second question, you need only one trigger (i assume), and in the 'condition' field put
win_variable1 and win_variable2
that means the trigger will only activate when both win_variables are true...
-
I doubt its the trigger.
Make a copy of your mission. In the copy, delete half of it. Now Preview and see if it crashes. Repeat until you find the problem.
-
I deleted the trigger and it still crashes, also when I saved it as an other mission. Maybe this has something 2 do with: It is build on a custom island wich I downloaded...
I will try it at a official island
EDITED: Well, it also crashes at Nogova...This is very confusing
-
Did you delete some other stuff from the mission copy as well, like macguba suggested...?
It's definately not the trigger that causes the crash...
What actually happens when the trigger1done is set to true?
Does it activate some other trigger that perhaps creates something or executes a script...??
-
With my copy, I also copied the cutscenes as well to the new missionfolder. I only deleted the trigger with the command trigger1done=true and replaced it without this command. It still crashes, so I can't blame the trigger anymore...
I have previewed this mission several times before so it couldn't be the island...could it?
What happens when trigger1done is true, you have won the game.
I have done this because I have 2 triggers with mission objectives. So when you have the first objective, you also must accomplish the other objective in order to win the game. This last trigger has as specifics Resistance "not present" and the command on the condition field: this and trigger1done=true
It ends the mission with "end1"
-
i would suggest retracing your editing steps one by one until you pinpoint the problem. it's unlikely that a trigger on its own will crash flashpoint.
as for the second question, you need only one trigger (i assume), and in the 'condition' field put
win_variable1 and win_variable2
that means the trigger will only activate when both win_variables are true...
Okay, but how does the editor knows what the winvariables are? Should I put 1 ObjStatus Done in the activation field of the objectives?
-
mkay - you have two objectives. in your init file create two variables - win1 and win2. doesn't really matter what you name them, but make it something which means something to you. set both to false in the init file.
then, in the editor, make an ending trigger with
win1 and win2
in the condition field.
now, not knowing what your two objectives are (clear the town, collect the documents, steal the car) i can't really help you with the how, but when your first objective is complete, be it a trigger or script or whatever, set win1 to true.
same with the second objective, make win2 true. as soon as both are complete, the ending trigger will fire.
objstatus is only important when it comes to ticking off the objectives on the briefing, and that's all it's used for as far as i know.
hope this helps. did you find what was crashing?
-
I think it's the island I downloaded wich causes the crashes, because only on this island OFP crashes, and only when using those commands...
And I already started to like this island....well..2 bad.. :'(