Topic: Script with AI ships related to player BPV (SFC3)  (Read 2193 times)

0 Members and 1 Guest are viewing this topic.

Offline Gulli

  • Lt. Junior Grade
  • *
  • Posts: 22
Script with AI ships related to player BPV (SFC3)
« on: April 20, 2010, 04:59:44 pm »
I've created my own versions of scan and distress call (SFC3). Enemy fleet strength is random, but I made it so that when, for example, two heavy cruisers attack, the distressed ship will be a heavy cruiser itself. Now I want to make it so that enemy fleet strength depends on the type of ship the player is flying (I want to prevent a player flying a frigate from being ordered to save a ship under attack by two dreadnaughts). It seems none of Taldren's original scenario's use anything like it, although there are references to a "GetCombatBPV" function, but those usually have //'s in front of them and trying to use them like the "GetRace" function doesn't seem to work. Still, I know there are custom scenario's out there (by Karnak and such) that do seem to use a mechanism relating the player's ship type to enemy fleet strength, so I'm asking any experienced scripters to help me with this.

Offline Gulli

  • Lt. Junior Grade
  • *
  • Posts: 22
Re: Script with AI ships related to player BPV (SFC3)
« Reply #1 on: April 20, 2010, 06:57:43 pm »
Nevermind: this thread http://www.dynaverse.net/forum/index.php/topic,16387362.msg1122178876.html#msg1122178876 was very helpful, the mechanism worked every time I tested it.