This topic is for discussion of map #5078: Artifact of odin Mortar -Concept-
(http://knucklecracker.com/creeperworld3/queryMaps.php?query=thumbnailid&id=5078)
Author: Nebur7420
Size: 99x99
Desc:
This is my first attempt at CRPL. I still have much to learn, I will include the code on the forrum post :). Please give me some feeback or ideas on what to make :).
Hello,
As prommised here is the code I used for the mortar.
Change the max ACammo in de CRPL unit to change the required ammo to shoot.
# Test.crpl
# Created on: 12/1/2017 3:42:57 PM
# ------------------------------------------
if(lt(sub(GetUnitAttribute(Self CONST_MAXAMMOAC) 1) GetUnitAttribute(Self CONST_AMMOAC)))
FireAoo("CONVERT" GetDeepestCreeperCell)
SetUnitAttribute(Self CONST_AMMOAC 0)
endif
:GameLoaded
SetUnitAttribute(self CONST_REQUESTACPACKETS true)