Call
call runs another script file. When that script reaches exit or its last line, the
calling script goes on with the line after the call.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
file |
The script to run. A relative path starts from #CurPath, the folder of EasyUOReforged.exe. When the file is not found as written, .txt and then .euo are added. |
parameter |
Optional values passed to the script. In it, %1, %2, … hold them and %0 holds how many there are, as with gosub. |
Details
Section titled “Details”- File not found: nothing happens and the script goes on with the next line.
- Variables are shared between the two scripts. A called script cannot return a value, so set a
variable; see
exitfor an example. - Spaces in the path: a space separates parameters, so
C:\My Scripts\a.euois read as two words. Glue the parts together with commas and#spc:call C:\My , #spc , Scripts\a.euo.
Example
Section titled “Example”call greet.euo Jim Bobhaltgreet.euo, in the folder of EasyUOReforged.exe:
display ok Hello %1 and %2exitSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.