Home   Help Search Login Register  

Author Topic: Trigger Trouble  (Read 987 times)

0 Members and 1 Guest are viewing this topic.

shadow99

  • Guest
Trigger Trouble
« on: 10 Jul 2004, 06:18:08 »
Hey guys. I hope you don't mind me bombarding you with questions left right and center, but everything I learn means there's one less question I have to ask!  ;D

OFP keeps crashing because... well, I don't know the problem really, when I start my mission. I think it's something to do with a messy set of triggers near the end of my mission. I'll write them all out for some genius to find out why OFP is crashing.

Trigger:
East
Not Present
Activation: Once
Type: Switch
Name: obj1
Condition: this
On Activation: text3=true;Papabear = [West, "HQ"]; papabear sidechat "ALPHA BLACK, SAINT LOUIS IS CLEAR, PROCEED TO LA TRINITE.";obj_1 objStatus "DONE";hint "First Objective Complete.";saveGame;boolean1=true

Trigger:
East
Not Present
Activation: Once
Type: None
Name: <None>
Condition: this and boolean1
On Activation: good1=true;hint "Second Objective Complete";obj_2 objStatus "DONE";Papabear = [West, "HQ"]; papabear sidechat "ALPHA BLACK, WHAT'S YOUR STATUS DOWN THERE? IS LA TRINITE SECURE?"

Trigger:
East
Not Present
Activation: Once
Countdown: Min: 5 Max: 5 Mid: 5
Type: None
Name: good1
Condition: good1
On Activation: player sidechat "PAPABEAR THIS IS PRIVATE WILLIAMS. BOTH SAINT LOUIS AND LA TRINITE ARE SECURE, I REPEAT, SAINT LOUIS AND LA TRINITE ARE SECURE.";good2=true

Trigger:
None
Present
Activation: Once
Countdown: Min: 10 Max: 10 Mid: 10
Type: None
Name: good2
Condition: good2
On Activation: good3=true;Papabear = [West, "HQ"]; papabear sidechat "GOOD TO HEAR PRIVATE. AND THE STATUS ON THAT M113?"

Trigger:
None
Present
Activation: Once
Countdown: Min: 5 Max: 5 Mid: 5
Type: None
Name: good3
Condition: good3
On Activation: player sidechat "THE M113 IS IN TACT, PAPABEAR.";obj_3 objStatus "DONE";hint "Third Objective Complete";good4=true

Trigger:
None
Present
Activation: Once
Countdown: Min: 7 Max: 7 Mid: 7
Type: None
Name: good4
Condition: good4
On Activation: Papabear = [West, "HQ"]; papabear sidechat "EXCELLENT WORK ALPHA BLACK. WE'LL PUT SOME BEER ON ICE FOR YOU.";good5=true

Trigger:
None
Present
Activation: Once
Countdown: Min: 5 Max: 5 Mid: 5
Type: End#1
Name: good5
Condition: good5
On Activation: <None>

And that's it. There are some other triggers but I've seen them in action previously and they work fine. They're not even related to these triggers, anyway.

Thanks for the help... I've probably given a huge unnecessary amount of detail but... oh well...






Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Trigger Trouble
« Reply #1 on: 10 Jul 2004, 10:09:41 »
Delete half the mission and see if it crashes.   Then the other half.  Then quarters, then eightths and so on.    You should be able to isolate the precise trigger or whatever that is causing the problem.

Do you have a description.ext?  In my experience that's the commonest source of crashes.
Plenty of reviewed ArmA missions for you to play

shadow99

  • Guest
Re:Trigger Trouble
« Reply #2 on: 10 Jul 2004, 10:30:06 »
Yes, I do. However this crashing has only occurred since I put those triggers in. I checked through ym description.ext and I've really got nothing in there but the player's identity.

Also, I've noticed the game crashes a lot when I don't have 'this' in the condition field of a trigger...

Anyway, I'll take your advice and work through it.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Trigger Trouble
« Reply #3 on: 10 Jul 2004, 10:52:31 »
I've never experienced or heard about any crashes in triggers. The three main things that happen when you have wrong syntax in a trigger is either
A) An error message
B) An error dialog box while in mission
C) An error dialog box while you press preview and it won't let you play the mission.
Anyway, I'd say triple check the description.ext as it's the most common cause of crashing or do a benchmark check and see if it's your computer who can't handle it.
Also, a piece of advice: Savegame, ah yes, sometimes more disturbing than knowsabout. :) Do NOT have multiple commands in on activation field when having savegame there, since it tend to trigger twice, never trigger or whatever on the other commands.

:beat: *Gets Shot* :beat:

shadow99

  • Guest
Re:Trigger Trouble
« Reply #4 on: 10 Jul 2004, 10:57:03 »
Well I got the problem sorted (ALL by myself I might add ;D)... though it wasn't a BIG problem really. I had 'text' and the 'name' of the triggers mixed up.

Trigger:
None
Present
Activation: Once
Countdown: Min: 5 Max: 5 Mid: 5
Type: None
Name: good3 - This should be 'Text: good3', as with all the others
Condition: good3
On Activation: player sidechat "THE M113 IS IN TACT, PAPABEAR.";obj_3 objStatus "DONE";hint "Third Objective Complete";good4=true

And about that saveGame thing Armstrong... REALLY? Because I have multiple commands on one activation field, including saveGame, and I haven't noticed any problems at all.


ponq

  • Guest
Re:Trigger Trouble
« Reply #5 on: 10 Jul 2004, 11:09:10 »
If you want to objectives to work I think you should replace this (and similar lines) :
Code: [Select]
obj_3 objStatus "DONE"with
Code: [Select]
"3" objStatus "DONE"