OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Serial Killer on 11 May 2005, 19:07:26

Title: Multiplayer 'options'...
Post by: Serial Killer on 11 May 2005, 19:07:26
I need some help with 'multiplayer options', whatever you call it.. Here's what I found here in OFPEC..

Quote
DESCRIPTION.EXT
titleParam1 = "No of Lives";
valuesParam1[] = {1,2,3,4,5};
defValueParam1 = 4;
textsParam1[] = {"1", "2", "3", "4", "5"};

titleParam2 = "RESPAWN DELAY";
valuesParam2[] = {20,40,60};
defValueParam2 = 20;
textsParam2[] = {"20 secs","40 secs", "60 secs"};



INIT.SQS
tx_respawns = Param1
tx_respawndelay = Param2

You know what I mean? Ok. I need to place there difficulty levels ( Easy, normal, hard ) I know how to do it. Here's the problem: How does the different difficulty levels activates? Do I need to make some script maybe? Or trigger?
Title: Re:Multiplayer 'options'...
Post by: General Barron on 12 May 2005, 00:24:52
Is your question about how to actually get multiplayer 'options', and get values back from them?

Or is your question about how to adjust the difficulty level of a mission?

Those are two very different questions, so you should specify, methinks :)
Title: Re:Multiplayer 'options'...
Post by: Serial Killer on 12 May 2005, 12:21:18
Or is your question about how to adjust the difficulty level of a mission?

That... I think ;D
Title: Re:Multiplayer 'options'...
Post by: General Barron on 12 May 2005, 21:48:29
Well... there's about a million different ways you could do that, all depending on how your mission is designed. The simplest one that comes to mind would just be the number of enemies on the map. Harder difficulty=more enemies.

In editing terms, there is an easy way to do this. In the unit's "condition of presence" field, just write something like:

Param1 >= 2

Where "param1" is the difficulty setting, as defined in your description.ext. So param1 == 1 might be "easy", param1 == 2 might be "medium" and param1 == 3 might be "hard". So in the above example, the soldier would only exist when the difficulty was set to "medium" or "hard".

Some other ways you can adjust the difficulty would be to change the skill of the AI (via the "setskill" command); give the players less help (less units in their squad, less arty/air support, less reinforcements, etc); add or remove objectives; give the enemies less help (less units as described above, or less arty or less air support etc); and a million and one other things. It all depends on your mission.


Title: Re:Multiplayer 'options'...
Post by: Serial Killer on 13 May 2005, 13:20:58
That helped. Thanks!

 :)