<- PRPL reference <- Vars and Functions

->!* (Ref Write Global)

ArgumentsResultNotation
value, string none [ x1 s1 - ]

Description

Stores value x1 in global heap variable of name s1. Global variables can be accessed by any script on the map.

Examples

# In one script:
42 "myGlobalVariable" ->!*
# In any script on the same map after that point:
"myGlobalVariable" <-!* trace
# Shows 42 in the debug window.
		s1 = GetStringFromStack();