OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Elzo on 13 Oct 2007, 08:22:52
-
Hi!
Here's my problem:
I can't activate trigger ''1'' objstatus ''done''. It says: -Invalid number of expression- or something like that. Im sorry about my worse english :D I'm just trying to do briefings but in mission editor Trigger wont activate when I type that code On Activation ???. Help please!
-
First you need the trigger to be activated by east not present or something to that affect. i hope your that far.
You should download this Chris' OFP Script Editor on this page http://www.ofpec.com/ed_depot/index.php?action=list&game=OFP&type=to&cat=xyz
or look in Editors depot for a tute on mission making.
its kinda hard to explain and you could just be doing one little thing wrong, so i added the below
"1" objStatus "DONE"; hint "You have a new objective. \n\nCall for evac." Or something like that, the “hint” makes that ding sound you here when the objective is done. After hint you can right “Good job soldier!” or what ever, that pops up in the left top corner. Now in you’re your briefing you should have something like this
<!-- Objective 1 -->
<p><a name="obj_1"></a>
<!-- [OBJ_1] -->
Clear town
The part that says “Clear town” is the objective. Witch is obj_1 .
someone will add to this post iam sure and help u out better then me ;)
and :welcome: to the forums, cheers Schuler
-
Thanks! I got Chris' OFP Script Editor and i've red help contents. But it just won't work. I'm quite an amateur but I appreciate your help :) So thank you! And thanks for welcomings :) I'll keep trying.
-
with Chris' OFP Script Editor it can do briefings for you look at the top, play around and you'll get it ;)
-
Ok. Now it looks like something like this with editor:
<!---------------------------------------------------->
<!-- Objectives -->
<!---------------------------------------------------->
<!-- Objective 1 -->
<p><a name="obj_1"></a>
<!-- [OBJ_1] -->
Torju läpimurto yritys
<!-- [END] -->
</p><hr>
<!-- Objective 2 -->
<p><a name="obj_2"></a>
<!-- [OBJ_2] -->
Tapa kaikki viholliset ensimmäisestä aallosta
<!-- [END] -->
</p><hr>
<!---------------------------------------------------->
<!-- Debriefing -->
<!---------------------------------------------------->
<!-- End #1 -->
<h2><a name="debriefing:end1"></a><br>
<!-- [TITLE_1] -->
Läpimurtoyritys estetty!
<!-- [END] -->
</h2><br><p>
<!-- [TEXT_1] -->
Hienoa työtä! Er.P 28 jää historiaan!
<!-- [END] -->
</p><br><hr>
</body>
</html>
-
thats it, now just set your trigger right ad this and same with next trigger :good:
"1" objStatus "DONE"; hint "You have a new objective. \n\nTapa kaikki viholliset ensimmäisestä aallosta"
-
Thank You :)