Staredit Network

Staredit Network -> UMS Assistance -> Detect the game speed!
Report, edit, etc...Posted by (U)Bolt_Head on 2006-04-21 at 22:42:00
You all know you could test the game speed just by having a unit walk a little ways and stop when a wait is over. If it is on fastest mode he would get further landing on a differant location. Some of you are thinking too much into this.

This of course assumes you have several seconds to wait for it, but of course every method of detecting the game speed requires testing it. Thus detecting the game speed in an instant is impossabe.
Report, edit, etc...Posted by in_a_biskit on 2006-04-23 at 02:44:02
True. I think it'd be more elegant to use a method that didn't require a dummy unit on the map, though:
  1. Always:
      Wait X milliseconds; Set switch 1.
  2. Elapsed time is 2 game seconds; Switch 1 is set:
      Display "You're on fastest speed!".
  3. Elapsed time is 2 game seconds; Switch 1 is cleared:
      Display "You're not on fastest speed!"; End game.
X is determined by trial and error, and chosen such that trigger 2 fires on fastest speed, but not on any slower speed. It would be approximately 1333 milliseconds in this case, I think. If it's inconvenient to test the speed at the very beginning of the game, use a countdown timer instead of elapsed time.
Next Page (3)