aiki 0 Posted August 1, 2002 Hi, How to parse a string inside another string, like "this setBehaviour "SAFE" " in CreateUnit ? CivG = Group Civ1 _pos = getpos Ap "Civilian" CreateUnit [ _pos , CivG, "this SetBehaviour "SAFE"", 0.5, "CAPTAIN"] this last line is wrong (Init field can't to be correctly interpreted : "This SetBehaviour " is the string and: SAFE"" is a operand ) Is there a way ? Thanks. Share this post Link to post Share on other sites
Spinor 0 Posted August 1, 2002 Use double quotes for SAFE: "Civilian" CreateUnit [ _pos , CivG, "this SetBehaviour ""SAFE""", 0.5, "CAPTAIN"] This was introduced in some patch. It can be used for all strings, e.g. within a ForEach command. Share this post Link to post Share on other sites