OFP Script Editor Tutorial

Installing and Configuring OFP Script Editor

To install OFP Script Editor, download it and extract all the files in the .zip file to a dedicated folder for it.

Then run the OFPSEdit.exe file in the folder (you might want to make a shortcut to this item to make launching it easier).

To configure OFP Script Editor, select the Options command from the Tools menu.

This will display the Options dialog with three tabs.

I won't go into detail with these options as they're relatively self-explanatory, but ensure the OFP Script Editor Path text box contains the path to the directory that OFP Script Editor is located in.

The Registered File Types tab allows you to set what (if any) file types are registered with OFP Script Editor for opening when double-clicked in Windows.
Save button.

Click the OK button to save changes.

Using the Add Weapons / Ammo / Equipment dialog

The Add Weapons / Ammo / Equipment dialog allows you to insert code into the current document where the caret (text cursor) is that will add weapons, ammo and/or equipment to a unit or crate.

To display the Add Weapons / Ammo / Equipment dialog, select the Add Weapons/Ammo/Equipment command from the Insert menu.

First of all, you must have a unit or crate that has been named in the Mission Editor in OFP.
Then select from the combo box whether you want to add items to a Unit (soldier) or a Crate, and then enter the unit/crate name in the Name text box.

There are then three list controls, one containing all the weapons in OFP, one containing all the Ammo (Magazines) and one containing all the Equipment. For an item to be added to a unit/crate, it must be checked in the respective list control, so check (click the Available column on the respective item) the items you want.

You can then set the quantity of items you want. To do this, click the Quantity column on the respective item, and an edit control will appear. Enter the new number you want here.

When you have changed everything to your satisfaction, click the OK button to add the code to the current document.

Create Briefing File Wizard

To display the Create Briefing File Wizard, select the Create Briefing File command from the Wizards menu.

Enter the Mission Name and the Mission Overview in the first tab. You can also also enter the Name of a JPEG image file you want to be used.

It is best to have the image of dimensions 128x64 pixels.

These items will be seen in the Single Player mission selection screen in the game.

In the Briefing tab, enter the mission notes and mission briefing.

You can use Insert Marker button to add the HTML code to add a marker. The code for the marker will be added at the caret position.

The Objectives tab allows you to Add/Edit/Remove objectives. These are the bullet points underneath the briefing in the game.

Enter the text for the objective, then click the Add button to add an objective.

The Endings tab allows you to set the text and titles for the first three endings.

When you have entered the settings in the tabs, underneath the tab control, enter the path of the folder where you want the files to be created.

In the combo box underneath, you can select whether you want any of the files that are created to be opened in the editor afterwards.

Click OK to create the files.

Create description.ext File Wizard

The create description.ext file wizard creates description.ext files for missions. These files allow you to configure the mission, for example if there should be respawn in multiplayer missions, what do display in the briefing screen. You can also configure what weapons / ammo / equipment are available for selection in the briefing screen.
To do this, tick the Custom Weapons check box and click the Available Weapons... button to select what weapons / ammo / equipment is available.

Enter the path of the folder where you want the description.ext file to be created, and click the OK button to create it.