lua:scriptenvironments
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lua:scriptenvironments [2015/10/17 21:26] – [getpc() and getroom()] aethyn | lua:scriptenvironments [2016/02/08 04:45] (current) – [Script Environments] vodur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Script Environments ====== | ====== Script Environments ====== | ||
| - | With the exception of the [[: | + | All prog scripts run in the scripting |
| + | |||
| + | There are a few ways to share values between different script | ||
| ===== Simple interactions ===== | ===== Simple interactions ===== | ||
| Line 120: | Line 122: | ||
| In the function the " | In the function the " | ||
| + | |||
| + | getroom() is even more straightforward. Since ROOMs of a certain vnum always exist, using getroom() will always allow you to access that ROOMs properties and methods. For instance, we can turn a " | ||
| + | |||
| + | <code lua> | ||
| + | -- DEATH. Make the exit up from 22000 visible. | ||
| + | getroom(22000).up: | ||
| + | </ | ||
| + | |||
| + | Again, there' | ||
lua/scriptenvironments.1445117191.txt.gz · Last modified: 2015/10/17 21:26 by aethyn