Seeing as how Spore Towers work in PAC maps, would it be possible to recode them to function like a normal tower? Same targeting system, but instead the 'spores' will release Anti-Creeper instead. Any ideas how this could be done?
Quote from: BLuBIN_BoY on January 15, 2016, 10:03:03 PM
Seeing as how Spore Towers work in PAC maps, would it be possible to recode them to function like a normal tower? Same targeting system, but instead the 'spores' will release Anti-Creeper instead. Any ideas how this could be done?
You'll have to change the default payload on the PAC spore script.
Trying to figure stuff out still, not too great at coding :'(
If I can't get this to work, is it possible to use the MakeRain command on a timer, instead of a spore?
I have encountered such tower before... don't know which map though, but if you find it you can take the script from it
Quote from: BLuBIN_BoY on January 16, 2016, 04:19:42 PM
Trying to figure stuff out still, not too great at coding :'(
If I can't get this to work, is it possible to use the MakeRain command on a timer, instead of a spore?
I can give you the exact way you do it (Assuming you have loaded the template by putting the template file into the game file and renaming it to save.cw3).
You go into the scripts tab (located in the units tab and to the right and next to the green save button) and change the top variables (one at a time, then see what it does) and figure which one works. :D
I have the template, yes, and I also have SporeTower, SporeBuilder, StructureGui and TowerControls loaded onto the map I'm trying to get this to work on. Which should I add the MakeRain command to? And if you already know how to do it, that'd be VERY helpful and I'll credit you for the map.
Quote from: BLuBIN_BoY on January 17, 2016, 07:20:10 PM
I have the template, yes, and I also have SporeTower, SporeBuilder, StructureGui and TowerControls loaded onto the map I'm trying to get this to work on. Which should I add the MakeRain command to? And if you already know how to do it, that'd be VERY helpful and I'll credit you for the map.
MakeRain soaks the whole map, not just one spot. If you want to do that, just create a new script and type the following code:
7 2000 MakeRain
If you didn't want that... you'll have to go into sporetower.crpl and change the payload variable to a negative.
I know the MakeRain command fills the whole map, I'm trying to make a map with a few powerful emitters and a unique Titan which uses the MakeRain command on a timer and with enough Anti-Creeper to fuel it. Is there a way to take that SporeTower or SporeBuilder .crpl and modify it so that instead of creating a Spore, it activates the MakeRain command?
Could you just code it from beginning?
It's not easy to modify scripts done by others than yourself.
Quote from: BLuBIN_BoY on January 18, 2016, 09:57:20 AM
I know the MakeRain command fills the whole map, I'm trying to make a map with a few powerful emitters and a unique Titan which uses the MakeRain command on a timer and with enough Anti-Creeper to fuel it. Is there a way to take that SporeTower or SporeBuilder .crpl and modify it so that instead of creating a Spore, it activates the MakeRain command?
If you want a regular map you could just make a new script that requests AC and when it receives enough, it activates and resets the AC count. You don't need to edit the PAC spores to do that.
Quote from: Builder17 on January 18, 2016, 11:54:56 AM
I haven't tested this , but it should work.
I thought he wanted to make a unit that when clicked on, checks to see if it has enough ammo, and if so, rains the whole map with AC.
Whatever is easier to set up.
Quote from: BLuBIN_BoY on January 18, 2016, 01:12:24 PM
Whatever is easier to set up.
I'll do the AC rain, but Builder17 has the AC spore already set up.
EDIT: Okay, I can't do that. Someone who is more fluent in crpl could do it.
Oh, he did? I didn't get to check yet, was on mobile. Will now tho.
Quote from: Builder17 on January 18, 2016, 11:54:56 AM
I haven't tested this , but it should work.
What scripts should I keep attached to the tower? As of now, it's not working for me, but I could just be an idiot.
Remove all others but my script?
Tested and remade it , this should work.
Note: even having no access to my CW3 game, I was able to write crpl for TheLongFellowPLAYER by testing it in my thinking bag. Maybe humans can't do that, but it was fun for me. I was able to deliver workable script the first time, and then TheLongFellowPLAYER exercised its competence and took it the rest of the way to making a superb map that I plan on downloading once I finish rebuilding my terminal.
Cheers!
-GameGibu
Quote from: GameGibu on January 19, 2016, 10:19:26 PM
Note: even having no access to my CW3 game, I was able to write crpl for TheLongFellowPLAYER by testing it in my thinking bag. Maybe humans can't do that, but it was fun for me. I was able to deliver workable script the first time, and then TheLongFellowPLAYER exercised its competence and took it the rest of the way to making a superb map that I plan on downloading once I finish rebuilding my terminal.
Cheers!
-GameGibu
Who threw your terminal out of an airlock? :D
Maybe a robot? :D
And yes I can test scripts with my thinking bag, but then the compiler ALWAYS seems to know I did it that way and comes up with ridiculous error codes. Its favorite one is "A variable or function name MUST be alphanumeric" and I just keep typing a new variable (or thing) until it's happy. :)