OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: itchie on 12 Apr 2005, 10:20:14

Title: multiple sided briefings in multiplayer
Post by: itchie on 12 Apr 2005, 10:20:14
Hello, im working on a mission that contains resistance, civilian and west against east. However, those 3 groups need different briefings. Now i have been using this guide to construct the briefing: http://www.flashpoint1985.com/docs/briefing.html

It works perfectly, except for one thing. The objectives are shown, in this way:

- west sees his own objectives + resistance and civilian objectives.
- resistance sees own objectives + civilian objectives.
- civilian sees own objectives + resistance objectives.

Anyone got an idea how to solve this so they only see their own objectives instead of the other ones ?


Title: Re:multiple sided briefings in multiplayer
Post by: Malm on 12 Apr 2005, 15:34:03
I do not think that is possible. A work around could be to place three non-playable units W0,  R0 and C0 and let them sidechat specific briefings together with the map coordinates upon initilization.

Sorry :(


-Malm
Title: Re:multiple sided briefings in multiplayer
Post by: Malm on 12 Apr 2005, 19:07:47
Sorry itchie I have now learned that it is possible and will return later tonight with an example.


-Malm
Title: Re:multiple sided briefings in multiplayer
Post by: itchie on 12 Apr 2005, 22:32:18
gimme the example  ;D

well the notes and plan section are correctly shown only to the side that needs to see it, its just the objectives that keeps being showed to everyone
Title: Re:multiple sided briefings in multiplayer
Post by: Speeder on 13 Apr 2005, 12:09:19
Here is an example briefing for multiplayer missons, where East & West see different maps and briefings.

If the concept of hiding objectives or markers is foreign to you, please check the 'How to use objectives and init.sqs' code snippet before trying to make a multiplayer briefing.

In briefing.html, there is a separate West & East 'Plan' section and a common 'Notes' section (i.e. seen by both sides).

In order to have separate maps for each team: put all the markers used by either team in your map.

Then in the init.sqs file do a check for which side the player is on and hide the markers for the opposite side. An example sqs file is included too.

http://www.ofpec.com/includes/download2.php?id=15


This is NOT my tut - but is made by Sussmori
Recommended for OFP version 1.46.
Title: Re:multiple sided briefings in multiplayer
Post by: Speeder on 13 Apr 2005, 12:10:02
you should be able to hide objectives just like hiding markers.
Title: Re:multiple sided briefings in multiplayer
Post by: itchie on 13 Apr 2005, 16:04:36
true, i know how to hide the objectives, but wont they be visible once the objective is completed ?
Title: Re:multiple sided briefings in multiplayer
Post by: Speeder on 13 Apr 2005, 18:27:14
I think so, but not sure - try and test it with a friend :)
Title: Re:multiple sided briefings in multiplayer
Post by: itchie on 13 Apr 2005, 21:22:14
yea i got it working, i decided to just cancel the whole civilian part because it became even impossible to get the right briefing (civil briefing and get east fire at certain civilians).

Only problem im facing now, if resistance completes a objective, west will see it marked completed (i hid the objectives from west but i cannot hide them from west again once they are completed ...)
Title: Re:multiple sided briefings in multiplayer
Post by: Speeder on 13 Apr 2005, 22:12:03
objective objStatus status
Operand types:
    objective: String
    status: String
Type of returned value:
    Nothing
Description:
    Set briefing objective status. Status may be one of: "ACTIVE", "FAILED", "DONE","HIDDEN".

Example:
    "obj_1" objStatus "FAILED"



Make a loop that checks if the objective is DONE -if done then hide the objective again.

#loop
IF "obj_1" objStatus "DONE" THEN "obj_1" setmarkertype "empty"
~1


or something like that


:) I hope it works, because I'm out of ideas :D
Title: Re:multiple sided briefings in multiplayer
Post by: itchie on 14 Apr 2005, 03:11:18
lol ofcourse i have thought of that, except then its hidden for resistance too :(

hmm but maybe its an idea, instead of marking the objectives complete for resistance, i just remove them from the plan :)
Title: Re:multiple sided briefings in multiplayer
Post by: Malm on 14 Apr 2005, 10:06:08
Thank you Speeder :)


Itchie - flashpoint1985 also got a document about the subject:

http://www.flashpoint1985.com/docs/briefing.html


Best regrds
-Malm
Title: Re:multiple sided briefings in multiplayer
Post by: itchie on 14 Apr 2005, 11:32:52
yea like i said in my first post that i have used that tutorial, however, if you try it yourself you see that it is not working so good as they describe it. atleast if you use multiple sides together that are allied with eachother
Title: Re:multiple sided briefings in multiplayer
Post by: itchie on 21 Apr 2005, 13:13:36
well i got the objectives part working atleast. Make a script that checks on what side a player is, (resistance or west) and if he's west just exit the script and if he is resistance u can set the objective to failed or done and then only resistance sees the objective like that while its still hidden for west :)