Home   Help Search Login Register  

Author Topic: Help: my ObjStatus command doesn't work  (Read 688 times)

0 Members and 2 Guests are viewing this topic.

Lavell

  • Guest
Help: my ObjStatus command doesn't work
« on: 07 Mar 2004, 20:10:50 »
Ok.. here's the scenario...

real simple trigger.. I have a landing zone to insert for the first objective.

when west is present in the radius, the trigger has in activation field:

"OBJ_1" ObjStatus "DONE"; obj1 = 1;

There is also an effect text that reads "Insertion Complete"

in the briefing, I have as an objective:

<a name="OBJ_1"></a>Insert via the perpared <a href="marker:LZ1">Landing Zone</a>.

now, when i enter the area for the trigger, I get the trigger's text message of objective complete.  Furthermore, the other triggers that require obj1 == 1 AND obj2 == 1 etc for the mission to be successful also work just fine.

The problem is that when I complete any objectve, it does not change the stauts of the objective in the briefing. (doesnt put a check mark or an x by it).   It's like the whole object status command doesn't work.  Furthermore the one's I list as "HIDDEN" in the init.sqs don't register as hidden either.  I figure it could be a problem with syntax, but have tried every varient of the command that I can find in any tutorials, including:

"OBJ_1" ObjStatus "DONE";
"obj_1" objstatus "done";
{OBJ_1} ObjStatus "DONE";
{obj_1} objstatus "done";
{"OBJ_1"} ObjStatus {"DONE"};
{"obj_1"} objstatus {"done"};

None of which work.

Any help in getting my objectives to flip in the briefing would be appreciated.  It's the only hitch I'm having in getting my missions perfect.

Thanks,

Lavell


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help: my ObjStatus command doesn't work
« Reply #1 on: 07 Mar 2004, 20:22:45 »
"1" ObjStatus "done"

obj1=true is arguably better than obj1=1.

OFP code is supposed to be case insensitive, so that obj is the same as OBJ.  Counterexamples have been reported, but they are rare.
« Last Edit: 07 Mar 2004, 20:23:44 by macguba »
Plenty of reviewed ArmA missions for you to play

Lavell

  • Guest
Re:Help: my ObjStatus command doesn't work
« Reply #2 on: 07 Mar 2004, 20:25:45 »
well it's not that part that isn't working...

obj# = 1 just stacks up the status of the objectives I track so that the triggers flip on the appropriate conditions.

its the objstatus comand that doesn't work.  and I don't know what othe way's I can syntax it correctly.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help: my ObjStatus command doesn't work
« Reply #3 on: 07 Mar 2004, 20:32:42 »
Quote
"1" ObjStatus "done"
Plenty of reviewed ArmA missions for you to play

Lavell

  • Guest
Re:Help: my ObjStatus command doesn't work
« Reply #4 on: 07 Mar 2004, 20:38:04 »
yeah, it doesnt matter if i call it OBJ_1 or 1 or whatever, it still doesn't work.

I have tried all of these variants for that first field:

#
OBJ_#
obj_#
objective#
#obj
#_obj
#_OBJ


none work in changing the status of the objective in the briefing.

I have also depbo'd quite a number of maps to look at how they work, and on recompiling them (with no changes) they don't work either.
« Last Edit: 07 Mar 2004, 20:39:31 by Lavell »

Lavell

  • Guest
Re:Help: my ObjStatus command doesn't work
« Reply #5 on: 07 Mar 2004, 21:20:08 »
"1" ObjStatus "done"


just for laughs, i went back and tried that one again... cause i dont remember specifically trying just a # in the first field with lower case in the second field.

none of my objectives even showed in the briefing.  and yes i changed all the objective triggers, briefing, and init.sqs files to match.

« Last Edit: 07 Mar 2004, 21:21:04 by Lavell »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help: my ObjStatus command doesn't work
« Reply #6 on: 07 Mar 2004, 22:20:12 »
Your remark

Quote
lower case in the second field.

clearly indicates that you have not read my first post.   Which is offensive.

Your remark

Quote
just for laughs   ..... cause i dont remember specifically trying

cuts out the non-reading part and goes straight to being offensive.    When somebody takes the time and trouble to answer your question the least you can do is give the answer a thorough tryout.

If you expect to get much help from this forum I suggest you improve your attitude.   Moreover, an occasional hint at thanks, while not strictly speaking essential, would at least demonstrate good manners and increase the likelihood of additional help in the future.

/lecture


It sounds as if your Briefing.html might be completely messed up somehow.... it does happen.   I've copied and pasted this from a working mission:-

Briefing.html is like this:-

<hr>

<p><a name = "OBJ_1"></a>Change the flag at the top of <a href="marker:hill">The Hill.</a>

</p>
<hr>

The objective complete trigger is like this:-

"1" ObjStatus "done"


If you've got depboed missions that work, a good plan is just to put the Briefing into your own mission basically unaltered and make that work ... once it does, copy and past in your own text.     The Tutorial Mission in the Editors Depot has a Briefing.html specifically designed for you to use as a template.

I personally don't use them, but there are mission creation tools in the Editors Depot which do things like create your briefing:  they may or may not be helpful in this case.

If that doesn't work, give us more detail on what's happening - for example attach the briefing file to the post.  I won't check it - I don't know any html, I'm just a copy monkey on this stuff - but somebody might.    Do the objectives appear correctly at the start of the mission?

And I didn't notice before that you were new, but

Welcome to the forum!
Plenty of reviewed ArmA missions for you to play

Lavell

  • Guest
Re:Help: my ObjStatus command doesn't work
« Reply #7 on: 07 Mar 2004, 23:12:51 »
Ok, i don't know what you'er problem is, but I did read your post, and regardless of how you took the comment, it wasn't directed at you... let me rehash..

I wasn't clear in my first post that I'd tried a number of naming schemes along with the syntaxing...so i reposted.

the 'just for laughs' comment was not directed at you but rather my frustration of having tried so many times and not having it work.  So don't take your insecurities out on me.

Furthermore, I question your english comprehension when I clearly stated that I had tried the different capitalizations of the command and fields combined with the different naming schemes...That was the whole point of my repost where I say "i wasn't sure if i tried that"... cause I'd tried so damn many.

That's called I was thinking about your suggestion and thinking about every way I had tried it and had it not work, that the only think I could think of from your suggestion was the uncapitalization of the second field.  So for my own amuzment I gave it a shot and none of my objectives then showed.

Sorry pal, but you're the one with the attitude problems if you're taking offence to what I wrote.  I don't care to hear your little ignorant comments about what you think concerning my attitude is you're too busy taking things personally to deal with the issue at hand.

/lecture back :P


Now as for the problem... you do mention something in the last post that may be the case that I'm about to test...  I've been naming the objectives in the triggers and the briefing the same.  so that my triggers are  "OBJ_1" ObjStatus "done" and my briefing is also  <a name="OBJ_1">

I haven't tried just using "1" in the triggers and keeping "OBJ_1" in the briefing.  That might be it.  I'll let ya know.

P.S.  I'll thank you when it works!





Lavell

  • Guest
Re:Help: my ObjStatus command doesn't work
« Reply #8 on: 07 Mar 2004, 23:31:07 »
it works now.  it was the point of having the triggers named differently than the objective names.  thanks for clearing that up.