Script Ideas

Started by Flash1225, June 14, 2014, 08:05:44 PM

Previous topic - Next topic

Flash1225

So... I want some ideas for CRPL scripts, as well as a functioning script that I can modify to improve it. Any ideas???
Considering how many turns my life has taken (good and bad), I'm still fairly neutral to it all. I take the hits, I don't react overly.

J

You can take the scripts out of any map with CRPL-coded stuff you like. If you want to improve my electricity quiz (alpha-J), go ahead! Liked progressor? Just take the scripts! One friendly note: remember maps don't need crpl to be good, however it can greatly improve them.
If you want to create your own version of my units series (CS #11-28) I'm ready to give you some advise (I have unwritten plans for a second one, so I won't tell you all details, only to get you started).

Flash1225

Just to confirm, if you post a script here, make sure it's usable without any modifications, and a list of recommended commands I can add to that script to improve it.
Also:

QuoteYou can take the scripts out of any map with CRPL-coded stuff you like. If you want to improve my electricity quiz (alpha-J), go ahead! Liked progressor? Just take the scripts! One friendly note: remember maps don't need crpl to be good, however it can greatly improve them.
If you want to create your own version of my units series (CS #11-28) I'm ready to give you some advise (I have unwritten plans for a second one, so I won't tell you all details, only to get you started).

I'm not sure how to get scripts out of maps with CRPL included, unless it's in a post in the forum on the same map.
Considering how many turns my life has taken (good and bad), I'm still fairly neutral to it all. I take the hits, I don't react overly.

J

Quote from: Flash1225 on June 15, 2014, 12:58:39 PM
I'm not sure how to get scripts out of maps with CRPL included, unless it's in a post in the forum on the same map.
http://knucklecracker.com/wiki/doku.php?id=crpl:examine_map_resources

It's hard to help you much further if I/we don't know what kind of crpl stuff you want. Something cool and map-dominating?  Or just something simple that can be added to any map? (like emitters that leave techs when destroyed, can be found in one of the pass the map topics)

Flash1225

Oh, now someone explains that to me. Thanks, though. I'm looking for raw scripts (i.e. ones not used in any maps made so far) to use.
Considering how many turns my life has taken (good and bad), I'm still fairly neutral to it all. I take the hits, I don't react overly.

Courtesy

generally I'd expect that if someone had a unique script, they'd probably use it in their own map first, don'tcha think?

Grayzzur

You're not going to find many people who've created and tested a bunch of CRPL scripts and haven't bothered to make a map with them or post them to the forums already.

If you have some ideas of what you want to do with a script, but can't quite get there yourself, post your thoughts and we'd be happy to help with the scripting.
"Fate. It protects fools, little children, and ships named 'Enterprise.'" -William T. Riker

kwinse

Well I've done a few experiments with CRPL (though mostly for Crimson King's ideas, whether he asked me or not). For instance my no PZ script that was put to excellent use by Courtesy was originally for a flip emitter that uses actual emitters.

Courtesy

I'll be experimenting with CRPL in the near future. (curious on what all I can do with it). So if something especially interesting that I have no clue how to use crops up, I'll let you know though.

Flash1225

This is for J:

I'm having issues what with the Examine Map Resources, especially deleting the save.cw3 of my world. Any ideas to deal with this?
Considering how many turns my life has taken (good and bad), I'm still fairly neutral to it all. I take the hits, I don't react overly.

Grayzzur

Quote from: Flash1225 on June 17, 2014, 06:53:23 AM
This is for J:

I'm having issues what with the Examine Map Resources, especially deleting the save.cw3 of my world. Any ideas to deal with this?
Are you in the map editor editing the world you're trying to change the files on? Be on the main menu screen, or shut CW3 down completely, then make the changes to the directory, then start CW3 back up/get back into the Projects section.
"Fate. It protects fools, little children, and ships named 'Enterprise.'" -William T. Riker

Courtesy

I've got the idea for a script that will once every 3 minutes or so change the height of void to 0, allowing creeper to traverse across it for 1 minute, before changing it back to it's value of 1000.

I was thinking I'd set the script to also change creeper colour to red as a clear indicator 5 seconds prior to it gaining the power to do this. Still working out details on how this script could actually accomplish the change to void though... any ideas?

Flash1225

To Grayzur:
I can't even delete the save.cw3! Does anything need to happen to the save-auto.cw3 file?
Considering how many turns my life has taken (good and bad), I'm still fairly neutral to it all. I take the hits, I don't react overly.

Grayzzur

Quote from: Courtesy on June 17, 2014, 07:43:38 PM
I've got the idea for a script that will once every 3 minutes or so change the height of void to 0, allowing creeper to traverse across it for 1 minute, before changing it back to it's value of 1000.

I was thinking I'd set the script to also change creeper colour to red as a clear indicator 5 seconds prior to it gaining the power to do this. Still working out details on how this script could actually accomplish the change to void though... any ideas?

Overriding terrain on all void cells. GetTerrain returns -1 for void cells. To set it back, you can change the 0 to a -1 on the SetTerrainOverride -- SetTerrainOverride of -1 is default value for the cell.


MapHeight 0 do
MapWidth 0 do
I J GetTerrain 0 lt if
I J 0 SetTerrainOverride
endif
loop
loop
"Fate. It protects fools, little children, and ships named 'Enterprise.'" -William T. Riker

Grayzzur

Quote from: Flash1225 on June 17, 2014, 07:45:40 PM
To Grayzur:
I can't even delete the save.cw3! Does anything need to happen to the save-auto.cw3 file?

save-auto.cw3 is the auto-save file whenever you leave a map. You don't need it unless you want to be able to load the game to that state. For map editor projects, usually not important.

Did you close down CW3? With CW3 closed, are you still unable to delete the file? If that's the case, something may have the file locked up and you might want to try rebooting your computer, then manipulating the files, then re-launching CW3.
"Fate. It protects fools, little children, and ships named 'Enterprise.'" -William T. Riker