Icon TFT
"You are accessing the classified database of the Task Force Talon"
This section of the Act of War wiki is archived, containing information from defunct fansites and wikis.
Do NOT edit any information in the archives unless it is fixing up spelling mistakes.
Using Python : first example

Python is very useful to express some developments which are not easy to express in NDF.

For example, python can easily do mathematical calculs. To calculate (TAccesseurA + TAccesseurB)/(log TAccesseurC), you can write in NDF :

ResultOfComplexCalcul is TAccesseurRealDivide :
  AccesseurNumerateur = TAccesseurRealAdd :
                          RealList =
  AccesseurDenominateur = TAccesseurRealLogN :
                            AccesseurReal = TAccesseurC

In python, this is much simpler and easy to modify :

ResultOfComplexCalcul is TAccesseurRealPython :
  ParamsNoEval = MAP
    ('A', TAccesseurA),
    ('B', TAccesseurB),
    ('C', TAccesseurC),
  Code = """
    import math
    result = (A.Value + B.Value) / math.log(C.Value)

You can use thoses NDF Accessors in the same way

  • TAccesseurIntegerPython
  • TAccesseurBooleanPython
  • TAccesseurStringPython
  • TAccesseurStringListPython

and TEffetDescriptor_EffetPythonInstantane if you want an effect.

Community content is available under CC-BY-SA unless otherwise noted.