Results 1 to 3 of 3

Thread: coding question

  1. #1

    Default coding question

    I am new to ruby but learning so bear with me.

    Let's use this for an example...

    do_client(';e Script.run("A"); Script.run("B"); Script.run("C")')

    How can I prevent B from starting before A ends. Is there some type of ruby code that simulates a waitfor type command?

    I don't want to have to put "pause 60" between each one, although it would work but not be efficient.

  2. #2

    Default

    You don't really need the do_client.

    Code:
    start_script "A"
    wait_while { running?("A") }
    start_script "B"
    wait_while { running?("B") }
    start_script "C"
    wait_while { running?("C") }
    You can find a lot of information in the wiki https://gswiki.play.net/Lich_scripting_reference
    Last edited by Jymamon; 07-02-2022 at 09:59 PM. Reason: Add wiki link

  3. #3

    Default

    Quote Originally Posted by Jymamon View Post
    You don't really need the do_client
    thanks, this helped me figure it out

Posting Permissions

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