This old mod I have is from 2007 called:
fpsc-gameMOD
It has:
FILEEXIST
is true when CHECKFILE was successful
STORELEVEL=filename
stores the current level settings in the specified file name
LOADLEVEL=filename
loads a level previously stored in filename
Can any mods do this? Check for a file or write a file?
Thanks!
Conditions
----------------------------------------------------------------
KEYPRESSED=X
is true if the user presses the key with the SCANCODE in X
ENTITYTIMERGREATER=X
is true if X exceeds the entity timer
PLRLOWER=X
is true when player is X units lower than entity
VAR1=X
is true when the numeric value of variable 1 equals X
VAR2=X
is true when the numeric value of variable 2 equals X
VAR1LESS=X
is true when the numeric value of variable 1 is less than X
VAR1GREATER=X
is true when the numeric value of variable 1 is greater than X
VARA=X
is true when the alpha-numeric value of variable A equals X
VARB=X
is true when the alpha-numeric value of variable B equals X
FILEEXIST
is true when CHECKFILE was successful
LEVEL=X
is true when the current level equals X
LEVELSTART
is true once for each level
TARGETACTIVE=X
is true if the current target is active and X is 1 or the current
target is inactive and X is 0
Actions
----------------------------------------------------------------
STORELEVEL=filename
stores the current level settings in the specified file name
LOADLEVEL=filename
loads a level previously stored in filename
ENTITYTIMERSTART
resets the entitiy timer
SYNCRATE=X
sets the sync rate of the game
VAR1=X
sets variable 1 to the numeric value X
VAR2=X
sets variable 2 to the numeric value X
VARA=X
sets variable A to the alpha-numeric value X
VARB=X
sets variable B to the alpha-numeric value X
VAR1ADD=X
adds the numeric value X to the value of variable 1
VAR1SUB=X
subtracts the numeric value X to the value of variable 1
VAR1MUL=X
multiplies the numeric value X to the value of variable 1
VAR1DIV=X
divides the numeric value X to the value of variable 1
VARACONCAT=X
concats the alpha-numeric value in variable A with X
SETVAR1=X
writes a numeric value of an entity data given in X to variable 1
writable data:
state
health
plrhealth
quantity
plrdist
plrusingaction
shotdamage
activated
targetindex
SETVAR2=X
writes a numeric value of an entity state given in X to variable 2 (see SETVAR1 for more details)
SETVARA=X
writes an alpha-numeric value of an entity data given in X to variable A
writable data:
name
SETVARB=X
writes an alpha-numeric value of an entity data given in X to variable B
EXECFILE=FileName
Executes a file
EXECFILEWAIT=Filename
executes a file and waits till it's terminated
CALLDLL=DllFile|FuncName
calls the function "FuncName" in a Dll "DllFile" and passes 4 pointers. These point to values in
Var1, Var2, VarA, VarB
CHECKFILE=FileName
Checks if a file exist. Use the FILEEXIST condition to get the result
DELETEFILE=FileName
Deletes a file
SETTARGETNAME=X
sets an entity named X as the current target
Using Variables
----------------------------------------------------------------
This mods provides four global variables. Two of them are numeric (variables 1 and 2), and two are
alpha-numeric (A and B). Within the scripts you can use these variables instead of literal values.
Example:
:state=%1:state=%2
The preceding % sign tells the script interpreter that you want to use a variable instead of a
literal variable. In the above example the interpreter checks whether state equals the value in
variable 1 and if so, sets state to the value in variable 2.