This is an old revision of the document!
~~DISCUSSION~~
<-CW3 Home <-CRPL Home <-Interacive tutorials
Here I'll show you how to create your custom emitter. What will it have:
I will also cover how to turn it into a slip emitter or flip emitter.
It won't (as that's not what an emitter should do, also remember the game should be fair to the player):
Let's start simple with a custom image. You can easily skip this step as the game has a special emitter image built-in. Go HERE or HERE, download the emitter, open the map, go to edit -> units -> custom images, go to 64×64 and select the downloaded emitter.
To attach the image to a crpl core, simply double-click it and select the correct image in the image dropdown menu.
We want the script to be very portable, so instead of coding the values into the script, we'll use input variables. These will be Amt, Delay, AmtIncrease, AmtMax, DeathMode and DeathAmt.
And as it is an emitter, simple code to make it emit creeper.
CurrentCoords <-Amt SetCreeperNoLower <-Delay Delay
You probably need a good popup text to make sure people think it's a normal emitter. Simply add these 2 lines and you're done.
"Amt: " <-Amt concat " " concat "Interval: " <-Delay 30.00 div 2 Round concat concat SetPopuptext
The hardest part probably, but the most important for huge maps to prevent power zone spam.