Difference between pages "GLOBALS GLOBAL-VARIABLES GLOBAL-VARS GVARS" and "AT WAT MAT OAT"

From 4Dimensions
(Difference between pages)
Jump to: navigation, search
(Bot: Automated import of articles)
 
m
 
Line 1: Line 1:
'''GLOBALS GLOBAL-VARIABLES GLOBAL-VARS GVARS'''
+
'''AT WAT MAT OAT'''
 
[[Category:Help Files]]
 
[[Category:Help Files]]
 +
[[Category:Building]]
  
GLOBALS GLOBAL-VARIABLES GLOBAL-VARS GVARS
+
%AT% WAT MAT OAT
  
GLOBALS GLOBAL-VARIABLES GLOBAL-VARS GVARS
+
%AT% WAT MAT OAT
  
GLOBALS GLOBAL-VARIABLES GLOBAL-VARS GVARS
+
%AT% WAT MAT OAT
  
  
  
Usage: global variablename
+
%at% <target> <command>
  
* To make a variable 'reachable' from other scripts it has to be made 'global'.
 
* In this case I make a local known var %has_bribed_guard% and make it global.
 
* It's a good idea to use this in conjunction with context.
 
global has_bribed_guard
 
  
  
Used to change a variable from local to global. If a global variable is
+
Using %at% will perform the command in the room where target is found.
  
modified, this command must be used to update the global contents as well.
 
  
  
 +
Example: {cRTSTAT 19{c0
  
Example: {cRTSTAT 45{c0
+
{cRTSTAT 20{c0
 
 
 
 
 
 
See Also: [[VARIABLES]]  [[CONTEXT]]
 

Latest revision as of 16:10, 13 July 2017

AT WAT MAT OAT

%AT% WAT MAT OAT

%AT% WAT MAT OAT

%AT% WAT MAT OAT


%at% <target> <command>


Using %at% will perform the command in the room where target is found.


Example: {cRTSTAT 19{c0

{cRTSTAT 20{c0