Returns the base name of file path. Returns the current day of the month. Returns the current day of the year. Returns the number passed to the function followed by its suffix ("th", "nd", and so on). Returns the current hour. Returns true if Event Mode is turned on. Returns an Actor definition for the actor at sPath. If sPath points to a Lua file, any additional arguments will be passed to that script. Returns the current Minute. Returns the current month of the year. Returns the current second. Converts fSecs to Minutes:Seconds.Milliseconds format. Alias for . Alias for . Writes sString to log.txt. Aliased by . Writes sString to info.txt and log.txt as a warning. Aliased by . Flushes log files to disk. Set the fractional horizontal alignment of the Actor according to fAlign which should be a float in the range 0..1. An alignment of 0 is left aligned while an alignment of 1 is right aligned. See for the common case. Set the horizontal alignment of the Actor according to align. See for fractional alignment. Set the fractional vertical alignment of the Actor according to fAlign which should be a float in the range 0..1. An alignment of 0 is top aligned while an alignment of 1 is bottom aligned. See for the common case. Set the vertical alignment of the Actor according to align. See for fractional alignment. Set the x position of the Actor to xPos. Set the y position of the Actor to yPos. Set the z position of the Actor to zPos. This Actor represents a playable sound. There are two attributes that can be set on load.
* SupportPan - Let the sound pan from side to side.
* SupportRateChanging - Let the sound change rate and pitch.
Returns the that can be played by this Actor. Loads the sound at sPath. Play the sound. Play the sound on the given player's side. You must set SupportPan = true on load.
Returns the text. If bJitter is true, move each character of the string around by a small random amount. Set the maximum height of the unzoomed text to fHeight. If fHeight is 0, then there is no maximum height. Set the maximum width of the unzoomed text to fWidth. If fWidth is 0, then there is no maximum width. If true, set each character of the text in turn to the rainbow colors in the metrics BitmapText::RainbowColor#. Set the text to sText. Add iSpacing pixels of padding between lines of text. Wrap the unzoomed text at iWidth pixels. If you or by x and you want the text wrapped at width, then you should use wrapwidthpixels(width/x). Return the corresponding to sID. Returns the name of the game such as "dance" or "pump". Return the first of the corresponding to game. Return the localized string representation of st. Set the music volume to fVolume for fDuration seconds. Return the sound balance for pn. Play the sound at sPath one time. Returns true if any player has performed a feat worthy of ranking. The second argument is optional. Apply the GameCommand represented by sCommand for pn, if given. See . Returns true if enough credits have been inserted to join. Returns the environment table. See . Returns the current . Return the number of inserted but unused coins. This number is decremented when players join. Return the number of coins needed to join based on the current coin and premium modes as well as the number of people joined, if that matters for the premium mode. See and . The s in a are numbered sequentially starting from 0. Return the number of the current . Return the current . Return the current . Return the current . Return the current . Return the current . Return a variable number of arguments based on the being played by all players. For each distinct being played by the players, in increasing order, the difficulty and description of the is returned as strings.
For example,
local credits = {GAMESTATE:GetCurrentStepsCredits()};
will make a table of the difficulties and descriptions.
Return the current . Return the current . Return a string representation of the default song options. Return the easiest of the currently selected steps by all players. For example, if player 1 has selected Hard steps and player 2 has selected Medium steps, Medium will be returned. Return the Edit Local or nil if it does not exist. Return the source for the editor or nil if it does not exist. Return the current random seed for the game. Return true if the gameplay lead in is enabled. If false, gameplay begin immediately. Returns an array of s corresponding to Human players.
Return the state for pn. Broadcast the message to all listeners subscribed to sMessage. The second argument is an optional table of parameters. It may be omitted or explicitly set to nil. Return the value of the preference sPreference. Set the value of the preference sPreference to value. Reset preference sPreference to the default value. Return the height of the display. Return the width of the display. Return an array of connected input device descriptions. See for loading a sound. Set the value of sProperty to fVal. The supported properties depend on how the associated was loaded. Set the pitch to fPitch. The associated have SupportsRateChanging = true on load. Set the speed (that is, the rate at which the sound plays) to fSpeed. The associated must have SupportsRateChanging = true on load. Returns true if a single has its NoteField centered. Returns the for the specified pn. Returns the next in the current . Returns the displayed artist of the song. Returns the displayed full title of the song, including subtitle. Returns the displayed main title of the song. Returns the transliterated artist of the song. Returns the transliterated full title of the song, including subtitle. Returns the transliterated main title of the song. Returns true if the song meets the criteria for a "Long Version". Returns true if the song meets the criteria for "Marathon" length.
Horizontal alignment. See . Vertical alignment. See .