Main Menu

Laser?

Started by milkev, March 27, 2016, 05:41:36 PM

Previous topic - Next topic

milkev

hello, ive attached a file of my map (for who ever wants to see it, theres not really any related point to it).

I was wondering if someone knows a code for a crpl that attacks guppy's but not any other flying units, i simply want this so that the player wont get units in an area thats free at the start of the game for about 5 minutes, but i want them to be able to attack it through ground and ariel units.

Builder17

If it's ok to you , you can use modified version of Corrupted Beam Tower.crpl , does it needs to have image?  :)

milkev

Quote from: Builder17 on March 28, 2016, 01:20:28 AM
If it's ok to you , you can use modified version of Corrupted Beam Tower.crpl , does it needs to have image?  :)

thanks builder17! it doesnt need a picture, i was just gonna mkae it the same as the emitter in the area it protects(as in add it to the emitter) but ill definitely try out the picture!

GoodMorning

If you add it to the same core, but want it to disappear after a set period, leaving the other core untouched, I recommend using a second (invisible) core stacked on top of the normal one. Then add another script:


$Lifespan:900 #5 min

Self CONST_CREATEPZ false SetUnitAttribute

<-Lifespan Delay

Self 0 Destroy


This will prevent the script persisting or interfering with other scripts. The only difference will be that if someone aims a Nullifier at this before it expires, it will show two targets, not one... But given it exists to interdict the area, you shouldn't have too much trouble.
A narrative is a lightly-marked path to another reality.

milkev

Quote from: GoodMorning on March 29, 2016, 08:23:58 AM
If you add it to the same core, but want it to disappear after a set period, leaving the other core untouched, I recommend using a second (invisible) core stacked on top of the normal one. Then add another script:


$Lifespan:900 #5 min

Self CONST_CREATEPZ false SetUnitAttribute

<-Lifespan Delay

Self 0 Destroy


This will prevent the script persisting or interfering with other scripts. The only difference will be that if someone aims a Nullifier at this before it expires, it will show two targets, not one... But given it exists to interdict the area, you shouldn't have too much trouble.

Currently, it wont dissapear until the emitter is destroyed, but if i change my mind about that ill definitely use this!

GoodMorning

Hope it helps at some point. Enjoy.
A narrative is a lightly-marked path to another reality.

milkev

#6
sooo, anyone have the pictures it uses for the range and laser 0_0 currently its using a crystal emitter and another building like one that im using for a player charged emitter.
also, trying to look thourgh the code for the laser so that i can change the image numbers but..... i hope tihs isnt to annoying, but could you copy & paste the code so i can see all the line breaks? my programs (and excuse me for this) is a d*** to downloaded text files.

GoodMorning

I have sympathy, but not the code...
You could try borrowing from the Sleeper code for Creep Beams, I don't know if that would work for you.
A narrative is a lightly-marked path to another reality.

Builder17

image2 is range thing and image0 is laser.  You should put image0 into Custom1 slot in game and image2 into Custom2 slot in game. Ok?

IntelectualMind

you could for making crpl add "GUPPYAIR" as a target in various ways

milkev

Quote from: Builder17 on April 01, 2016, 06:30:26 AM
image2 is range thing and image0 is laser.  You should put image0 into Custom1 slot in game and image2 into Custom2 slot in game. Ok?

thanks!

Builder17

#11
@IntelectualMind I did posted whole code already , but that's true.

Offtopic: Are you talking about CRPL core with wheel image and it rolls around map and brings doom with it? :D

GoodMorning

Agreed. Good thought, but why reinvent the wheel?

Note: Nobody has built a wheel in CRPL, have they?
A narrative is a lightly-marked path to another reality.

IntelectualMind


J

#14
Quote from: IntelectualMind on April 04, 2016, 08:05:21 AM
Define wheel
Something with a round shape that can roll over something else, massively decreases the (effective) amount of friction compared to pusing cubes over the same surface. Click this link to learn more.

Quote from: GoodMorning on April 01, 2016, 09:50:53 PM
Note: Nobody has built a wheel in CRPL, have they?
Add a rotating wheel image to my super tower and you have wheel :P But as far as I know, no wheels in CW3 yet.