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!

Similar Threads

  1. Replies: 3
    Last Post: 07-27-2018, 01:15 PM
  2. Using SLib to write your first script
    By SpiffyJr in forum The Lich Project
    Replies: 2
    Last Post: 06-04-2010, 09:35 PM
  3. I WRITE SCRIPT GOOD!
    By Chaotic Tempo in forum Miscellaneous Scripts
    Replies: 9
    Last Post: 12-27-2009, 08:43 PM
  4. The first script I have attempted to write
    By Blud in forum Scripting Discussion
    Replies: 19
    Last Post: 02-13-2008, 08:50 AM
  5. Someone Needs to write a script that does my laundry for me.
    By AlahnnaDenale in forum Scripting Discussion
    Replies: 18
    Last Post: 09-05-2004, 12:25 PM

Posting Permissions

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