Damaging digitalis? (a bit more than a newbie question)

Started by thegamemaster1234, March 26, 2015, 10:48:20 PM

Previous topic - Next topic

thegamemaster1234

Alright, this is my first post here, here goes...

So I have a custom allied unit that fires at creeper. I have the basic functionality required for the unit to target and fire at creeper, and the bullet is capable of damaging creeper and potentially dropping an AC payload. However, the CRPL docs don't seem to say enough about digitalis (or damaging it in a radius) for me to really understand how to make it properly damage D like blasters/mortars/strafers/berthas do.

To me, "full health D" is "D with creeper on it" and "no D" is no D at all. This lack of specification made me confused about whether the "D" in question is really just the creeper spreading on the DGrowth, and that setting it to 0 would "kill" the creeper on the DGrowth (hence the apparent differentiation between D and DGrowth). Now I want to know how the normal game units handle damaging D (do blasters and mortars deal different amounts of D damage? at what radius?), and which levels of D (from 0 to 1,000,000) cause it to change from "empty" to "damaged" to "full."

A script that would allow me to damage all D in a radius would be nice, too. (working with square coordinates and circular areas makes my head hurt)

Just to get this little bit out of the way, I'm not new to programming or Creeper World, just to this forum. :)

warren

Digitalis growth is different from digitalis. Ignore it unless you want to create new digitalis pathways.

The amount that digitalis is damaged by most weapons seems to be about .75. Two hits from anything will generally destroy digitalis.

Creeper has nothing to do with digitalis.

Edit:
Blaster and mortar do damage at .52. Blaster in a plus shaped cross (1-radius circle). Mortar in a 3-radius circle. Strafer in a 2-radius circle, .35. Bertha does .7 in a 10-radius circle. Digitalis does not heal unless it is next to healthy digitalis. Blasters cannot hit anything uphill.

thegamemaster1234

#2
Ok, that clears stuff up quite a bit. I suppose I could've just made a core to tell me the D health at my cursor (or on a single tile) to see how the weapons damaged it, but it was late and now I'm at a robotics competition, so that's a big help.

The way Digitalis was explained at Tiplex made me both a) believe that AC could actually use Digitalis like Creeper can, and b) that the blue spreading through the growth was like creeper flowing through tubes, since it damages units and "conducts" Creeper. I found that A was wrong pretty quickly (rather disappointingly) but B didn't have much against it in terms of the in-game description (at least, in the way I read it), so that's why I got confused when I saw SetDigitalis and SetDigitalisGrowth as different functions but worded almost the same with what looked like similar uses (which they don't).

warren

Yes, the in game descriptions made it harder to understand digitalis and runners. Experimentation was the only way.

thegamemaster1234

I noticed the new information in the SetDigitalis CRPL doc, thanks for the damage in radius script too!