User Tools

Site Tools


crpl:docs:setdigitalis

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Digitalis Commands

SetDigitalis

ArgumentsResultNotation
X, Y, Amt x1 y1 f1 –

Description

Sets Amt of Digitalis at coordinates. An Amt of 1 means fill health Digitalis, and 0 means no Digitalis.

Examples

  • Lay down Digitalis on 3×3 grid under a unit

    The reason for the 2 is that the limit is one more than the loop iterates through. So, “3 0 do loop” goes through the values 0,1,2… but not three. Using these limits will make your walker lay down a 3×3 grid of Digitalis.

    CurrentY 2 add CurrentY 1 sub do
       CurrentX 2 add CurrentX 1 sub do
          I J true SetDigitalisGrowth
          I J 1 SetDigitalis
       Loop
    Loop
    


  • Next example
crpl/docs/setdigitalis.1385777817.txt.gz · Last modified: 2014/10/01 15:02 (external edit)