→Details
m (Robot: converting/fixing HTML) |
|||
| Line 26: | Line 26: | ||
: 1. It'll do whatever you tell it, that includes calling functions, setting variables, whatever. | : 1. It'll do whatever you tell it, that includes calling functions, setting variables, whatever. | ||
: 2. | : 2. Errors in the script string produce the error popup (at least, they produce the UI_ERROR_MESSAGE event). | ||
: On the other hand, it's invaluable if you need to run code that is input by the player at run-time, or do self-generating code. | |||
: On the other hand, it's invaluable if you need to run | |||
== See Also == | == See Also == | ||
* The standard Lua function [[API loadstring]], which can overcome all of the problems of RunScript described above. | * The standard Lua function [[API loadstring]], which can overcome all of the problems of RunScript described above. | ||