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 troop data
Clear all member actions
Clear results for all members
Get unit members who are dead
Returns:
Type | Description |
---|
Array | Unit members who are dead |
enemyNames()Array.<string>
Get the enemy names
Returns:
Type | Description |
---|
Array.<string> | The names of the enemies |
Get total exp from all dead enemies
Returns:
Type | Description |
---|
number | The total exp |
Get the gold rate to use
Returns:
Type | Description |
---|
number | The gold rate |
Get total gold from all dead enemies
Returns:
Type | Description |
---|
number | The total gold |
Check if the unit is in battle
Returns:
Type | Description |
---|
boolean | True if in battle |
Processing when the turn is increased
Initialize the unit
Check if all members are dead
Returns:
Type | Description |
---|
boolean | True if all members are dead |
Check if there is an event running
Returns:
Type | Description |
---|
boolean | True if there is an event running |
Check if TPB turn is ended
Returns:
Type | Description |
---|
boolean | True if turn is ended |
letterTable()Array.<string>
Get the letter table for use in enemy names
Returns:
Type | Description |
---|
Array.<string> | The letter table to use |
Make member's actions
Get dropped items
Returns:
Type | Description |
---|
Array | Array of dropped items |
Makes unique names for enemies if multiple enemies of the same base name exist
meetsConditions(page)boolean
Check if an event page's conditions are met
Name | Type | Description |
---|
page | Object | The event page object to check |
Returns:
Type | Description |
---|
boolean | True if conditions are met |
Get the enemy members
Returns:
Type | Description |
---|
Array.<Game_Enemy> | Array of enemy members |
Get unit members who can move
Returns:
Type | Description |
---|
Array | Unit members who can move |
Processing when battle ends
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
Set up the troop
Name | Type | Description |
---|
troopId | number | The troop id to set up |
Sets up a battle event
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 |
Get the troop data object
Returns:
Type | Description |
---|
Object | The troop data object |
Get the turn count
Returns:
Type | Description |
---|
number | The turn count |
Update event interpreter
Updates the enemy's plural name flags
Update TPB