This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
prpl:getshipnamefromslot [2016/12/17 22:39] – planetfall | prpl:getshipnamefromslot [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 10: | Line 10: | ||
int ARG1: Slot ID. Valid slot IDs are 0 to 23 inclusive. | int ARG1: Slot ID. Valid slot IDs are 0 to 23 inclusive. | ||
- | Returns the name of the ship associated with a given build slot. This is the same name that appears on the build button. | + | Returns the name of the ship associated with a given build slot. This is the same name that appears on the build button. If the slot with the given ID is empty, an empty string is returned. If the Slot ID is invalid GetShipNameFromSlot returns nothing. |
=== Examples === | === Examples === |