Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Timer  (Read 2471 times)

0 Members and 1 Guest are viewing this topic.

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Timer
« on: June 02, 2012, 12:06:23 PM »

Hi,

I need to some variable changed its value every 15 seconds (for example).
How to make it?
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Timer
« Reply #1 on: June 02, 2012, 05:31:49 PM »

make script like this:

Code: WME Script
  1.  
  2. while(1)
  3. {
  4.      Game.TestVariable = Random(0,1000);
  5.      Sleep(15000);
  6. }
  7.  
  8.  
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
 

Page created in 0.018 seconds with 22 queries.