Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: Xeos on January 10, 2015, 01:30:37 PM

Title: PAC Maps - Limiting the number of Spores that can be built
Post by: Xeos on January 10, 2015, 01:30:37 PM
Hi all,
I have a need in a PAC map I am building whereby I want to limit the amount of spores that a player can build on the map. They can build unlimited emitters but I want to limit the spore quantity. Is that easy to do ?
I am new to map building for CW3 but I would be very appreciative if someone could tell me how to do this please?

Many thanks in advance
Xeos
Title: Re: PAC Maps - Limiting the number of Spores that can be built
Post by: Hubs on January 12, 2015, 01:40:45 PM
Are you still looking to do this? I know you were trying to limit spores with your puzzle map - but you figured out a way to accomplish what you were trying to do another way.

If you are still wanting to do this, are you thinking of making it like a parameter just like vanilla? Or just be able to fully deactivate spores or emitters?
Title: Re: PAC Maps - Limiting the number of Spores that can be built
Post by: Xeos on January 16, 2015, 10:50:04 AM
What I would like to do is on the spore option, have a counter that the map maker can set, so when that amount is in play, the player cannot add anymore. I wanted to do this to have more control over making some puzzle type maps whereby I want the player to think strategically about how they approach the map instead of blasting mass spores at everything .. Just to give more design options for the mapmaker :)
What do you think?
Title: Re: PAC Maps - Limiting the number of Spores that can be built
Post by: stdout on January 16, 2015, 09:40:15 PM
I'm not going to mention the CRPL aspect of things, but nothing discourages spores like well placed beam towers on PZs. That might be your better solution.
Title: Re: PAC Maps - Limiting the number of Spores that can be built
Post by: stewbasic on January 25, 2015, 08:05:53 PM
I just added a new template with this feature to
http://knucklecracker.com/forums/index.php?topic=17566.0
Title: Re: PAC Maps - Limiting the number of Spores that can be built
Post by: Xeos on March 03, 2015, 03:30:38 AM
Quote from: stewbasic on January 25, 2015, 08:05:53 PM
I just added a new template with this feature to
http://knucklecracker.com/forums/index.php?topic=17566.0
Oh wow I have only just seen this ! I have downloaded it - I have found a strange fault with it though . When you activate it I do not get the text above the items in the menu - but if I re-compile the scripts whilst I have it open, they appear?
Title: Re: PAC Maps - Limiting the number of Spores that can be built
Post by: stewbasic on March 03, 2015, 10:05:19 AM
You should set the limits by editing Builder.crpl and recompiling. Does it work as expected after that?
Title: Re: PAC Maps - Limiting the number of Spores that can be built
Post by: Xeos on March 03, 2015, 01:12:18 PM
Quote from: stewbasic on March 03, 2015, 10:05:19 AM
You should set the limits by editing Builder.crpl and recompiling. Does it work as expected after that?
If I load your blank save.cw3 template in the map designer and click on the text to activate the PAC settings, then no text will appear in the menu. If while I have it open, I then recompile the scripts and go back into the map, the text will appear. the blank image is attached to show what I mean.