$definevariable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Linked variable to Wikipedia page)
Line 1: Line 1:
The '''$definevariable''' [[QC command]] creates a [[variable]]. The variable's name, if surrounded by <code>$</code>s, will be substituted by its value whenever encountered.
The '''$definevariable''' [[QC command]] creates a {{wiki|variable}}. The variable's name, if surrounded by <code>$</code>s, will be substituted by its value whenever encountered.


{{note|Variables do not work within "quote blocks"!}}
{{note|Variables do not work within "quote blocks"!}}

Revision as of 23:03, 25 July 2012

The $definevariable QC command creates a Wikipedia icon variable. The variable's name, if surrounded by $s, will be substituted by its value whenever encountered.

Note.pngNote:Variables do not work within "quote blocks"!

This command is a 'lite' version of $definemacro.

Example

$definevariable baseFile "fighter1"

$sequence attack $baseFile$_Attack
$sequence run $baseFile$_Run
$sequence idle $baseFile$_Idle