Difference between revisions of "Click Expression Reference"
From Mario Fan Games Galaxy Wiki
m (oh wow a couple of obscure 'hidden' ones i forgot) |
m (fixing stupid oversights and misc stuff) |
||
Line 12: | Line 12: | ||
{{ClickExpRef/Row| expression = Appdrive$ | desc = Returns the drive letter the application is found on.}} | {{ClickExpRef/Row| expression = Appdrive$ | desc = Returns the drive letter the application is found on.}} | ||
{{ClickExpRef/Row| expression = Appdir$ | desc = Returns the path where the application can be found, minus the drive letter.}} | {{ClickExpRef/Row| expression = Appdir$ | desc = Returns the path where the application can be found, minus the drive letter.}} | ||
− | {{ClickExpRef/Row| expression = Apppath$ | desc = | + | {{ClickExpRef/Row| expression = Apppath$ | desc = Shortcut for ''Appdrive$ + Appdir$''.}} |
{{ClickExpRef/Row| expression = AppTempPath$ | desc = Returns the path of the temporary folder where the application is extracted during runtime.|avail = {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = AppTempPath$ | desc = Returns the path of the temporary folder where the application is extracted during runtime.|avail = {{TGF2}} {{MMF2}}}} | ||
{{ClickExpRef/Row| expression = Appname$ | desc = Returns the name of the executable, minus ".exe" or ".ccn".}} | {{ClickExpRef/Row| expression = Appname$ | desc = Returns the name of the executable, minus ".exe" or ".ccn".}} | ||
Line 23: | Line 23: | ||
{{ClickExpRef/Row| expression = Hex$( integer ) | desc = Converts an integer to a hex string in the form ''0xNNNNNNNN''. The resulting hex string past the '0x' may be up to 8 characters, but can be less.|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = Hex$( integer ) | desc = Converts an integer to a hex string in the form ''0xNNNNNNNN''. The resulting hex string past the '0x' may be up to 8 characters, but can be less.|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | ||
{{ClickExpRef/Row| expression = Bin$( integer ) | desc = Converts an integer to a binary string in the form ''0bNNNNNNNN''. The resulting binary string past the '0b' may be up to 32 characters, but can be less.|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = Bin$( integer ) | desc = Converts an integer to a binary string in the form ''0bNNNNNNNN''. The resulting binary string past the '0b' may be up to 32 characters, but can be less.|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | ||
− | {{ClickExpRef/Row| expression = abs( number ) | desc = Returns the absolute value of a number (removes the negative sign | + | {{ClickExpRef/Row| expression = abs( number ) | desc = Returns the absolute value of a number (removes the negative sign if present).|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} |
{{ClickExpRef/Row| expression = ceil( float ) | desc = Forces a float to round to the nearest number larger than it. The result remains a float. (Ex: 3.2 -> 4.0; -3.2 -> -3.0)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = ceil( float ) | desc = Forces a float to round to the nearest number larger than it. The result remains a float. (Ex: 3.2 -> 4.0; -3.2 -> -3.0)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | ||
{{ClickExpRef/Row| expression = floor( float ) | desc = Forces a float to round to the nearest number smaller than it. The result remains a float. (Ex: 4.8 -> 4.0; -4.8 -> -5.0)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = floor( float ) | desc = Forces a float to round to the nearest number smaller than it. The result remains a float. (Ex: 4.8 -> 4.0; -4.8 -> -5.0)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | ||
Line 38: | Line 38: | ||
{{ClickExpRef/Row| expression = acos( angle ) | desc = Returns the arccosine of the angle (provided in degrees).|avail={{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = acos( angle ) | desc = Returns the arccosine of the angle (provided in degrees).|avail={{MMF1}} {{TGF2}} {{MMF2}}}} | ||
{{ClickExpRef/Row| expression = atan( angle ) | desc = Returns the arctangent of the angle (provided in degrees).|avail={{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = atan( angle ) | desc = Returns the arctangent of the angle (provided in degrees).|avail={{MMF1}} {{TGF2}} {{MMF2}}}} | ||
− | {{ClickExpRef/Row| expression = atan2( y_delta, x_delta ) | desc = Returns the angle between two points (returns in degrees). x_delta is (x2 - x1), | + | {{ClickExpRef/Row| expression = atan2( y_delta, x_delta ) | desc = Returns the angle between two points (returns in degrees). x_delta is (x2 - x1), (y2 - y1) for y_delta. | avail = {{TGF2}} {{MMF2}}}} |
{{ClickExpRef/Row| expression = not( integer ) | desc = Performs and returns a bitwise Not on an integer. (Ex: not(56) = -57)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = not( integer ) | desc = Performs and returns a bitwise Not on an integer. (Ex: not(56) = -57)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | ||
{{ClickExpRef/Row| expression = left$( string, length ) | desc = Returns the left portion of ''string'' with a given length.|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = left$( string, length ) | desc = Returns the left portion of ''string'' with a given length.|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | ||
Line 134: | Line 134: | ||
{{ClickExpRef/Row| expression = pow | desc = Raises the left number to the power of the right number.|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = pow | desc = Raises the left number to the power of the right number.|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | ||
{{ClickExpRef/Row| expression = and | desc = Performs bitwise And on two integers. (Ex: 15 and 24 = 8; 00001111 and 00011000 = 00001000)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | {{ClickExpRef/Row| expression = and | desc = Performs bitwise And on two integers. (Ex: 15 and 24 = 8; 00001111 and 00011000 = 00001000)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} | ||
− | {{ClickExpRef/Row| expression = or | desc = Performs bitwise Or on two integers. (Ex: 15 or 24 = 31; 00001111 | + | {{ClickExpRef/Row| expression = or | desc = Performs bitwise Or on two integers. (Ex: 15 or 24 = 31; 00001111 or 00011000 = 00011111)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} |
− | {{ClickExpRef/Row| expression = xor | desc = Performs bitwise Xor on two integers. (Ex: 15 xor 24 = 23; 00001111 | + | {{ClickExpRef/Row| expression = xor | desc = Performs bitwise Xor on two integers. (Ex: 15 xor 24 = 23; 00001111 xor 00011000 = 00010111)|avail = {{MMF1}} {{TGF2}} {{MMF2}}}} |
[[Category:Click]] | [[Category:Click]] |
Revision as of 05:50, 21 February 2009
The following is a list of the expressions that are used in the various Click programs.
Note: this list only includes expressions for the default system objects and the Expression Editor dialog; extensions' expressions are not listed here. Some of these expressions may only be available in newer builds of specified programs. Expression names are not case-sensitive. Expressions including a $ return strings, and those without generally return numbers (but there is an exception in this list [and within some other extensions] which returns a string: key( "Player" )). TGF1 may use "level" instead of "frame" in some cases
Contents
Special Object
Sound Object
Storyboard Controls Object
Timer Object
Create Object
total objects | Returns the count of all objects on the frame. |
Mouse and Keyboard Object
Player Objects
Expression Editor
includes operators