Comrades in Arms Discussion Board
FHQ EdenTool (Eden plugin) - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: FHQ EdenTool (Eden plugin) (/showthread.php?tid=3935)



FHQ EdenTool (Eden plugin) - Varanon - 03-30-2020

Comrade Mission Makers,

Attached you will find the FHQ EdenTool, an expansion for Eden that we use to faciliate things for us.

It currently has two major functions:
  • Handling ACE equipment without the need to load ACE
  • Handling spawning of units in different difficulty levels

This first post I will use as a download page for the plugin. The next two posts will explain the actual use.

Note that this is an eden plugin. It will NOT leave any dependencies in your mission. So even if the mod is loaded during editing, you will not need to load it when playing the mission.

To load the mod, simply unpack in your favorite addon folder, and add @fhq_edentool to your mods


RE: FHQ EdenTool (Eden plugin) - Varanon - 03-30-2020

The first function allows you to define certain items of ACE equipment that will be given to a soldier depending on whether ACE is loaded or not.

FHQ EdenTool expands the unit's attribute dialog by an appropriate pane:
[Image: oOMUfiv.jpg]
Just check whatever you want to give the unit if ACE is loaded. "Default" is a bunch of default items like earplugs. The rest is self explanatory. Extra Grenades allows you to give one or two stun grenades.

No further action is required. The plugin puts the information into the mission file and appropriate code is added to the mission that automatically puts the stuff into the unit's inventory.


RE: FHQ EdenTool (Eden plugin) - Varanon - 03-30-2020

The second functionality is tagging and spawning by difficulty. Another foldout FHQ EdenTool adds is this one:
[Image: 7JyKx5k.jpg]
"Mission Parameter Settings" is used to selectively delete units depending on difficulty. A unit is deleted in Easy, Normal or Hard difficulty if the checkbox is not ticked... In the above example, the unit would span at Easy, Normal and Hard difficulty. If only the Hard checkbox were ticked, the unit would only spawn at Hard difficulty.

What difficulty, you ask ?  To make this work, your description.ext needs the following entry:


Code:
class Params
{
    class FHQ_Difficulty
    {
        title = "Difficulty";
        values[] = {0, 1, 2};
        texts[] = {"Easy", "Normal", "Hard"};
        default = 1;
    };
};
(Add only class FHQ_Difficulty if you already have a class Params).

You can now use this parameter to control what does and does not spawn.

The second part, "Tag Settings", is a bit more involved. It allows you to put tags onto a unit. Tagging a unit does not do anything on it's own. You can query those tags in scripts and use them for different purposes.

One such use is adapting a mission to player count. Assume we have a 12 player mission. You design the mission with 12 players in mind. You do, however, tag units with tags 'A' and 'B', with the idea of deleting all 'A' tagged units if you have less than 8 and all 'B' tagged units if you have less thanor equal to 4 players.

A tag is stored on the unit as a boolean variable, called FHQ_TagX (with X being A to F)


RE: FHQ EdenTool (Eden plugin) - Benchmark - 03-30-2020

Thanks a lot!
Downloaded!