SetDigitalis clearing (Understood)

Started by GoodMorning, July 24, 2016, 08:12:03 AM

Previous topic - Next topic

GoodMorning

Hello again,

I'm working on a script which grows a Digi bloom around a Core.
That much works, but when the Core is destroyed, I cause the bloom to wither (removal of DigitalisGrowth).
Then, when another bloom grows over the site, the Digi never activates.

So, for a given cell:

Coords 1 SetDigitalisGrowth
<Digi activates>

<:destroy>
Coords 0 SetDigitalis
Coords 0 SetDigitalisGrowth

<original Core is destroyed>

Then, a new Core attempts the same. However, it never activates.

Does anyone know why? If so, would you (singular or plural) please clarify my understanding?
A narrative is a lightly-marked path to another reality.


GoodMorning

Thanks. This might be worth mentioning on the wiki, although I'm not sure how to put it.
A narrative is a lightly-marked path to another reality.

Builder17

Just use your forum account username and password to log into wiki. Editing part isn't hard. :)

Maybe you could try to prevent this bug in some way?  ???

GoodMorning

I shall do that after testing, so that it is correct. I'm not sure how to phrase the content of those posts yet, though.

My best guess as the the problem:
Digi+ means that it exists. Digi- means that it is ungrown, starting at raw = -1000000. Digi=0 is a sentinel value which causes the growth code to push it up to 100% health, the raw number going from 0 to 1000000.

So, setting it to a negative is a useable workaround, it seems. This may be intentional, as setting to 0 could prevent regrowth, until something else arrives.


I'm not about to out such speculation on the wiki, though the workaround discussed looks like it would need documenting.
A narrative is a lightly-marked path to another reality.

GoodMorning

Wiki modified to note the zero quirk.

Would someone else please take a look to make sure I got it right?
A narrative is a lightly-marked path to another reality.