This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| crpl:docs:getdigitalis [2013/01/14 19:02] – created chani | crpl:docs:getdigitalis [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | TODO | + | <- [[crpl: |
| + | ===== GetDigitalis | ||
| + | |||
| + | ^Arguments^Result^Notation^ | ||
| + | |X, Y|Amount of Digitalis at Coordinates |'' | ||
| + | |||
| + | |||
| + | === Description === | ||
| + | Pushes the amount of digitalis at map coordinates X,Y. | ||
| + | Digitalis will be between 0 and 1. | ||
| + | 0 means no Digitalis is present and | ||
| + | 1 means full health Digitalis is present. | ||
| + | === Examples === | ||
| + | < | ||
| + | once | ||
| + | 60 SetTimer0 | ||
| + | endonce | ||
| + | CurrentCoords GetDigitalis 1 eq if | ||
| + | GetTimer0 eq0 if | ||
| + | CurrentCoords 20 SetCreeper | ||
| + | 60 SetTimer0 | ||
| + | endif | ||
| + | endif</ | ||