Brick Names

From Ricochet Wiki
Revision as of 12:34, 22 May 2020 by Ngyikp (talk | contribs) (Created page with "thumb|right|Brick Properties window Names can be added to bricks to be used and referenced in brick plugins. ==Built-in names== Starting from Ric...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Brick Properties window

Names can be added to bricks to be used and referenced in brick plugins.

Built-in names

Starting from Ricochet Infinity, player balls can be referenced with these built-in names.

Message Description
Ball The player's first ball
Ball[number] The player's nth ball, if the player doesn't have nth number of balls, it will reference the last ball
NearestBall Targets the player ball closest to the brick

Player ships can also be referenced and useful for Mouse Party where there can be more than 1 player ship.

Message Description
PlayerShip The first player ship
PlayerShip[number] The nth player ship, if there is no nth player ship, it will reference the last player ship
NearestPlayerShip Targets the player ship closest to the brick

Other names that can be used:

Message Description
this The brick itself, useful for math calculations with the brick's position

The Volcanic background offers some path polygons that are unavailable on other backgrounds:

  • vol path 01
  • vol poly 02
  • vol poly 03
  • vol poly 04
  • vol poly 05
  • vol poly 06
  • vol poly 07
  • vol poly 08
  • vol poly 09
  • vol poly 10
  • vol poly 11

See also