Spot the foolish mistake...

Started by GoodMorning, October 31, 2017, 04:33:55 AM

Previous topic - Next topic

GoodMorning

Hello all.

I've made an error in this script, somewhere.

Intended behaviour (for debugging):
Unit is normally a custom Emitter.
When hit by a Nullifier, should trace "OOF".

Actual behaviour:
Kaboom, PZ left, :destroyed called, and so on.

So, it seems that I have made an error when setting CONST_DESTROYONDAMAGE. But I can't seem to find it, and the nearby trace statement runs.

(Final script is intended to launch "spores" to reproduce, hence "Shroom" as the name.)
A narrative is a lightly-marked path to another reality.

planetfall

You need to set CONST_NULLIFIERDAMAGEAMT to 1.
Pretty sure I'm supposed to be banned, someone might want to get on that.

Quote from: GoodMorning on December 01, 2016, 05:58:30 PM"Build a ladder to the moon" is simple as a sentence, but actually doing it is not.

GoodMorning

Why? Is that not the default?

To be clear: The issue is that the Core is being destroyed when it should not.

So setting the Nullifier damage amount seems futile, given that the core is supposed not to be destroyed on damage.
A narrative is a lightly-marked path to another reality.

Sorrontis

make sure it's written
<-uid Const_??? value setunitattribute

if you have it this way
<-uid value const_??? setunitattribute

it wipes the unit away. had that problem yesterday.
"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."

GoodMorning

A narrative is a lightly-marked path to another reality.

GoodMorning

Time to eat a delicious pile of words...

Setting the Nullifier damage amount worked. This leaves me still asking "Why?"
A narrative is a lightly-marked path to another reality.