Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   [Request to dev's] Several scripts in mission (http://forum.fulqrumpublishing.com/showthread.php?t=26969)

salmo 10-11-2011 12:22 AM

[Request to dev's] Several scripts in mission
 
Having got the hang of basic scripting, I'm now up to incorporating several different scripts into one mission. Spawn sub-mission; ambulance/fuel truck at airfields, despawn AI's after landing. These script have calls in common to some methods, especially the ontickgame method. To do this, I need to copy out only the relevant code for that method & paste into the method section of the master script (which is a PITA. here's my idea for further enhancedment:

1. Have a directory dialog in the script window of the mission brief.
2. Allow scripts to picked from the dialog & 'automatically' loaded into the script window,
3. on auto-pasting a script, have an in-built algorithm that will ...
a. remove multiple calls to the same core component
b. parse out script text for each method & paste into any existing method text section


All times are GMT. The time now is 02:43 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.