I tried that, specifically this:This is the syntax for that preprocessor function:You can use whatever label (referred to as, for example, "#senemy#" in a dialog file) and whatever text (for example "GetNationDescByType(iNation)") in a code file.Code:Preprocessor_Add(string label, string text)
For a character's firstname, try GetMyName(CharacterFromID("Francois Moulin"))
There is also GetMyLastName, GetMyFirstNames (with "nickname"), GetMySimpleName, GetMyFullName (with rank, e.g. "Lieutenant"), GetMyRespectfullyName (with title, e.g. "Sir").
I hope that helps.
Code:
Preprocessor_Add("AntoineChamfort", GetMySimpleName(CharacterFromID("Antoine Chamfort")));
Code:
logit("Chamfort's name : " + GetMySimpleName(CharacterFromID("Antoine Chamfort")));