NDF Advanced Exercises

From AOW HT Wiki


The solution page to the following exercises is here

Contents

Exercise 1

Modify the MSPF (TFT marine) in order to make him move twice faster

  • Do it directly, modifying the unit characteristics (see GROUPE_SEMANTIQUE)
  • Perfom it using a Cheatcode (see AoWCheatCode.ndf)

Solution

Image:exos-avances-mspf.JPG


Exercise 2

Modify the javelin (US RPG) in order to let him shooting twice faster

  • Do it directly, modifying the unit characteristics (see GROUPE_SEMANTIQUE)
  • Perfom it using a Cheatcode

Solution

Image:exos-avances-rpg.JPG

Exercise 3

Create a unit "from-scratch" : create the typewarrior TypeWarriorDomino with the following functionnalities :

  • The domino looks like an interrogation point.
  • One second after its creation, it creates another domino 3 AI cells away from its position,

randomly in one of the four cardinal directions

  • 3 seconds after its creation, it kills itself
  • After the 20th domino, we don't create new domino anymore.
  • Start with this Typewarrior :
<ndf>
TypeWarriorDomino is TTypeWarrior :
  SoldatCarac = TSoldatCarac :
                  PV = 1
                  Detectable     = False
                  Blessable      = True
                  Visualisable   = True
                  Selectionnable = False
                  DoNotMirror    = True
  EffetRepos is SEQ with
  [
    TScaleModificator :
      ScaleX = 20
      ScaleY = 20
      ScaleZ = 20
    ,
    EffetRepeatAnim :
      MODEL_ASE          = 'Data\XFiles3\Util\PointInterrogation'
      PERIODE_EN_SECONDE = 2
  ]
  UnitStateDescriptor_Repos is TUnitStateDescriptor :
    MyName          = 'Repos'
    EffetDescriptor = EffetRepos
  UnitStateMachineDescriptor = USMD is TUnitStateMachineDescriptor :
                                 MainUnitStateDescriptor = MUSD is TUnitStateDescriptor :
                                                             MyName                     = 'Domino'
                                                             SubUnitStateDescriptorList = [UnitStateDescriptor_Repos]
                                                             UnitDecision               = TUnitDecisionConstante :
                                                                                            MyName              = 'Repos'
                                                                                            UnitStateDescriptor = UnitStateDescriptor_Repos
  WarriorKreator = WarriorKreator/WarriorKreatorMarine
</ndf>

Solution Image:exos-avances-domino.jpg

Exercise 4

Add an upgrade to the BTR-80 (Consortium light tank) in order to make him shoot at enemy aircrafts (see TFT Buggy)

  • Add a button in the action cube (use the AA buggy upgrade icone)
  • Unlock this upgrade via a Cheatcode

Solution

Image:exos-avances-btr80.jpg

Exercise 5

Make AK74 stealth (Consortium infantry)

  • Make it using an action button which make the selected unit stealth
  • This action is temporary and the stealth mode duration is visible via a stopwatch

Solution

Image:exos-avances-ak74.jpg

Advices

  • Look back at what was done with the same functionnalities
  • Proceed by steps
  • Do not hesitate to visit the wiki and the forum to get explanations of objects you are manipulating