Is there a way to add only 1 cheat from a CP?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

myself619
Newcomer
Posts: 14
Joined: August 21st, 2010, 7:22 am

Is there a way to add only 1 cheat from a CP?

Post by myself619 »

I was thinking about adding a -nocd into FOC but I'm not sure how. Is there a way to only add 1 certain cheat and not a whole CP?
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Is there a way to add only 1 cheat from a CP?

Post by owner123 »

You could just add the whole CP and then replace every other string of cheats (like "-lvl ") with something that no one would ever type, like "gjktrohuju5myh597m6y4h76yfng" or something.
But I don't really understand why you need to only add one command from a CP?
Or extract the one command's function and add that with the globals and function mains. That takes some skill at JASS though.
Or make your own CP with that one command, convert it into JASS, add it.