This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:crpltutorial:easycrpl [2015/04/17 08:36] – updated EasyCRPL to version 1.1 Telanir | crpl:crpltutorial:easycrpl [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
- | < | + | < |
# ===== :EasyCRPL: Collection by Telanir ===== | # ===== :EasyCRPL: Collection by Telanir ===== | ||
# --VERSION: 1.1 | # --VERSION: 1.1 | ||
# CREDITS: | # CREDITS: | ||
- | # Big thanks to VirgilW | + | # Big thanks to Knuckle Cracker (knucracker) |
- | # Big thanks to Tyler21 for the Forcefield code! | + | # Big thanks to Tyler21 for a contribution of Forcefield code using Field cells! |
# | # | ||
# Usage: Simply paste this script at the bottom of your | # Usage: Simply paste this script at the bottom of your | ||
Line 64: | Line 64: | ||
# -- | # -- | ||
# | # | ||
+ | # @GetCreeperInRadius: | ||
# @SetImageAlpha: | # @SetImageAlpha: | ||
# @TerrainAccessible: | # @TerrainAccessible: | ||
Line 674: | Line 675: | ||
< | < | ||
+ | # Function : | ||
+ | # Returns the SUM of all creeper in a certain square | ||
+ | # around an origin. If there is anti-creeper present this | ||
+ | # value may go into the negatives. | ||
+ | # Notation: x y f1 - f2 | ||
+ | # eg. CurrentCoords 1 @GetCreeperInRadius -> | ||
+ | : | ||
+ | -> | ||
+ | ->CR_Y | ||
+ | ->CR_X | ||
+ | 0 ->CR_C | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | loop | ||
+ | loop | ||
+ | |||
+ | <-CR_C | ||
+ | |||
# Function: : | # Function: : | ||
# Sets the alpha of the specified image for self. | # Sets the alpha of the specified image for self. |