V1.09 introduced the stock variable system.
Here's how it works.
Stock FPSC Variables -
-No declaration needed
-Must specify which variable to alter before making changes or checks against that variable
-Uses Global and Local variables
-Variables are defined as numbers
-Limit of 99 Global/Local Vars (Confirmation on this?)
-Can only hold integers (Whole Numbers)
-Variables cannot be used
with other commands
Ply's Mod Variables -
-Declaration required
-Do not need to use seperate actions to specify variables for checking/changing
-Only Global variables, no Local variables
-Variables can be given names
-No limit to number of variables
-Can hold float values (Decimal Numbers)
-Variables may be given as numeric parameters to any other command
How to use them.
Stock FPSC variables:
Specify which variable to be used
Quote: ":ALWAYS:globalvar=1,localvar=1"
(This is an example, you will not be specifying global
and local vars at the same time, only one can be changed at a time)
Add to the variable
Quote: ":state=1:incvar=3"
Will add 3 to the specified variable
Sub from the variable
Quote: ":state=1:decvar=5"
Will subtract 5 from the specified variable
Ply's Mod variables:
Declare the variable
Quote: ":state=0:dimvar=MyVariable"
Will declare a variable named "MyVariable". You can now use this variable in any script.
(NOTE: You will only need to do this once in order to use that variable)
Add to the variable
Quote: ":state=1:addvar=MyVariable 4"
Will add 4 to the variable named "MyVariable"
Sub from the variable
Quote: ":state=2:subvar=MyVariable 22"
Will subtract 22 from the variable named "MyVariable"
There's a lot more to it, but that's what you wanted to know. The stock system is rather limiting for calculations and the variables can only be increased, decreased, set, and checked.... and that's it. Ply's Mod variables can be set, increased, decreased, multiplied, divided, modulated (sp), checked, and used as parameters for other commands. The only downside I see to the Ply's Mod system is that it doesn't have any local variables...
The one and only,
Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.