Topic: Diplomatic Delivery Mission question  (Read 1053 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris Jones

  • MOD PRODUCER
  • Lt.
  • *
  • Posts: 541
  • Gender: Male
  • Galaxy Class - as seen in DS9
    • Chris Jones Gaming
Diplomatic Delivery Mission question
« on: December 26, 2004, 11:15:23 pm »
In these missions, how does the script call the planet? Is it a specific planet called or random. A question has come up on the UAW server about planets on diplomatic missions having shields. Since I have changed a lot of things in the mod, planets included, I'd like to assure that these missions do not come up with shielded planets.

Thank you.. :)
..Because the game does not have to, and will not, remain the same..


Celebrating Life!
Favorite TNG: Yesterday's Enterprise

Offline FPF-SCM_TraceyG_XC

  • Empress of the Empire
  • Commander
  • *
  • Posts: 2543
  • Gender: Female
Re: Diplomatic Delivery Mission question
« Reply #1 on: December 27, 2004, 02:43:04 am »
The planet creation in Met_22Diplomatic (I'm assuming this is the mission you are refering to) is as follows:

void tPlanetTeam::mCreateShipsForTeam()
{
   int32 planetDice = fMissionInfo->mRandomInt32( 1, 100 );

   if( planetDice < 6 )
   {
      mCreateShip( typeid( tPlanet ), "PL1", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 12 )
   {
      mCreateShip( typeid( tPlanet ), "PL2", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 18 )
   {
      mCreateShip( typeid( tPlanet ), "PL3", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 24 )
   {
      mCreateShip( typeid( tPlanet ), "PL4", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 30 )
   {
      mCreateShip( typeid( tPlanet ), "PL5", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 36 )
   {
      mCreateShip( typeid( tPlanet ), "PL6", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 42 )
   {
      mCreateShip( typeid( tPlanet ), "PL7", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 48 )
   {
      mCreateShip( typeid( tPlanet ), "PL7", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 54 )
   {
      mCreateShip( typeid( tPlanet ), "PL9", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 60 )
   {
      mCreateShip( typeid( tPlanet ), "PL10", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 66 )
   {
      mCreateShip( typeid( tPlanet ), "PL11", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 72 )
   {
      mCreateShip( typeid( tPlanet ), "PL12", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 78 )
   {
      mCreateShip( typeid( tPlanet ), "PL13", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 84 )
   {
      mCreateShip( typeid( tPlanet ), "PL14", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 90 )
   {
      mCreateShip( typeid( tPlanet ), "PL15", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else if( planetDice < 95 )
   {
      mCreateShip( typeid( tPlanet ), "PL16", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
   else
   {
      mCreateShip( typeid( tPlanet ), "PL17", kStartPosition_Z, kNoMetaShipID,
                              -1, 0, 0, -1, -1, NULL, kDefaultShipOptions );
   }
}


Essentially, the planet that appears is random, and will be any of the above types taken directly from the shiplist. So changes to these planets in the shiplist will effect this mission. The mission can be recompiled with different planets if you have a specific use for them and still want to use this mission in a campaign.
« Last Edit: December 27, 2004, 03:20:14 am by FPF-TraceyG »
Captain FPF-TraceyG, Federation Protection Fleet


SFC2.net Admin member
SFC3.net Admin member
Voting member of the DGA
Member of XenoCorp, Squadron Commodore

Offline Soreyes

  • Commander
  • *
  • Posts: 3903
  • Gender: Male
  • It's Not News. It's CNN
Re: Diplomatic Delivery Mission question
« Reply #2 on: December 27, 2004, 03:04:48 am »
Ummm yep what she said.    ;D    It's a random planet.


[img width=600 height=150]

Offline Chris Jones

  • MOD PRODUCER
  • Lt.
  • *
  • Posts: 541
  • Gender: Male
  • Galaxy Class - as seen in DS9
    • Chris Jones Gaming
Re: Diplomatic Delivery Mission question
« Reply #3 on: December 27, 2004, 07:37:38 pm »
Thanks Tracey and Soreyes - no need for a recompile, I can work with this information.. :)

..Because the game does not have to, and will not, remain the same..


Celebrating Life!
Favorite TNG: Yesterday's Enterprise

Offline FPF-SCM_TraceyG_XC

  • Empress of the Empire
  • Commander
  • *
  • Posts: 2543
  • Gender: Female
Re: Diplomatic Delivery Mission question
« Reply #4 on: December 27, 2004, 07:40:05 pm »
You're welcome  :)
Captain FPF-TraceyG, Federation Protection Fleet


SFC2.net Admin member
SFC3.net Admin member
Voting member of the DGA
Member of XenoCorp, Squadron Commodore