CounterBuilder.crpl

Started by GoodMorning, May 04, 2016, 11:12:15 PM

Previous topic - Next topic

GoodMorning

Hello all,

Inspired by kalek, here is a script which builds enemy units as the player strengthens their position.

Warning: This will drop a PZ at the location of the last unit built, and remains visible. Modify the Core in-editor if you wish this to change.
Currently Nullifiable. May build in-base. Deterministic. Move starting position for a different placement pattern. Self-destructs after player reaches a building count cap.

Options for built unit strengths, number of buildings required to wake and activate. Builds spores and Emitters on every three or five activations, respectively.

If this looks useful, I can build companion scripts to alter images, generate text, and modify the strength of built units.

Thoughts/opinions?
A narrative is a lightly-marked path to another reality.

milkev

Sounds amazing, but looks like a ton of work

GoodMorning

The current one is two nested tickers, two build commands and a bit of movement.

Images aren't difficult, nor text, nor strength. But if nobody likes it, I won't bother.
A narrative is a lightly-marked path to another reality.

TLFP

Quote from: GoodMorning on May 04, 2016, 11:12:15 PM
Hello all,

Inspired by kalek, here is a script which builds enemy units as the player strengthens their position.

Warning: This will drop a PZ at the location of the last unit built, and remains visible. Modify the Core in-editor if you wish this to change.
Currently Nullifiable. May build in-base. Deterministic. Move starting position for a different placement pattern. Self-destructs after player reaches a building count cap.

Options for built unit strengths, number of buildings required to wake and activate. Builds spores and Emitters on every three or five activations, respectively.

If this looks useful, I can build companion scripts to alter images, generate text, and modify the strength of built units.

Thoughts/opinions?
I think it's a great idea for map makers that want to defend a area of the map.  :D
Currently ghosting, don't mind me.
Christian, my list of various content creation groups can be found here

GoodMorning

That would need a few changes to :GoSomewhere. Currently the core ranges across the entire map. (And can be Nullified if it wanders into your base.) I'll build a bit more later. Something's come up with my intended activity for the day.
A narrative is a lightly-marked path to another reality.

GoodMorning

#5
Suddenly spare time is a wonderful thing. Here we have what I consider to be a finished version. Play with the core in the editor if you wish to make it Nullifier-proof or change pictures.

Now with sparky effect when a build threshold is reached. (May not build anything, depends on settings.)

Enjoy! (I'll put it in a map later.)

EDIT: Forgot to remove a constant, making the text come out wrong. Fixed now.
META-EDIT: I lost another constant, so the start is slightly friendlier than you might intend.
A narrative is a lightly-marked path to another reality.

GoodMorning

#6
Here's the final form. Features:

1. Everyone gets the same game.
2. Small white pulsing effect when the threshold for a building cycle is reached.
3. Support for fractional cycle specifiers.
4. A delay on arrival at the build site, to give the player a chance to notice that their reactor cluster is under threat.
5. A constant that can be changed to vary the movement pattern
(It's just barely possible to set it badly, causing the core to lock into a row/column/both. If so, pick a random prime and reset to that, which should help.)
6. Feel free to set custom popup text, if you don't want warnings/stats shown.

Other features: 12 lords, 11 ladies, 10 pipers, ... and a partridge.
Not included: Wheel.

Warning: Turning off "Friendly to rebuilding" will treat a moved unit as a new one. I have left this in intentionally, but if you want to only consider new units, this will not work well.

As ever, this is for use by anyone who wants it.

EDIT: I've made a mistake, the location limits don't work. Sorry, if anyone still wants this and cares, I'll fix it, otherwise, enjoy. (Found out when making a map...)
A narrative is a lightly-marked path to another reality.