OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: dale0404 on 19 Jul 2008, 11:08:52
-
Hiya gents and ladies.
I am very new to the mission editing side of life and this is my first mission I have tried to make. Everything works ok apart from one of the triggers. The trigger is supposed to initiate when all the bad guys are dead in an area.
(http://screenshot.xfire.com/screenshot/large/980215d43ac5c5b82fa117b74c685d1f5b49738d.jpg)
The text for On Act is: {player sidechat format["%1 All Rogue Elements have been eliminated. Proceed to the extraction point.",_x]} foreach thislist
I have tested this with just one bad guy in the area. As soon as I kill him the trigger is supposed to activate but nothing happens. Is the dead body still being counted or am I doing something completely wrong?
Now, if I change the type from 'None' to an ending then the trigger activates but the mission ends which obviously I dont want.
Thanks
Dale
-
When no one is present, "thislist" will be empty. And forEach [] will result in doing nothing.
-
What ionos said. You are overcomplicating things, since all you need is:
player sidechat "All Rogue Elements have been eliminated. Proceed to the extraction point."
-
Cool gents, thankyou, works prefectly now. I always try to over complicate things, ask the wife!
Just one more thing if I may. I have 3 objectives in the mission which are all hyperlinked in the mission briefing. How do I get the little 'o' symbol to turn into a tick once the objective has been completed?
Screenshot below:
(http://screenshot.xfire.com/screenshot/large/f6765517bde9b836e8bbd2c79108cad542386aed.jpg)
Thanks
Dale
-
hi dale, i think this should work like SP does, forgive me if iam wrong.
In the tigger add or change these;;;;;;
edited::::::::
On Activation: "1" objStatus "DONE"; obj_1_done=true;
Type: End1 or none
In your briefing you should see something like this change it appropriately
<p><a name = "OBJ_1"></a>Destroy <a href="marker:m4">safe houses.</a>
</p>
<hr>
Note change the m4 this is the marker part to your marking on the map editer
Have a look at this too http://www.ofpec.com/ed_depot/beginners/ExampleMission.zip
This for more on Triggers, Scripts & addAction in MultiPlayer http://www.ofpec.com/ed_depot/the_files/download.php?id=545
hope thats enough help you get going :)
cheers schuler
-
You need to set the name of the mission in the editor, so it doesn't come up as the filename ("Rogue%20Elements%20(Coop08)"). You do this by double-clicking on the blue Intel window on the top right of the editor screen.
-
Thanks for the help gents, really appreciated but....
I still cant get the trigger to update as ticked on the briefing within the map screen.
This is the code from the briefing:
<!---------------------------------------------------->
<!-- Objectives -->
<!---------------------------------------------------->
<!-- Objective 1 -->
<p><a name="obj_1"></a><a href="marker:Insert">Insert here by helicopter.</a>
</p>
<hr>
This is what I put in the On Act field: 1 objStatus "DONE"; obj_1_done=true; player sidechat "We have reached the Insertion Point"
This is the error I get: objstatus: Type Number, string expected
Please help!
Thankyou
Dale
-
Sorry, I missed that one. For some reason, the object number needs to be a string, not a number:
"1" objStatus "DONE"
-
hey spooner, check my post quickly in case i missed something, I edited it to a string. there is no other posts in arma about the ticking off that i noticed. just want to make sure its correct if someone searches the topic later.
cheers schuler
-
Gents thats brill, works perfectly now. Thankyou but I am sure I will be adding to this thread in the future, if you dont mind of course! :D