User Tools

Site Tools


prpl:refwriteglobal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
prpl:refwriteglobal [2016/12/02 18:33] – external edit 127.0.0.1prpl:refwriteglobal [2017/10/24 18:18] (current) – Fixed Category GameGibu
Line 1: Line 1:
-<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]+<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#vars_and_functions|Vars and Functions]]
  
-=====  REFWRITEGLOBAL  =====+=====  ->!* (Ref Write Global)  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+value, string none | [ x1 s1 - ] |
  
  
 === Description === === Description ===
 +
 +Stores value x1 in global heap variable of name s1. Global variables can be accessed by any script on the map.
  
 === Examples === === Examples ===
 +<code prpl>
 +# In one script:
 +42 "myGlobalVariable" ->!*
 +# In any script on the same map after that point:
 +"myGlobalVariable" <-!* trace
 +# Shows 42 in the debug window.
 +</code>
 <code> s1 = GetStringFromStack();  <code> s1 = GetStringFromStack(); 
    
 </code> </code>
  
prpl/refwriteglobal.1480721630.txt.gz · Last modified: 2016/12/02 18:33 by 127.0.0.1