NDF Advanced Exercises
From AOW HT Wiki
The solution page to the following exercises is here
Contents |
[edit]
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)
[edit]
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
[edit]
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>
[edit]
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
[edit]
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
[edit]
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



