Results 1 to 4 of 4

Thread: How do you write a background script that reacts to something?

  1. #1

    Default How do you write a background script that reacts to something?

    Nevermind, I got it working.
    Last edited by dex; 07-15-2018 at 11:51 PM.

  2. #2

    Default

    Could you share what you did? Also interested...

  3. #3

    Default

    I just wanted a simple script to execute sloot whenever I exited berserk, so I got this:

    Code:
    def dostuff()
    	waitfor "The redness fades from the world and you begin to breathe harder."
    	if (!running? "sloot")
     	start_script "sloot"
    	end
    end
    
    
    	loop{dostuff
    	pause 1}

  4. Default

    Stealing this!

Posting Permissions

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