Brick Names: Difference between revisions

From Ricochet Wiki
Content added Content deleted
(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...")
 
(rearrange)
 
Line 4: Line 4:


==Built-in names==
==Built-in names==
===Ricochet Lost Worlds===
Starting from [[Ricochet Infinity]], player balls can be referenced with these built-in names.
The Volcanic background offers a few 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

===Ricochet Infinity===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Message !! Description
! Name !! Description
|-
| this || The brick itself, useful for math calculations with the brick's position
|}

Player balls can be referenced with these names.

{| class="wikitable"
|-
! Name !! Description
|-
|-
| Ball || The player's first ball
| Ball || The player's first ball
Line 21: Line 44:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Message !! Description
! Name !! Description
|-
|-
| PlayerShip || The first player ship
| PlayerShip || The first player ship
Line 29: Line 52:
| NearestPlayerShip || Targets the player ship closest to the brick
| NearestPlayerShip || Targets the player ship closest to the brick
|}
|}

Other names that can be used:

{| class="wikitable"
|-
! 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==
==See also==

Latest revision as of 12:47, 22 May 2020

Brick Properties window

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

Built-in names[edit | edit source]

Ricochet Lost Worlds[edit | edit source]

The Volcanic background offers a few 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

Ricochet Infinity[edit | edit source]

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

Player balls can be referenced with these names.

Name 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.

Name 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

See also[edit | edit source]