~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:getDarkCell|Get]] * [[4rpl:commands:setDarkCell|Set]] :!: Available in version 2.5 and later. ====== SetDarkCell ====== SetDarkCell(<-x, <-y, <-darkness) ===== Description ===== Sets the fog or darkness level of the cell at the specified coordinates (`x`, `y`) to the provided `darkness` value. Note that "darkness level" does not imply a shading, but a cumulative value - when greater than zero, the cell will be dark. The intent is that multiple Dark towers can each set the cell as "dark", destruction or nullification of each Dark Tower will reduce the darkness value by one, until all towers are eliminated, the value will be zero and the cell will be illuminated. ===== Examples ===== # need worked example <=[[4rpl:start| Index]]