Difference between revisions of "Help/Variable"

From DikuMUD Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
Variables are basically string lists that can be used in [[Help/Trigger|triggers]] and can be defined as such:  
 
Variables are basically string lists that can be used in [[Help/Trigger|triggers]] and can be defined as such:  
  
   variable friends papi|john|aja|bruce|cityguard|the janitor
+
   {variable friends papi|john|aja|bruce|cityguard|the janitor}
 +
 
 +
To list current variables:
 +
 
 +
  {variable}
 +
 
 +
To remove variable:
 +
 
 +
  {variable friends}
  
 
To recall a variable for use in a trigger, you will notate it as (@variablename) or in this example (@friends).  
 
To recall a variable for use in a trigger, you will notate it as (@variablename) or in this example (@friends).  
This is recalled in the example below.
+
See the trigger page for more help.
  
 
See also:
 
See also:
 
   {Help Trigger}
 
   {Help Trigger}
 
   {Help Alias}
 
   {Help Alias}

Latest revision as of 07:45, 21 September 2020

Variable

Variables are basically string lists that can be used in triggers and can be defined as such:

 {variable friends papi|john|aja|bruce|cityguard|the janitor}

To list current variables:

 {variable}

To remove variable:

 {variable friends}

To recall a variable for use in a trigger, you will notate it as (@variablename) or in this example (@friends). See the trigger page for more help.

See also:

 {Help Trigger}
 {Help Alias}