Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: chikenR on July 09, 2022, 12:51:29 PM

Title: CRPL
Post by: chikenR on July 09, 2022, 12:51:29 PM
Hi guys. Can someone please make me a script which acts like a meso pyramid, creating a shield, but producing creeper instead of AC and working when touched by creeper? It's gonna be super useful for me.
Title: !
Post by: teknotiss on July 14, 2022, 01:17:24 PM
Quote from: chikenR on July 09, 2022, 12:51:29 PM
Hi guys. Can someone please make me a script which acts like a meso pyramid, creating a shield, but producing creeper instead of AC and working when touched by creeper? It's gonna be super useful for me.

for some reason (user cannot receive personal messages: never seen this error before...) i cannot reply to your message dude.

anyway, i don't know how to do that sorry, but perhaps some of our expert coders can help out a bit!

i will ask a couple of likely persons...  8)
Title: Re: CRPL
Post by: GoodMorning on July 14, 2022, 09:55:20 PM
The trickiest thing here is actually in the images, and deciding how powerful it will have to be - when it turns on, you'll end up with a flickering effect when it pushes that Creeper away.

I'd suggest copying the script from Meso (https://knucklecracker.com/wiki/doku.php?id=crpl:examine_map_resources) and replacing the ammo-related code with something like:


CurrentCoords GetCreeper 0 gt if
    GetGameTimeFrames 30 add ->OperateUntil
endif

GetGameTimeFrames <-OperateUntil lt if
    # The usual "is this on" code
#etc