Home   Help Search Login Register  

Author Topic: Desperate for help with breifings and objectives  (Read 740 times)

0 Members and 1 Guest are viewing this topic.

Hellfish6.2

  • Guest
Desperate for help with breifings and objectives
« on: 07 Mar 2003, 00:43:10 »
Hi guys

I've been running into this problem with no apparent solution. The player will begin the mission with one objective, and upon completion of that objective, a second should arise and upon completion of the second, a third and final objective should come up.

My init file looks like this:
Code: [Select]
"Obj2" objstatus "hidden"
"Obj3" objstatus "hidden"

"Obj3" SetMarkerType "Empty"

obj1=false
obj2=false
obj3=false
Note that I want the 2nd objective to show up on the map (though the player won't realize it's an objective).

Now, my problem is that all three objectives show up in the mission briefing from the beginning of the mission and when the mission is all over, they don't show up as being successfully accomplished.

This is what my first objective trigger looks like. It should activate the 2nd objective  and then reveal itself in the mission briefing.

Code: [Select]
"1"" objstatus ""done""; hint ""objective complete""; obj1flag = true; ""2"" objstatus active;";

Anybody have any advice to get my objectives to stay hidden at the mission briefing, but show up as successfully completed at the end briefing?

Some rudimentary questions that may seem really obvious to you, but you're probably not the idiot I am:

Should all my objective markers be named "Obj1", "Obj2" etc., when they are really the objectives?

Anything else that ought to be named "Obj1", "Onj2" and "Obj3"?

Should the above code objstatus code really read like this:
Code: [Select]
""Obj1"" objstatus ""done""; hint ""objective complete""; obj1flag = true; ""Obj2"" objstatus active;";

Thanks for any and all help. I'll get better at this, I promise.

Offline Kuro

  • Former Staff
  • ****
  • 2./FschJgBtl 251 Green Devils
    • VBS2 Mission Download Site
Re:Desperate for help with breifings and objectives
« Reply #1 on: 07 Mar 2003, 04:01:41 »
Hallo,

ok relax, the problem can be fixed. First you make a file named init.sqs place it into your mission folder (OFP/Users/YourName/Missions/YourMissionName).
Then input in this file the lines

"Obj2" objstatus "hidden"
"Obj3" objstatus "hidden"

Now the player can not see the objectives in the Briefing. If you want to show them make a trigger and input  On activation "Obj2" objstatus "Visible" then the player can see the objective.

After the player has finished the objective input in the trigger which checks for finishing On activation "Obj2" objstatus "Done". If you want to mark it as failed use "Obj2" objstatus "Failed"

Does this help or have i misunderstand your question ?

Greetings
Kuro

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Desperate for help with breifings and objectives
« Reply #2 on: 07 Mar 2003, 14:47:41 »
I suspect the problem is in what your objectives are called.   Look in your briefing.htm and see - is it OBJ_1 etc?   Whatever it is, you must use the same name in init.sqs and briefing.htm otherwise it won't work.    

If you download the Tutorial Mission from Ed Depot - Tutorials - Getting started it has a hidden objective which does work, so if all else fails just copy what is in there.

Markers, variables and objectives are all totally different things, though of course they are related.    
Plenty of reviewed ArmA missions for you to play

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Desperate for help with breifings and objectives
« Reply #3 on: 08 Mar 2003, 02:42:18 »
My init file looks like this:
Code: [Select]
"Obj2" objstatus "hidden"
"Obj3" objstatus "hidden"

"Obj3" SetMarkerType "Empty"

obj1=false
obj2=false
obj3=false

Hey there, Hellfish :)

That's your problem right there. Your init file/line should be:

Code: [Select]
"2" objstatus "hidden"
"3" objstatus "hidden"
...

The name of your objectives should be consistance... I notice in the line down the page you use: "1" objstatus "Active" etc...

I think if you change your init to that you'll end up with your 2nd and 3rd objectives hidden ;)

Hellfish6.2

  • Guest
Re:Desperate for help with breifings and objectives
« Reply #4 on: 08 Mar 2003, 04:35:30 »
I'm still not having any luck. The objectives still aren't staying hidden and they aren't getting checked off when they're completed. If anyone wants to check out the files, I'll email you the PBO. Contact me at keenedder1@yahoo.com

Thanks for all the help, guys.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Desperate for help with breifings and objectives
« Reply #5 on: 08 Mar 2003, 09:52:41 »
Yeah, sorry guys, Sui is right and I'm wrong ..... if you call it "Obj1" in the briefing then its "1" in init.sqs

Told you syntax wasn't my strong point.

Copy the briefing and init.sqs from the Tutorial mission in the Ed depot and drop in your own text.   It has a working hidden objective.

Plenty of reviewed ArmA missions for you to play

Hellfish6.2

  • Guest
Re:Desperate for help with breifings and objectives
« Reply #6 on: 11 Mar 2003, 02:07:05 »
In case anyone is interested, I found the solution. My triggers had "obj1=true" to signal that the objective had been successfully completed. It needed to read "ObjObj1=true", as I had named all my objectives "Obj1", "Obj2", etc.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Desperate for help with breifings and objectives
« Reply #7 on: 11 Mar 2003, 09:33:51 »
Don't you call it "obj_1" in the briefing if you want to call it "1" elsewhere and using the same logic for example "obj_start" would be called by "start"
Not all is lost.

Hellfish6.2

  • Guest
Re:Desperate for help with breifings and objectives
« Reply #8 on: 11 Mar 2003, 18:43:17 »
Yes... you should. But I didn't do that. Hence my explanation of what I found wrong, should anyone ever be stuck in the same situation and does a board search. I also didn't find this requirement noted in any of the tutorials I looked at.