$definevariable
Jump to navigation
Jump to search
The $definevariable QC command creates a variable. The variable's name, if surrounded by
$
, will be substituted by its value whenever encountered.






This command is like a 'lite' version of $definemacro.
Example
$definevariable baseFile "fighter1"
$sequence attack $baseFile$_Attack // results in -> fighter1_Attack when resolved
$sequence run $baseFile$_Run
$sequence idle $baseFile$_Idle
Here's an example of passing the variable to a macro
$definevariable baseFile "fighter1"
$definemacro makefighteranim fightername framerate \\
$sequence attack $baseFile$_Attack ( fps $framerate$ } \\
$sequence run $baseFile$_Run { fps $framerate$ } \\
$sequence idle $baseFile$_Idle { fps $framerate$ } \\
$makefighteranim $basefile$ 30