Get the unit's agility
Returns:
Type | Description |
---|
number | The unit's agility |
Get unit members who are alive
Returns:
Type | Description |
---|
Array | Unit members who are alive |
Clear all member actions
Clear results for all members
Get unit members who are dead
Returns:
Type | Description |
---|
Array | Unit members who are dead |
Check if the unit is in battle
Returns:
Type | Description |
---|
boolean | True if in battle |
Initialize the unit
Check if all members are dead
Returns:
Type | Description |
---|
boolean | True if all members are dead |
Make member's actions
Get unit members
Returns:
Type | Description |
---|
Array | Unit members |
Get unit members who can move
Returns:
Type | Description |
---|
Array | Unit members who can move |
Processing when battle ends
onBattleStart(advantageous)
Processing when battle starts
Name | Type | Description |
---|
advantageous | boolean | If the unit has the advantage |
Pick a random dead target in the unit
Returns:
Pick a random target in the unit
Returns:
Select a member of the unit
Choose a dead target by id
Name | Type | Description |
---|
index | number | The index of the target |
Returns:
Choose a target by id
Name | Type | Description |
---|
index | number | The index of the target |
Returns:
Get the substitute battler
Returns:
Sum the unit's target rate
Returns:
Type | Description |
---|
number | Unit target rate sum |
Get the TPB base speed
Returns:
Type | Description |
---|
number | TPB base speed |
Get the TPB reference time
Returns:
Type | Description |
---|
number | TPB reference time |
Update TPB