Guest Posted March 25, 2007 I tried to search but it seems there is nothing here yet about "setTriggerStatements". I cant get this to work as I want. In a script I am creating a trigger and setting its arguments as well. Now creating the trigger is no problem, that works fine. But setting the arguments thats a pain in the &^%$$% at the moment. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_trigg setTriggerStatements ["this", "GRF_FF_Artillery_Stop = true", ""] This one works, its from another script WIP and all is fine there. Now in another script I am trying the same only I am executing a script from the same line <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_trigger setTriggerStatements ["this", "["large"] exec "test.sqs"", ""] That doesnt work, it keeps telling me the syntax isnt correct and it misses a "]". So, to make sure it want an error in the execution of the script I added a hint message like this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_trigg setTriggerStatements ["this", "hint "works", ""] This doesnt work neither. I must be doing something wrong with the "" but I really havent got a clue as to what the problem is. I hope anyone here can help me with this. I really need to get this fixed. Share this post Link to post Share on other sites
el76 0 Posted March 25, 2007 _trigger setTriggerStatements ["this", "[""large""] exec ""test.sqs""", ""] _trigg setTriggerStatements ["this", "hint ""works""", ""] Not sure, but this should work. For strings within a string you need those double quotation marks. Share this post Link to post Share on other sites
Guest Posted March 25, 2007 It works now indeed. I never ever thought of that. Is there some more information about when to use double ""...."" or singe "...." somewhere? Share this post Link to post Share on other sites
crashdome 3 Posted March 25, 2007 There is no more information needed other than if you have a string: "string" you need to use double quotes on anything inside of it: "string ""embedded string"" string" nothing more... Share this post Link to post Share on other sites
Guest Posted March 25, 2007 There is no more information needed other than if you have a string:"string" you need to use double quotes on anything inside of it: "string ""embedded string"" string" nothing more... Exactly the more info I needed Thanks for the explanation. Share this post Link to post Share on other sites