This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:setshipenergycap [2016/12/02 23:34] – external edit 127.0.0.1 | prpl:setshipenergycap [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | shipUID int | | [ shipUID int- ] | |
| Line 10: | Line 10: | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| + | #given: | ||
| + | #shipUID ->Ship | ||
| + | |||
| + | <-Ship 50 setShipEnergyCap | ||
| + | # Sets ship energy cap to 50 | ||
| + | # A practical " | ||
| + | |||
| + | <-Ship dup getShipEnergyCap 1 setShipEnergyCap | ||
| + | # Energy cap increases by 1 per tick. ... not very good for energy mines... | ||
| + | </ | ||