Curiousity Gets the Cat (Low priority theoretical CRPL questions)

Started by Flabort, January 08, 2014, 11:55:37 PM

Previous topic - Next topic

Flabort

So, uh... which units have which vars in 0?
Many of the units just appear to have FULL_AMMO in the editor, but surely that's not all of them.
Does the reactor, for example, have an ENERGY_PRODUCTION var? So that it can be upgraded outside of the Forge's capacity...
My maps: Top scores: Sugarplum, Cryz Dal, Cryz Torri, Cryz Bohz (Click fetch scores, page courtesy of kwinse)

Clean0nion

Quote from: thepenguin on January 12, 2014, 08:25:27 PM
0  probably isn't a script, more like a special gateway into the unit vars.
for all intents and purposes, it's a script.
Quote from: Flabort on January 12, 2014, 08:34:15 PM
So, uh... which units have which vars in 0?
Many of the units just appear to have FULL_AMMO in the editor, but surely that's not all of them.
Does the reactor, for example, have an ENERGY_PRODUCTION var? So that it can be upgraded outside of the Forge's capacity...
Most aren't listed on the wiki. So only Virgil and possibly a few Beta members know.

eduran

Scripts can be added to CRPL cores only. But you can make an invisible CRPL core that follows a unit around.

SetScriptVar with 0 as script name works on all built-in enemies (afaik only enemies, not player units). Variable names for emitters and spore towers are already on the wiki page. Inhibitor variable names are the same as for emitters and the following work on Runner Nests:

  • moveSpeed
  • spawnInterval
  • maxPopulation
  • runnerMaxHealth
  • creeperPayload