This topic is for discussion of map #1354: Mexxor #5
(http://knucklecracker.com/creeperworld3/queryMaps.php?query=thumbnailid&id=1354)
Author: Mexxor
Size: 120x129
Desc:
First map with CPRL in it Turned out to be a little too easy after all, but at least you'll have to do some work or you die :P #MexxorMaps #CPRL #Flip emitter #Connect emitter #Digitalis #Spores #AC assist #Antispores #Symmetrics #AE towers #Void
Oops, forgot to change the 5 to 4, well seems I have the title for my next map then
That was fun to play. I took a peek at your pre-release version, but my comments echoed with what others were saying. This is much improved and was a blast.
The only suggestion I would add is add popup text to your custom emitters, similar to the regular emitters, that shows the amount and interval of what they are producing (and obviously, have it change when they flip). That would give your custom emitters a touch of polish.
Looking forward to the next one.
Quote from: Grayzzur on November 14, 2014, 11:27:27 AM
That was fun to play. I took a peek at your pre-release version, but my comments echoed with what others were saying. This is much improved and was a blast.
The only suggestion I would add is add popup text to your custom emitters, similar to the regular emitters, that shows the amount and interval of what they are producing (and obviously, have it change when they flip). That would give your custom emitters a touch of polish.
Looking forward to the next one.
Thanks for the feedback
That would be kinda cool, the popup text, but unfortunately I have no Idea whatsoever how to do that. I just take things out of other maps and put them in mine :-\
Quote from: Mexxor on November 14, 2014, 12:05:09 PM
That would be kinda cool, the popup text, but unfortunately I have no Idea whatsoever how to do that. I just take things out of other maps and put them in mine :-\
You just put together a string (with whatever text and math you need) and call SetPopupText. You want to do it before that Delay call. Something like this. (Also converted your two opposite IF statements into a single if..else.)
CaptureEmitter.crpl
# CaptureEmitter.crpl
# Created on: 10/11/2013 6:28:22 PM
# ------------------------------------------
$amount:20
$interval:15
$cost:1
once
Self CONST_AMMO 0 SetUnitAttribute
1 ->state
endonce
Self CONST_AMMO GetUnitAttribute <-cost lt if
CurrentCoords <-amount AddCreeper
CurrentCoords true SetDigitalisGrowth
CurrentCoords 1 SetDigitalis
1 ->state
else
CurrentCoords 0 <-amount sub AddCreeper
Self CONST_AMMO Self CONST_AMMO GetUnitAttribute <-cost sub SetUnitAttribute
-1 ->state
endif
"Amt: " <-amount <-state mul concat
"
Interval: " <-interval 30.0 div 2 round concat concat
SetPopupText
<-interval Delay
Flip.crpl
# Flip.crpl
# Created on: 1/19/2014 4:11:46 PM
# ------------------------------------------
$State:1
$Delay:0
$Amt:20
$Interval:15
once
<-Delay Delay
endonce
if(CurrentCoords GetCreeper neq0)
CurrentCoords GetCreeper CurrentCoords GetCreeper abs div ->State
endif
CurrentCoords <-Amt <-State mul AddCreeper
"Amt: " <-Amt <-State mul concat
"
Interval: " <-Interval 30.0 div 2 round concat concat
SetPopupText
<-Interval Delay
Quote from: Grayzzur on November 14, 2014, 01:26:15 PM
Quote from: Mexxor on November 14, 2014, 12:05:09 PM
That would be kinda cool, the popup text, but unfortunately I have no Idea whatsoever how to do that. I just take things out of other maps and put them in mine :-\
You just put together a string (with whatever text and math you need) and call SetPopupText. You want to do it before that Delay call. Something like this. (Also converted your two opposite IF statements into a single if..else.)
Spoiler
CaptureEmitter.crpl
# CaptureEmitter.crpl
# Created on: 10/11/2013 6:28:22 PM
# ------------------------------------------
$amount:20
$interval:15
$cost:1
once
Self CONST_AMMO 0 SetUnitAttribute
1 ->state
endonce
Self CONST_AMMO GetUnitAttribute <-cost lt if
CurrentCoords <-amount AddCreeper
CurrentCoords true SetDigitalisGrowth
CurrentCoords 1 SetDigitalis
1 ->state
else
CurrentCoords 0 <-amount sub AddCreeper
Self CONST_AMMO Self CONST_AMMO GetUnitAttribute <-cost sub SetUnitAttribute
-1 ->state
endif
"Amt: " <-amount <-state mul concat
"
Interval: " <-interval 30.0 div 2 round concat concat
SetPopupText
<-interval Delay
Flip.crpl
# Flip.crpl
# Created on: 1/19/2014 4:11:46 PM
# ------------------------------------------
$State:1
$Delay:0
$Amt:20
$Interval:15
once
<-Delay Delay
endonce
if(CurrentCoords GetCreeper neq0)
CurrentCoords GetCreeper CurrentCoords GetCreeper abs div ->State
endif
CurrentCoords <-Amt <-State mul AddCreeper
"Amt: " <-Amt <-State mul concat
"
Interval: " <-Interval 30.0 div 2 round concat concat
SetPopupText
<-Interval Delay
Spoilered your codes to not make a big post :P
thanks for that, since I have no coding skills whatsoever I have to make do with what i can grab from other people, but I'll give it a try in my next map :)
If you need a little help on an idea you have in the future, post in the Coder's Corner. There are several of us usually willing to help out.
Fun, as usual, Mexxor! Keep up the neat maps. Love the symmetry and creative terrain constraints.
nice to know that grayzurr, and thanks stave