Class in reactor_objects_battlers.js

Game_Party

74 public functions in 7 groups · show internal (_) functions

Actors and their stats.

Familiar territory. Game_Party keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

Quick Reference

Setup & Creation 8

initialize() Sets up a new instance.
initAllItems() Initializes the all items.
setupStartingMembers() Setup starting members.
setupBattleTest() Setup battle test.
setupBattleTestMembers() Setup battle test members.
setupBattleTestItems() Setup battle test items.
makeMenuActorNext() Makes the menu actor next.
makeMenuActorPrevious() Makes the menu actor previous.

Getting Information 6

size() Size.
maxBattleMembers() The maximum battle members.
itemContainer() Item container.
name() Name.
maxGold() The maximum gold.
maxItems() The maximum items.

Checks (True / False) 14

isEmpty() Whether it is empty.
hasMaxItems() Whether it has the max items.
hasItem() Whether it has the item.
isAnyMemberEquipped() Whether it is any member equipped.
canUse() Whether it can use.
canInput() Whether it can input.
isAllDead() Whether it is all dead.
isEscaped() Whether it is escaped.
hasEncounterHalf() Whether it has the encounter half.
hasEncounterNone() Whether it has the encounter none.
hasCancelSurprise() Whether it has the cancel surprise.
hasRaisePreemptive() Whether it has the raise preemptive.
hasGoldDouble() Whether it has the gold double.
hasDropItemDouble() Whether it has the drop item double.

Actions 17

removeInvalidMembers() Removes the invalid members.
reviveBattleMembers() Revive battle members.
equipItems() Equip items.
addActor() Adds the actor.
removeActor() Removes the actor.
gainGold() Gains the gold.
loseGold() Loses the gold.
gainItem() Gains the item.
loseItem() Loses the item.
setMenuActor() Sets the menu actor.
setTargetActor() Sets the target actor.
setLastItem() Sets the last item.
swapOrder() Swap order.
performVictory() Plays the victory effect.
performEscape() Plays the escape effect.
removeBattleStates() Removes the battle states.
requestMotionRefresh() Requests the motion refresh.

Events, Commands & Input 2

onPlayerWalk() Called when player walk happens.
onEscapeFailure() Called when escape failure happens.

Updating & Drawing 1

steps() Steps.

Other 26

exists() Exists.
members() Members.
allMembers() All members.
battleMembers() Battle members.
hiddenBattleMembers() Hidden battle members.
allBattleMembers() All battle members.
leader() Leader.
items() Items.
weapons() Weapons.
armors() Armors.
allItems() All items.
highestLevel() Highest level.
gold() Gold.
rrHigherLimits() Rr higher limits.
increaseSteps() Increase steps.
numItems() Num items.
discardMembersEquip() Discard members equip.
consumeItem() Consume item.
menuActor() Menu actor.
targetActor() Target actor.
lastItem() Last item.
charactersForSavefile() Characters for savefile.
facesForSavefile() Faces for savefile.
partyAbility() Party ability.
ratePreemptive() Rate preemptive.
rateSurprise() Rate surprise.

Setup & Creation

initialize

method source
Game_Party.prototype.initialize()

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

initAllItems

method source
Game_Party.prototype.initAllItems()

Initializes the all items. (Same as the RPG Maker MZ method of this name.)

setupStartingMembers

method source
Game_Party.prototype.setupStartingMembers()

Setup starting members. (Same as the RPG Maker MZ method of this name.)

setupBattleTest

method source
Game_Party.prototype.setupBattleTest()

Setup battle test. (Same as the RPG Maker MZ method of this name.)

setupBattleTestMembers

method source
Game_Party.prototype.setupBattleTestMembers()

Setup battle test members. (Same as the RPG Maker MZ method of this name.)

setupBattleTestItems

method source
Game_Party.prototype.setupBattleTestItems()

Setup battle test items. (Same as the RPG Maker MZ method of this name.)

makeMenuActorNext

method source
Game_Party.prototype.makeMenuActorNext()

Makes the menu actor next. (Same as the RPG Maker MZ method of this name.)

makeMenuActorPrevious

method source
Game_Party.prototype.makeMenuActorPrevious()

Makes the menu actor previous. (Same as the RPG Maker MZ method of this name.)

Getting Information

size

method source
Game_Party.prototype.size()

Size. (Same as the RPG Maker MZ method of this name.)

maxBattleMembers

method source
Game_Party.prototype.maxBattleMembers()

The maximum battle members. (Same as the RPG Maker MZ method of this name.)

itemContainer

method source
Game_Party.prototype.itemContainer(item)

Item container. (Same as the RPG Maker MZ method of this name.)

name

method source
Game_Party.prototype.name()

Name. (Same as the RPG Maker MZ method of this name.)

maxGold

method source
Game_Party.prototype.maxGold()

The maximum gold. (Same as the RPG Maker MZ method of this name.)

maxItems

method source
Game_Party.prototype.maxItems(/*item*/)

The maximum items. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isEmpty

method source
Game_Party.prototype.isEmpty()

Whether it is empty. (Same as the RPG Maker MZ method of this name.)

hasMaxItems

method source
Game_Party.prototype.hasMaxItems(item)

Whether it has the max items. (Same as the RPG Maker MZ method of this name.)

hasItem

method source
Game_Party.prototype.hasItem(item, includeEquip)

Whether it has the item. (Same as the RPG Maker MZ method of this name.)

isAnyMemberEquipped

method source
Game_Party.prototype.isAnyMemberEquipped(item)

Whether it is any member equipped. (Same as the RPG Maker MZ method of this name.)

canUse

method source
Game_Party.prototype.canUse(item)

Whether it can use. (Same as the RPG Maker MZ method of this name.)

canInput

method source
Game_Party.prototype.canInput()

Whether it can input. (Same as the RPG Maker MZ method of this name.)

isAllDead

method source
Game_Party.prototype.isAllDead()

Whether it is all dead. (Same as the RPG Maker MZ method of this name.)

isEscaped

method source
Game_Party.prototype.isEscaped()

Whether it is escaped. (Same as the RPG Maker MZ method of this name.)

hasEncounterHalf

method source
Game_Party.prototype.hasEncounterHalf()

Whether it has the encounter half. (Same as the RPG Maker MZ method of this name.)

hasEncounterNone

method source
Game_Party.prototype.hasEncounterNone()

Whether it has the encounter none. (Same as the RPG Maker MZ method of this name.)

hasCancelSurprise

method source
Game_Party.prototype.hasCancelSurprise()

Whether it has the cancel surprise. (Same as the RPG Maker MZ method of this name.)

hasRaisePreemptive

method source
Game_Party.prototype.hasRaisePreemptive()

Whether it has the raise preemptive. (Same as the RPG Maker MZ method of this name.)

hasGoldDouble

method source
Game_Party.prototype.hasGoldDouble()

Whether it has the gold double. (Same as the RPG Maker MZ method of this name.)

hasDropItemDouble

method source
Game_Party.prototype.hasDropItemDouble()

Whether it has the drop item double. (Same as the RPG Maker MZ method of this name.)

Actions

removeInvalidMembers

method source
Game_Party.prototype.removeInvalidMembers()

Removes the invalid members. (Same as the RPG Maker MZ method of this name.)

reviveBattleMembers

method source
Game_Party.prototype.reviveBattleMembers()

Revive battle members. (Same as the RPG Maker MZ method of this name.)

equipItems

method source
Game_Party.prototype.equipItems()

Equip items. (Same as the RPG Maker MZ method of this name.)

addActor

method source
Game_Party.prototype.addActor(actorId)

Adds the actor. (Same as the RPG Maker MZ method of this name.)

removeActor

method source
Game_Party.prototype.removeActor(actorId)

Removes the actor. (Same as the RPG Maker MZ method of this name.)

gainGold

method source
Game_Party.prototype.gainGold(amount)

Gains the gold. (Same as the RPG Maker MZ method of this name.)

loseGold

method source
Game_Party.prototype.loseGold(amount)

Loses the gold. (Same as the RPG Maker MZ method of this name.)

gainItem

method source
Game_Party.prototype.gainItem(item, amount, includeEquip)

Gains the item. (Same as the RPG Maker MZ method of this name.)

loseItem

method source
Game_Party.prototype.loseItem(item, amount, includeEquip)

Loses the item. (Same as the RPG Maker MZ method of this name.)

setMenuActor

method source
Game_Party.prototype.setMenuActor(actor)

Sets the menu actor. (Same as the RPG Maker MZ method of this name.)

setTargetActor

method source
Game_Party.prototype.setTargetActor(actor)

Sets the target actor. (Same as the RPG Maker MZ method of this name.)

setLastItem

method source
Game_Party.prototype.setLastItem(item)

Sets the last item. (Same as the RPG Maker MZ method of this name.)

swapOrder

method source
Game_Party.prototype.swapOrder(index1, index2)

Swap order. (Same as the RPG Maker MZ method of this name.)

performVictory

method source
Game_Party.prototype.performVictory()

Plays the victory effect. (Same as the RPG Maker MZ method of this name.)

performEscape

method source
Game_Party.prototype.performEscape()

Plays the escape effect. (Same as the RPG Maker MZ method of this name.)

removeBattleStates

method source
Game_Party.prototype.removeBattleStates()

Removes the battle states. (Same as the RPG Maker MZ method of this name.)

requestMotionRefresh

method source
Game_Party.prototype.requestMotionRefresh()

Requests the motion refresh. (Same as the RPG Maker MZ method of this name.)

Events, Commands & Input

onPlayerWalk

method source
Game_Party.prototype.onPlayerWalk()

Called when player walk happens. (Same as the RPG Maker MZ method of this name.)

onEscapeFailure

method source
Game_Party.prototype.onEscapeFailure()

Called when escape failure happens. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

steps

method source
Game_Party.prototype.steps()

Steps. (Same as the RPG Maker MZ method of this name.)

Other

exists

method source
Game_Party.prototype.exists()

Exists. (Same as the RPG Maker MZ method of this name.)

members

method source
Game_Party.prototype.members()

Members. (Same as the RPG Maker MZ method of this name.)

allMembers

method source
Game_Party.prototype.allMembers()

All members. (Same as the RPG Maker MZ method of this name.)

battleMembers

method source
Game_Party.prototype.battleMembers()

Battle members. (Same as the RPG Maker MZ method of this name.)

hiddenBattleMembers

method source
Game_Party.prototype.hiddenBattleMembers()

Hidden battle members. (Same as the RPG Maker MZ method of this name.)

allBattleMembers

method source
Game_Party.prototype.allBattleMembers()

All battle members. (Same as the RPG Maker MZ method of this name.)

leader

method source
Game_Party.prototype.leader()

Leader. (Same as the RPG Maker MZ method of this name.)

items

method source
Game_Party.prototype.items()

Items. (Same as the RPG Maker MZ method of this name.)

weapons

method source
Game_Party.prototype.weapons()

Weapons. (Same as the RPG Maker MZ method of this name.)

armors

method source
Game_Party.prototype.armors()

Armors. (Same as the RPG Maker MZ method of this name.)

allItems

method source
Game_Party.prototype.allItems()

All items. (Same as the RPG Maker MZ method of this name.)

highestLevel

method source
Game_Party.prototype.highestLevel()

Highest level. (Same as the RPG Maker MZ method of this name.)

gold

method source
Game_Party.prototype.gold()

Gold. (Same as the RPG Maker MZ method of this name.)

rrHigherLimits

static source
Game_Party.rrHigherLimits()

Rr higher limits. (Same as the RPG Maker MZ method of this name.)

increaseSteps

method source
Game_Party.prototype.increaseSteps()

Increase steps. (Same as the RPG Maker MZ method of this name.)

numItems

method source
Game_Party.prototype.numItems(item)

Num items. (Same as the RPG Maker MZ method of this name.)

discardMembersEquip

method source
Game_Party.prototype.discardMembersEquip(item, amount)

Discard members equip. (Same as the RPG Maker MZ method of this name.)

consumeItem

method source
Game_Party.prototype.consumeItem(item)

Consume item. (Same as the RPG Maker MZ method of this name.)

targetActor

method source
Game_Party.prototype.targetActor()

Target actor. (Same as the RPG Maker MZ method of this name.)

lastItem

method source
Game_Party.prototype.lastItem()

Last item. (Same as the RPG Maker MZ method of this name.)

charactersForSavefile

method source
Game_Party.prototype.charactersForSavefile()

Characters for savefile. (Same as the RPG Maker MZ method of this name.)

facesForSavefile

method source
Game_Party.prototype.facesForSavefile()

Faces for savefile. (Same as the RPG Maker MZ method of this name.)

partyAbility

method source
Game_Party.prototype.partyAbility(abilityId)

Party ability. (Same as the RPG Maker MZ method of this name.)

ratePreemptive

method source
Game_Party.prototype.ratePreemptive(troopAgi)

Rate preemptive. (Same as the RPG Maker MZ method of this name.)

rateSurprise

method source
Game_Party.prototype.rateSurprise(troopAgi)

Rate surprise. (Same as the RPG Maker MZ method of this name.)