Home   Help Search Login Register  

Author Topic: objectives showing as completed.  (Read 743 times)

0 Members and 1 Guest are viewing this topic.

monoloth69

  • Guest
objectives showing as completed.
« on: 31 Dec 2003, 19:47:14 »
ok, I have searched my ass off for snYper's tut "How to use objectives and init.sqs" but cant find it anywhere, so i am posting for help.  Making a large mission for the squad to be able to see the entire new island (Disciples_Isle, found @ http://disciples-squad.net/ofpstudio.htm)  Anyway, I have placed groups of NME soldiers in all the strategic places on the map, the mission is to clear them out.
1)    I cant find a way to make the Objective in the breifing show a checkmark when the individual objective is complete.  IE:  St Kuetersburg has been cleared of enemy, the notepad shows a green checkmark next to the town name.

2)    When I place a hint in the activation field of a trigger, (hint "St Kuetersberg is clear"; "kuet" ObjStatus "Done") where kuet is the name of the marker I have placed over the town, the hint only says OBJECTIVE COMPLETED.  I have a trigger for EAST NOT PRESENT for each town, and each activation field is similar in text, just the hint sayings and marker names are changed.  The triggers cover an area more than large enuff over each place to ensure that the enemy soldiers will be inside of it at the beginning, then they are all using waypoints for movement.

So I guess I am mucking it up somewhere when I add the objective to the breifing, cuz it doesnt turn to a green checkmark, and somewhere in the hint, it wont say what i want it to say.
Also, the triggers types are set to the default NONE

The markers are just red DESTROY types, with a name, no text.

Any help with this, or a link to the tut, or even an offer to email it to me at monoloth@disciples-squad.net would be GREATLY appreciated.

deaddog

  • Guest
Re:objectives showing as completed.
« Reply #1 on: 31 Dec 2003, 20:48:36 »
"1" objstatus "done" is the correct syntax.  "1" is the objective number, as defined in the briefing.html file.  OBJ_1, OBJ_2, etc.

Only the forums here are working ok.  The rest of OFPEC is down.  When it comes back up, try looking in the editors depot for the tut.


Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:objectives showing as completed.
« Reply #2 on: 31 Dec 2003, 22:01:18 »
Go here to get snypirs tutorial:

http://www.ofpec.com/editors/browse.php?category=1_1

Editors Depot works fine for me.


Planck
I know a little about a lot, and a lot about a little.

monoloth69

  • Guest
Re:objectives showing as completed.
« Reply #3 on: 01 Jan 2004, 01:28:42 »
found the tuts, thanls plank.  One thing still eludes me tho.........does the marker have to be named Obj_1 of something similar, or can it be named poopstain or anything else i can think up?
IE:  Usually when i name a marker, it represents where it is on the map, marker name == Lipany
So then when i do the HTML for the briefing, I know that in order for the map to zero in on that particualar marker near Lipany, i use that name.
Or I am just getting confused here?  Are markers and objectives horses of a different color?  Are they to be linked in order to work?
And what about my other question regarding the hint problem.....should i just use text on the screen when the east not present trigger is activated, instead of trying to get the hint to say that a certain place has been cleared?
How do I make an objective that points to a marker on the map?
Is this all done in the init.sqs?

m21man

  • Guest
Re:objectives showing as completed.
« Reply #4 on: 01 Jan 2004, 01:30:09 »
The marker name is irrelevant to objective status. Markers are not objectives, objectives are not markers.

Quote
Is this all done in the init.sqs?
No.
« Last Edit: 01 Jan 2004, 01:37:18 by m21man »

m21man

  • Guest
Re:objectives showing as completed.
« Reply #5 on: 01 Jan 2004, 01:31:26 »
Here's how an objective can have a link to a marker:

(HTML for briefing)
Code: [Select]
<p><a name = "OBJ_1"></a>Neutralize the garrison in <a href="marker:tgt1">Okrouhlo</a>.
</p>
<hr>

monoloth69

  • Guest
Re:objectives showing as completed.
« Reply #6 on: 01 Jan 2004, 22:16:53 »
I have the markers linked, the correct text appears on screen when the trigger is activated, but still no green check mark in the breifing notepad showing the objective has been completed.
IT sounds so simple......but doesnt want to work
In the breifing i made an objective linked to the correct marker on the map.
The objective is shown on the notepad with a black circle next to it.
I have a trigger around the area coresponding with the marker, set to EAST NOT PRESENT and in the on activation field  I have "1" ObjStatus "Done".  The trigger type is set to NONE
In the effects of the trigger, i have it place text on the scren when the trigger is activated.
Now.........when the trigger is activated, and the EAST has been killed, the text comes up on the screen, and in the upper left corner where the Hint would be displayed, it says OBJECTIVE COMPLETED.  
NOW< When I switch to the map screen, I am wanting to see either a green X or a green checxkmark next to that objective which has just been completed.  It is not happening.
Now that i have described everything in as much detail as I can possibly think, does anyone have any idea how to make the green check or green X appear when the objective is completed on the breifing notepad.

Quid Novi

  • Guest
Re:objectives showing as completed.
« Reply #7 on: 01 Jan 2004, 23:06:18 »
it sounds more like you briefing.html is wrong... as long as you have written as code:

Code: [Select]
"1" objstatus "DONE"
then objective one should tick off as long as its correct.... can you post a copy of your briefing.html up so we can have a gander at it? will help us solve the problem.

monoloth69

  • Guest
Re:objectives showing as completed.
« Reply #8 on: 02 Jan 2004, 10:07:14 »
you are correct, my HTML was wrong, i was using one of the many tools to generate the breifing, and when i placed the objectives in, it only named them as OBJ_ in the HTML< never assigned a number to any of them and there are 21 objectives.  So I went thru and edited the HTML and now it all works great.  Thanks for all of your help everyone!! ;D

deaddog

  • Guest
Re:objectives showing as completed.
« Reply #9 on: 02 Jan 2004, 16:08:53 »
Hey Monoloth,

When you get done, post your mission in the beta test section.  i want to see what kind of mission requires 21 objectives.  :)
« Last Edit: 02 Jan 2004, 16:09:26 by deaddog »

Quid Novi

  • Guest
Re:objectives showing as completed.
« Reply #10 on: 02 Jan 2004, 17:21:07 »
lol - good point  :D

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:objectives showing as completed.
« Reply #11 on: 03 Jan 2004, 02:05:29 »
"1" objstatus "done" is the correct syntax.  "1" is the objective number, as defined in the briefing.html file.  OBJ_1, OBJ_2, etc.

Actually the object status/definition (or what the heck you'd call it) doesn't have to be a number...

Just define the objective in the briefing.html as OBJ_whatEverYouWant and when the objective is completed activate it as "whatEverYouWant" objStatus "done"...
Only the OBJ_ prefix has to stay as it is...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

monoloth69

  • Guest
Re:objectives showing as completed.
« Reply #12 on: 03 Jan 2004, 09:23:20 »
Deaddog and others,
    Within the next week I will be releasing that particualr missions, with several others in a map-pack to accompnay my new island (Disciples_Isle).
Hopefully OPEC will allow it and everyone can give me feedback on it.  
As soon as a few "acceptable" missions are ready, it will be released.  And yes, it DOES HAVE WORKING RUNWAYS!!!
Please watch for it.