Showing posts with label Timer. Show all posts
Showing posts with label Timer. Show all posts

Sunday, February 27, 2011

Building - Byte's Interactive Building Class, detailing the At trigger and Timer command

For anyone who missed it, Byte taught an excellent class detailing AT trigger and Timer command today.  This topic was of particular interest to me, because I love building games and characters you can interact with.  Virtual buildings and cities are great, but what's the point if they're lifeless?

Both of these new features exist to make interactive building a bit easier, and they expand upon what we could do originally with astart scripting.  For those of you who are lost, here's a rundown:

AT trigger - The at trigger will activate commands after a set amount of time, or at a scheduled time in VRT.
Byte:    The at trigger has two uses.  It is used to either trigger a set of commands at a certain point during a timer, or to trigger a set of commands in sync with the VRT clock.
TIMER command - The timer command creates a timer in memory that allows a user to activate events after a set amount of time.

Byte:    First off the timer command can be used with any trigger, even the at trigger, to create, reset, or stop a timer with a given name.
Byte:    Every timer has a duration, which is the number of milliseconds the timer will last for.
Byte:    An example of a timer called ABC with a duration of 1 second would be:  create timer ABC 1000
Byte:    Timers have multiple parameters, though.  They take the form: <trigger> timer tmName duration [loop=1] [stop | reset] [global]