Advanced Int64 Object
From FusionWiki
| Advanced Int64 Object | |
|---|---|
| General Information | |
| Author: | LB |
| Release Date: | 2010 |
| Status: | Released |
| Last updated: | August 15, 2010 |
| Version: | 1.0 |
| Build: | 249 |
| Developer-only: | No |
| Website: | |
| Download: | Forum Post |
| Runtime Versions | |
| HWA: | No Difference |
| Flash: | No |
| Java: | No |
| Java Mobile: | No |
| Vitalize!: | No |
| Unicode: | No |
The Advanced Int64 Object is an extension for Multimedia Fusion 2 written by LB. It allows you to have multiple named 64-bit integers, and supports both signed and unsigned. (The original Int64 object could only handle one signed 64-bit integer) You may also loop through each of the variables that currently exist. As an additional bonus, you can get and set each of the bytes that make up the variables. This is useful for sending/saving/loading the variables.
NOTICE: All parameters that ask for a 64-bit number must be entered as a string. This is because it is currently the easiest way to pass the numbers. The expressions to get the values of the 64-bit numbers also return the numbers as a string, for the same reason.
Actions
- Unsigned
- Set Variable - Sets the value of a variable by name.
- Add to Variable - Adds to the value of a variable by name.
- Subtract from Variable - subtracts from the value of a variable by name.
- Multiply Variable - Multiplies the value of a variable by name.
- Divide Variable - Divides the value of a variable by name.
- Raise Variable to Power - Raises the value of a variable to a power by name.
- Perform Modulo on Variable - Performs a modulus operation on the value of a variable by name; as in VARIABLE mod X
- Set Byte in Variable - Sets one of the 8 Bytes in a variable to the specified value by name.
- Delete Variable - Deletes a variable by name.
- Delete all Variables - Deletes all Unsigned Variables in the object.
Note: All of the above actions also exist for Signed
- Loop Through Variables - Loops through all variables of either signed, unsigned, or both. You specify via the parameter.
Conditions
- Unsigned
- Variable A == Variable B [Negatable] - Checks if Variable A is equal to Variable B (by name)
- Variable A >= Variable B - Checks if Variable A is greater than or equal to Variable B (by name)
- Variable A > Variable B - Checks if Variable A is greater than Variable B (by name)
- Variable A <= Variable B - Checks if Variable A is less than or equal to Variable B (by name)
- Variable A < Variable B - Checks if Variable A is less than Variable B (by name)
- On Variable Loop [Immediate] - Triggers, like a fastloop, for the variable loop action.
Note: All of the above conditions also exist for Signed
Expressions
- Get Unsigned Variable (GetUnsignedVar$) - Returns the value of an unsigned 64-bit integer by name
- Get Signed Variable (GetSignedVar$) - Returns the value of a signed 64-bit integer by name
- Get Unsigned Variable Byte (GetUnsignedVarByte) - Returns the value of a byte from an unsigned 64-bit integer by name
- Get Signed Variable Byte (GetSignedVarByte) - Returns the value of a byte from a signed 64-bit integer by name
- Loop: Get Unsigned Variable Name (GetUnsignedVarName$) - Returns the name of the unsigned 64-bit variable currently selected by the loop
- Loop: Get Signed Variable Name (GetSignedVarName$) - Returns the name of the signed 64-bit variable currently selected by the loop
- More to come in the next version, such as performing operations on numbers without needing to make new variables.
