This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crpl:docs:setimage [2013/01/14 19:04] – created chani | crpl:docs:setimage [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TODO | + | |
+ | <- [[crpl: | ||
+ | ===== SetImage | ||
+ | |||
+ | ^Arguments^Result^Notation^ | ||
+ | |A unit UID, image slot, and custom image name| |'' | ||
+ | |||
+ | |||
+ | === Description === | ||
+ | Sets the unit image for the specified slot of the CRPL Core. Slot is an arbitrary name used to identify which image to set. The slot named " | ||
+ | The image name must refer to one of the image names that can be set on a unit. Valid strings include " | ||
+ | |||
+ | A single CRPL Core has a maximum limit of the number of images that can be used, which is set at **1024 images**. However, you are only allowed to add 1023 images before functionality start to break. Adding a 1024th image will lock up your ability to add or remove further images from the core, so make sure not to reach this limit. Note that if you're creating an overlay and opt to display it using multiple cores in chunks to surpass this limitation, a 32x32 grid of images (exactly 1024) is already too large. | ||
+ | === Examples === | ||
+ | < | ||
+ | # Set the primary image for the current unit to whatever | ||
+ | # image is loaded in " | ||
+ | Self " | ||
+ | </ |