Skip to main content

Action

The action section describes the movements in that play.

action = {
move = {
p1 -> (50,50),
},
}

Allowed Syntax

Move Action

Move represents the player's movement. Specify the player's movement coordinates as follows.

players = {p1}

state = {
position = {
p1 = (0, 60),
}
}

action = {
move = {
p1 -> (0, 0),
}
}
1

Arc Move

Using ~> allows you to draw an arc.

You can specify the direction after ~. l | left | r | right are permitted.

To adjust the arc, you can add a minor up to three characters after the direction specification.

warning

Adjusting the default settings is not recommended, as it may unnecessarily complicate things. For most use cases, the default values are sufficient.

players = {p1, p2, p3}

state = {
position = {
p1 = (0, 60),
p2 = (90, -80),
p3 = (-90, -80),
}
}

action = {
move = {
p1 -> (0, 0),
p2 ~[l]> (60, 30),
p3 ~[r:0.2]> (-60, 30),
}
}
123

Pass Action

A pass represents the movement of the ball from the player. Specify the receiving player as follows.

players = {p1, p2}

state = {
baller = p1,
position = {
p1 = (0, 60),
p2 = (90, -80),
},
}

action = {
pass = {
p1 -> p2,
}
}
12

Screen Action

screen represents the player's screen. Specify the receiving player as follows.

players = {p1, p2}

state = {
baller = p1,
position = {
p1 = (0, 60),
p2 = (50, 0),
},
}

action = {
move = {
p1 -> (0, 0),
}

screen = {
p2 -> p1:middle,
}
}
12

Arc Screen

This support Arc Line, too.

players = {p1, p2, p3}

state = {
baller = p1,
position = {
p1 = (0, 60),
p2 = (50, 0),
p3 = (-50, 0),
},
}

action = {
move = {
p1 -> (0, 0),
}

screen = {
p2 -> p1:middle,
p3 ~[r]> (0, 50),
}
}
123

Dribble Move

If the player who is moving has the ball (current baller), the move line will be rendered as a wavy line to indicate a dribble.

players = { p1 }
state = { baller = p1, position = { p1 = (0, 60) } }
action = {
move = { p1 -> (0, 0) }
}
1