Macros
From Iris2
Ghoulsblade (Talk | contribs) |
Ghoulsblade (Talk | contribs) |
||
| Line 147: | Line 147: | ||
MacroRead_TargetStat(statname) -- read stats of selected target, statname can be one of curHits,maxHits | MacroRead_TargetStat(statname) -- read stats of selected target, statname can be one of curHits,maxHits | ||
</pre> | </pre> | ||
| - | + | ||
| + | === notes === | ||
<p>if you want to make a script that runs longer or waits for something, you need to start it as a job/coroutine: | <p>if you want to make a script that runs longer or waits for something, you need to start it as a job/coroutine: | ||
| Line 162: | Line 163: | ||
<p>not all commands from uo are implemented yet, please tell us which ones you consider most important of the missing ones. | <p>not all commands from uo are implemented yet, please tell us which ones you consider most important of the missing ones. | ||
</p><p><br> | </p><p><br> | ||
| + | |||
| + | for a list of all available functions see http://zwischenwelt.org/trac/iris/browser/trunk/lua/lib.macrolist.lua | ||
| + | |||
for complex script see [[Scripting]] | for complex script see [[Scripting]] | ||
