Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2011, 08:42 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default [Tutorial] Simple Scripting Lessons - Trigger Part 1 (Basics)

In the old IL-2 1946, one can control the success of the mission with the help of the target object. The options are destroy, destroy ground, destroy bridge, recon, escort, defence, defence ground and defence bridge. Additionaly, it is possible to set a time limit, to make the target a primary, secondary or a hidden objective.





In IL-2 Cliffs of Dover, these target objects are replaced by triggers. However, the ambitious mission builder will soon realise that, without scripting abilities, one can only spawn aircrafts. The aim of the next lessons will be to achieve the same as in 1946 with the help of scripts.

In this lesson let's first take a look at the possibilities of Cliffs of Dover without scripting.

We start the full mission builder and make some preparations.
At first, we place a "observer plane" at an airfield, which can be manned by a player. It's only use is to observe the passing of the events.


Now, place a group of Bf110s on the map, which are supposed to spawn later by means of the trigger. It's very important to select "Script Spawn C", because otherwise the Bf110s spawn at the beginning of the mission and a second time when the trigger is activated.


After this, we call up the script and trigger menu.


Under trigger, we set up a new one by clicking "add".


At first, we change the standard term "trigger" into the more meaningful name "Bf110Spawn".


Now we have the option to select the type of the trigger. At the moment, Cliffs of Dover supports 4 different types:

-TTime: This trigger is activated after a specified amount of time (set in seconds). However, CloDo isn't very precise with this.
-TGroupDestroyed: This one is activated, after a certain percentage of planes or vehicles (tanks, ships etc.) from a group have been destroyed.
-TGroundDestroyed: This one is activated, after a certain percentage of ground targets has been destroyed at the position XY with the radius R.
-TPassThrough: This trigger is activated twice. The first time, when something (player, AI-plane, ground units etc.) enters an area and the second time when it leaves the area.


For the first test, let's choose TTime, as it is the simplest one, and set the time to 30 seconds.


After this, we choose "Actions" and also click "add". The name of the action has to be the same as the name of the trigger, i.e. Bf110Spawn. Without using scripts, this is the only way to activate the action with the help of a trigger. If the names aren't exactly the same, nothing happens. The only type of action available is ASpawnGroup, with which one can spawn planes. Sadly, the aren't any other actions in Cliffs of Dover.


Next, we click the little button.


Now we choose our Bf110 group with the appearing crosshair.


Afterwards, everthing needs to be saved.


Now we can start the mission.


At the beginning of the mission, we are a bit lonely.


But this changes after about 30 seconds.



Basicly, we achieved the same in this example as in IL-2 1946, by entering a different time at the starting waypoint. From this perspective, it is rather complicated to spawn planes in Cliffs of Dover after a certain amout of time. The advantage is, however, that one can also use the other trigger types. One can also spawn planes when a certain area is entered or one can send "reinforcements" if to many planes of a group have been destroyed etc.

But to exploit these advantages, one has to use scripts. We will start with those in the next lesson.


Suggestions or criticism are always welcome.

Thanks to FG28_Elatan for the translation of the German lesson into English.

Last edited by FG28_Kodiak; 01-06-2012 at 02:16 PM.
Reply With Quote
  #2  
Old 12-13-2011, 09:59 PM
KG26_Alpha KG26_Alpha is offline
Approved Member
 
Join Date: Jan 2008
Location: London
Posts: 2,805
Default

Thxz

Last edited by KG26_Alpha; 12-15-2011 at 09:59 AM.
Reply With Quote
  #3  
Old 12-13-2011, 10:01 PM
Gamekeeper Gamekeeper is offline
Approved Member
 
Join Date: Oct 2007
Posts: 190
Default

Thanks for posting and to FG28_Elatan for translation.
Reply With Quote
  #4  
Old 12-13-2011, 11:20 PM
Bounder! Bounder! is offline
Approved Member
 
Join Date: Jun 2011
Location: UK
Posts: 129
Default

Cheers for posting - very informative and clear to follow - looking forward to the next installment
Reply With Quote
  #5  
Old 12-14-2011, 12:37 AM
Octocat Octocat is offline
Approved Member
 
Join Date: Dec 2011
Posts: 22
Default

Cool, where can I enroll as a student?
Reply With Quote
  #6  
Old 12-14-2011, 06:37 AM
Pato Salvaje's Avatar
Pato Salvaje Pato Salvaje is offline
Approved Member
 
Join Date: Jan 2010
Posts: 123
Default

WOW! great tutorial!
Thank you for your work Kodiak & Elatan.
And... we are waiting for more! keep it coming!!
__________________
Phenom II X4 970 3,5 Ghz, Gigabyte 890GPA UD3H, 4GB RAM GSKILL RIP-JAWS 1333, Gigabyte 560Ti OC 1GB, W7 64
Reply With Quote
  #7  
Old 12-14-2011, 06:47 AM
335th_GRAthos 335th_GRAthos is offline
Approved Member
 
Join Date: Oct 2007
Posts: 1,240
Default

Quote:
Originally Posted by Octocat View Post
Cool, where can I enroll as a student?
+1

Much appreciated Kodiak! Great work and very nice formulation, easily understandable!!!!
(for one moment I panicked looking at the German titles of the IL2FB screenshots, good that you have no Russian CoD )
Reply With Quote
  #8  
Old 12-14-2011, 07:51 AM
WarFox101 WarFox101 is offline
Approved Member
 
Join Date: Dec 2011
Posts: 21
Default

Quote:
Originally Posted by Pato Salvaje View Post
WOW! great tutorial!
Thank you for your work Kodiak & Elatan.
And... we are waiting for more! keep it coming!!
x2
Reply With Quote
  #9  
Old 12-14-2011, 07:54 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Thank you very much, Sir!
Reply With Quote
  #10  
Old 12-17-2011, 04:42 PM
No1 Cheese's Avatar
No1 Cheese No1 Cheese is offline
Approved Member
 
Join Date: Mar 2010
Posts: 292
Default

Thanks a lot for that,ive been trying to work the basics out for awhile now.Very easy to follow(even for me)
Thank you very much

Cheese
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:15 AM.


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