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-12-2012, 05:13 PM
Punch_145 Punch_145 is offline
Approved Member
 
Join Date: May 2012
Posts: 24
Default

Must say Kodiak these tutorials here and on forum.sturmovik.de are a great help
Is it possible to have more than 1 parameter effect the mission success hud message?
i.e. a % of an air group destroyed plus complete a landing at home base both influence whether you see a Mission Success message...........

Regards

Punch.
Reply With Quote
  #2  
Old 12-12-2012, 05:35 PM
bolox bolox is offline
Approved Member
 
Join Date: May 2008
Posts: 351
Default

something like that is possible- something very like that is used in the Redux campaign for the 'help in combat' mission

Code:
 private void checkLanded(AiAircraft aircraft) {
    if (GamePlay.gpPlayer().Place() != aircraft)
      return;
	if (end != true) { 
	Campaign.battleSuccess = false;
	GamePlay.gpHUDLogCenter("YOU FAILED! DISMISSED."); //STD 
    Timeout(5.0, () => { ShowResult(true); }); // STD
    return;
	}
	if  ((end = true) && (safe = true))   // check  reached mission objective 
    
	{    
        Campaign.battleSuccess = true;

        writeScore(cPlayer + readScore()); // STD : increase campaign kills 
		
	             
        GamePlay.gpHUDLogCenter("GOOD SHOW! Less than 4 of 111Sqn shot down." ); 
        Timeout(5.0, () => { ShowResult(true); });//STD 
		

        Timeout(15.0, () => { GamePlay.gpHUDLogCenter("Your campaign kills : " + readScore()); });//STD

    }
	
	
	
	
  }
gives a success message if the bool 'end' is satisfied when the player lands. There is some extraneous stuff in there relating to the campaign scoring system.

A 'TGroup Destroyed ' trigger could make bool end = true to make it run?
Reply With Quote
  #3  
Old 12-13-2012, 04:56 PM
Punch_145 Punch_145 is offline
Approved Member
 
Join Date: May 2012
Posts: 24
Default

Cheers m8 ................will try it
Reply With Quote
  #4  
Old 12-21-2012, 07:54 AM
Punch_145 Punch_145 is offline
Approved Member
 
Join Date: May 2012
Posts: 24
Default

Regarding "triggers" , I tried to create a spawn group of 8 110's triggered when a red air group passed through an area. This worked but every time the pass through was entered another 110 group was created, ended up with about 60 110's
Is this correct and if so is there any script to close the trigger once it has been triggered?

Punch
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 04:33 AM.


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