Results 1 to 5 of 5

Thread: setTriggerStatements

  1. #1
    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 &#91;&#34;this&#34;, &#34;GRF_FF_Artillery_Stop = true&#34;, &#34;&#34;&#93;[/QUOTE]
    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 &#91;&#34;this&#34;, &#34;&#91;&#34;large&#34;&#93; exec &#34;test.sqs&#34;&#34;, &#34;&#34;&#93;[/QUOTE]
    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 &#91;&#34;this&#34;, &#34;hint &#34;works&#34;, &#34;&#34;&#93;[/QUOTE]
    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.

  2. #2
    Lance Corporal
    Join Date
    Dec 28 2006
    Location
    Hanover / Germany
    Posts
    43
    _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.




  3. #3
    Moderator Foxhound's Avatar
    Join Date
    Jun 6 2005
    Location
    The Netherlands
    Posts
    6,297
    Author of the Thread

    It works now indeed.

    I never ever thought of that. Is there some more information about when to use double ""...."" or singe "...." somewhere?

  4. #4
    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...

  5. #5
    Moderator Foxhound's Avatar
    Join Date
    Jun 6 2005
    Location
    The Netherlands
    Posts
    6,297
    Author of the Thread
    Quote Originally Posted by (CrashDome @ Mar. 25 2007,22:14)
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •