PDA

View Full Version : coding question



onurb
07-02-2022, 10:51 PM
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.

Jymamon
07-02-2022, 10:58 PM
You don't really need the do_client.



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

onurb
07-06-2022, 12:40 AM
You don't really need the do_client

thanks, this helped me figure it out