OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DarkCell on 12 Jan 2004, 23:56:16

Title: Marker problem!
Post by: DarkCell on 12 Jan 2004, 23:56:16
Finaly you people Helped me realy out with the Chopper problem and the Trigger command problems  ;D You Guy's prove to be L33T in scripting  :)

But My mission still isn't finished yet!
And yes I got a new Problem...

I made a Briefing and I read Snypers Tutorial how to Hide objectives and how to complete em.
But the problem I got is with the marker.
This is what happens:

When I walk over the Trigger field it activates and I see the Objective that was hiddin in my briefing,but....The Marker is still Hiddin!! ??? The Marker just won't Show up! >:(

I made 2 Triggers 1 for the objective to show in Briefing and 1 for the Marker to show on map and I made a Init.sqs script to Hide the 2 things :)
This is how my INIT.SQS looks like:

Quote
"1" ObjStatus "HIDDEN"
"obj1" SetMarkerType "Empty"

And this is how the Trigger for the ObjStatus looks like:

Activation: West
Condition:this
On Activation: "1" ObjStatus "ACTIVE"

And this is how the Trigger for the Marker looks like:

Activation: West
Condition:this
On Activation:"obj1" SetMarkerType "Destroy"

and last this is how my Objective Code looks like in the HTML briefing script:

<p><a name = "obj1"></a><a href="marker:Destroy">Shilka</a> spotted here,Destroy it
</p>
<hr>


Anybody see what I'm doing wrong with the marker thing?

I also Made a Marker:

Name: obj1
Icon: Destroy

Plz need help! :-[

Title: Re:Marker problem!
Post by: macguba on 13 Jan 2004, 00:21:23
There are two errors in the objective code.   It should be obj_1 rather than obj1 (I think) and you should have the name of the marker rather than it's type.

<p><a name = "obj_1"></a><a href="marker:obj1">Shilka</a> spotted here,Destroy it
</p>


It's possible that the name of the marker is causing confusion to the game.  Change it to say, ShilkaMarker.    

"ShilkaMarker" setMarkerType "Objective"

should work I think, it's also possible that "destroy" does not work in this context.   Test it with objective.    Also check the syntax in the command ref.   You are doing basically the right thing, the problem here is some pesky little detail.


PS - what does L33T mean?
Title: Re:Marker problem!
Post by: PsyWarrior on 13 Jan 2004, 00:28:01
By Thor, you have not heard of the ancient language of 1337 5P34K?
Or H4X0R as it is more commonly known. It is the strange language of the H4X0Rs, constructed from a series of glyphs and symbols. I believe you have uncovered a variation of the legendary word of 1337 or "elite" here.

 :hmm:

-PsyWarrior
Title: Re:Marker problem!
Post by: Planck on 13 Jan 2004, 02:27:24
Ancient.............hmmmmmmmm...............Wonder why they died out.......probably had communication problems.


Planck
Title: Re:Marker problem!
Post by: PsyWarrior on 13 Jan 2004, 21:31:14
c0mmun1c4710n pr0bl3m5? ph34r m1 1337n355! 347 1337!

-P5yW4rr10r
Title: Re:Marker problem!
Post by: dmakatra on 13 Jan 2004, 21:40:06
w0rd ;D (if I only could understand what you wrote though ::) )

:beat: *Gets Shot* :beat:
Title: Re:Marker problem!
Post by: PsyWarrior on 13 Jan 2004, 21:46:22
Illiterate swine!

*notices topic drifting off course towards rocky cliffs*

*panics*

So DarkCell, did macguba's suggestion solve the problem?

-Psy