Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: Sorrontis on August 23, 2015, 02:51:51 PM

Title: Forced CN connection
Post by: Sorrontis on August 23, 2015, 02:51:51 PM
Hello

Does anyone know if there's a way to require the player to connect to a CRPL core to finish the map after all the emitters are destroyed?
Title: Re: Forced CN connection
Post by: driesemol on August 23, 2015, 05:26:09 PM
One thing you can do is place a standard in-game shield key beneath it, it has to connect to the shield key before you can win,so it seem like you need to connect to the CRPL core.
Title: Re: Forced CN connection
Post by: Sorrontis on August 23, 2015, 06:35:01 PM
Quote from: driesemol on August 23, 2015, 05:26:09 PM
One thing you can do is place a standard in-game shield key beneath it, it has to connect to the shield key before you can win,so it seem like you need to connect to the CRPL core.

or a tech artifact. smart
Title: Re: Forced CN connection
Post by: Grayzzur on August 24, 2015, 03:55:17 PM
You can make the cores connectable, and make it accept ammo, set the max ammo to 1, and then when the core's ammo goes from 0 to 1 it's connected and has received a packet. Boom, mission over.


once
self CONST_CONNECTABLE true SetUnitAttribute
self CONST_COUNTSFORVICTORY true SetUnitAttribute
self CONST_NULLIFIERDAMAGES false SetUnitAttribute
self CONST_CANREQUESTAMMO true SetUnitAttribute
self CONST_MAXAMMO 1 SetUnitAttribute
self CONST_AMMO 0 SetUnitAttribute
self CONST_REQUESTPACKETS true SetUnitAttribute
endonce

self CONST_AMMO GetUnitAttribute 1 eq if
self 2 destroy
endif
Title: Re: Forced CN connection
Post by: Sorrontis on August 24, 2015, 03:59:20 PM
that's a nice solution, however, what if I guppy it?
Title: Re: Forced CN connection
Post by: Grayzzur on August 24, 2015, 04:04:20 PM
Yes, that solution can be guppied. You could figure out some elaborate workaround, or maybe just protect the CRPL Core with an AE Tower.
Title: Re: Forced CN connection
Post by: Sorrontis on August 24, 2015, 04:11:20 PM
thanks! it's still a good idea