User Tools

Site Tools


4rpl:commands:registerscriptvar

Differences

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

Link to this comparison view

4rpl:commands:registerscriptvar [2021/02/15 18:25] – created virgilw4rpl:commands:registerscriptvar [2024/03/29 09:11] (current) – page removed Karsten75
Line 1: Line 1:
-~~NOTOC~~ 
-<=[[4rpl:start| Index]] 
  
-:!: Available in version 1.3 and later. 
-====== RegisterScript====== 
-RegisterScript(<-name) 
- 
-===== Description ===== 
-Registers the current script instance with a name. This name can be used with [[GetRegisteredScriptVar]]. If the same name is used as another script instance, this call will deregister the other script instance and replace it with the new one. A script on a unit in a unique instance. Each global script instance is also unique. Note that registering a script is NOT persistent. It will not be saved in a save game file. You must reregister a script. 
- 
-===== Examples ===== 
-<code 4rpl> 
-RegisterScript("MyScript") 
-</code> 
- 
-<=[[4rpl:start| Index]] 
4rpl/commands/registerscriptvar.1613431546.txt.gz · Last modified: 2021/02/15 18:25 by virgilw