OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: SoldierEPilot on 23 Jan 2015, 19:57:12

Title: Stringtable as a function storage
Post by: SoldierEPilot on 23 Jan 2015, 19:57:12
Hello word!

One of my main scripting projects structure was inspired by MCAR_engine.pbo.
It was very original idea - to store sqf code in that place. That's why I stole it)

Today I slightly changed the Notepad++ scripts I used for DASH_Library 2.0 development,
so these versions can be used in MCAR project revision (if someone want it)
or with creating MCAR-like scripting solutions.

Installation notes
http://www.ofpec.com/forum/index.php/topic,36503.msg250013.html#new (http://www.ofpec.com/forum/index.php/topic,36503.msg250013.html#new)

Usage: select 1 or several lines in stringtable and run ;
Plugins - Automation Scripts - MCAR_ToSQF
It will create one or more function listings.

To add/replace 1 function in stringtable:
Select one function (with comment-header, if it exists)

comment {dummy fn};
dummy={
_this
};

Plugins - Automation Scripts - MCAR_ToCSV
Function code will be prepared to paste to CSV,
it will looks like
dummy, "_this",dummy fn