You try using a variable to hold the name?
Click the variable editor, and choose a string variable.
Trigger:
- Game - Display to (All players) the text: (Player name of (Owner of (Buying unit))) + ( has chosen the + (Name of (Sold unit))))
If that doesn't work, create a custom function with this line of text in it:
[ljass]call DisplayTextToForce(GetPlayersAll(),GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("has bought the "+ GetUnitName(GetSoldUnit())))[/ljass]
would look like this
Trigger:
- Custom script: call DisplayTextToForce(GetPlayersAll(),GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("has bought the "+ GetUnitName(GetSoldUnit())))
The second one looks great, but I C&Ped into the custom script and now it says theres an error.
You have to use String Concatenation to have multiple string actions.