Thread: Tech Factory
View Single Post
Old 02-22-2007, 11:32 PM   #3 (permalink)
Mere_Mortal
Member
 
Join Date: Feb 2006
Location: Kidderminster
Posts: 72
Default

That's exactly what I did

Here's some example code...

Replace [Faction] with the relevant name for each of your 6 Factions.

In PlayerTemplate, for each Faction...
Code:
  StartingUnit1 = [Faction]StartingObject
In its own INI file under the Object directory...
Code:
Object [Faction]StartingObject

  KindOf            = INERT
  EditorSorting     = SYSTEM

  Body = InactiveBody Body
  End

  Behavior = LifetimeUpdate Lifetime
    MinLifetime     = 1
    MaxLifetime     = 1
  End

  Behavior = GrantUpgradeCreate Upgrade
    UpgradeToGrant = [Faction]StartingObject
  End

End
In the Object that requires the CommandSet switch...
Code:
  Behavior = CommandSetUpgrade [Faction]
    CommandSet      = [CommandSet]
    TriggeredBy     = [Faction]StartingObject
  End
Finally, the Upgrades...
Code:
Upgrade [Faction]StartingObject
  Type               = PLAYER
End
HTH,
M_M
Mere_Mortal is offline   Reply With Quote