Main Menu

New Units

Started by Nebulous, May 14, 2016, 12:00:22 AM

Previous topic - Next topic

Nebulous

Can you specifically make units that the player can use like a normal unit that reacts to something differently?

Builder17

#1
That requires lot of CRPL coding , but if you want keep normal units as well just don't activate alternative control mode.

Some links about this: https://knucklecracker.com/forums/index.php?topic=17895

https://knucklecracker.com/forums/index.php?topic=16270

So it's maybe easier to use normal unit and CRPL core attached into it.

Explain more about your idea , please.

Edit: Something like this makes CRPL core follow player unit.

Self CONST_NULLIFIERDAMAGES FALSE SetUnitAttribute
Self CONST_TAKEMAPSPACE FALSE SetUnitAttribute
Self CONST_CREATEPZ FALSE SetUnitAttribute
Self CONST_SUPPORTSDIGITALIS FALSE SetUnitAttribute
Self CONST_COUNTSFORVICTORY FALSE SetUnitAttribute
#ClearTraceLog
#ShowTraceLog
CurrentCoords GetUnitAt ->Unit
endonce

<-Unit CONST_COORDX GetUnitAttribute ->CX
<-Unit CONST_COORDY GetUnitAttribute ->CY
#<-CX <-CY Trace2
<-CX <-CY SetCurrentCoords

GoodMorning

Agreed. Possible but very lengthy. So much that even the Sleeper uses a Digitalis workaround.
A narrative is a lightly-marked path to another reality.

Nebulous

Thanks! I'll check these out!