Welcome to the Creatures Wiki! Log in and join the community.

Curlshoot (teardown)

From Creatures Wiki
Revision as of 22:39, 12 November 2021 by ScoobyGambit (talk | contribs) (Created page with "{{Teardown| name=Curlshoot | version=Creatures 3/Docking Station | filename=curlshoot.agents | classifier=2 23 1135, 2 3 1053, 2 6 1004 | images= Curlshoot.c16, Seedpacks.c16|...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Curlshoot
This article is a teardown of an existing CAOS script.
Game Version Creatures 3/Docking Station
Filename(s) curlshoot.agents
Classifier 2 23 1135, 2 3 1053, 2 6 1004
Dependencies
Images Curlshoot.c16, Seedpacks.c16
Sounds reat.wav
Catalogue Tags Curlshoot.catalogue, Seedpacks.catalogue
Agents curlshoot.agents
Other none

This is a teardown page explaining the details and inner workings of this agent. For general information, see Curlshoot

The Curlshoot is a simple plant agent by ub1111 and Trollop for Creatures 3 and Docking Station (the CAOS for both games is identical). The plant injects as a seed packet (which creatures call a dispenser). The curlshoot plant uses the Object Variable OV00 to represent whether it has seeded yet or not.

Scripts

Inject

  • Installs 1 seedpack, a dispenser, with a BHVR of 3 (creatures can push and pull the dispenser)
  • Moves the seedpack safely (MVSF) to the GAME variables "CreatorX" and "CreatorY" (introduced in Docking Station), or, if they do not exist, moves the seedpack safely to the Cartesian coordinates 5687 3670.

Curlshoot Seedpack Activate 1 Script (1)

  • Script is LOCKed.
  • Four seeds are created, with a random tick of between 200 and 400.
  • The seedpack is KILLed.

Curlshoot Seedpack Activate 2 Script (2)

  • Script is LOCKed.
  • Four seeds are created, with a random tick of between 200 and 400.
  • The seedpack is KILLed.

Curlshoot Seed Timer Script (9)

  • If the TOTL of seeds is greater than 20, kill the OWNR (current seed).
  • If the seed is falling, STOP the timer script. (it will wait for another time)
  • If the seed is being carried, STOP the timer script. (it will wait for another time)
  • If the room type is not a kind of soil, kill the OWNR (current seed).
  • Instantaneously create a curlshoot plant, with a random tick of between 200 and 400.
  • Kill the seed.

Curlshoot Plant Timer Script (9)

  • If the pose is 5, kill the plant.
  • If the pose is 6, kill the plant.
  • If the pose is 3, go to the 'seed' subroutine.
    • Seed subroutine: If the pose is 3, install between 2 to 4 seeds, then take pose 4, and set ov00 to 1.
  • If ov00 equals 0, go to the 'grow' subroutine.
    • Grow subroutine: If the pose is less than or equal to 2, add 1 to the pose.
  • If ov00 equals 1, go to the 'dead' subroutine.
    • Dead subroutine: If the pose is greater than or equal to 4, add 1 to the pose.

Curlshoot Seed Eat Script (12)

  • Play reat.wav
  • Stimulate the from with stimulus 77 at a strength of 4.
  • Kill seed.

Curlshoot Plant Eat Script (12)

  • Play reat.wav
  • Stimulate the from with stimulus 77 at a strength of 4.
  • Kill plant.

Curlshoot Pickup Script (4)

  • Take pose 6.

Remove

  • Removes all instances of the seeds, curlshoot plants, and dispensers.
  • Removes the seed eat script, the plant timer script and the seed timer script.

Notes