This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:refdeleteglobal [2016/12/02 23:33] – external edit 127.0.0.1 | prpl:refdeleteglobal [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <- [[.: | + | <- [[.: |
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | string |
| === Description === | === Description === | ||
| + | |||
| + | Finds a global variable with name s1 and deletes it from the global heap. Global variables can be accessed by any script on the map. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| + | # In one script: | ||
| + | 42 -> | ||
| + | # In any script on the same map after that point: | ||
| + | " | ||
| + | -? | ||
| + | " | ||
| + | else | ||
| + | " | ||
| + | endif | ||
| + | trace | ||
| + | # Puts " | ||
| + | </ | ||