Class: Game_Temp

Game_Temp

new Game_Temp()

The game object class for temporary data that is not included in save data.

Methods

clearBattleRefreshRequest()

Clears battle refresh requests

clearCommonEventReservation()

Clears reserved common events
Since:
  • Version 1.4.0

clearDestination()

Clears the destination

clearTouchState()

Clear the touch state

destinationX()number

Get the x coordinate for the destination
Returns:
TypeDescription
numberDestination x coordinate

destinationY()number

Get the y coordinate for the destination
Returns:
TypeDescription
numberDestination y coordinate

initialize()

Initialize the object

isBattleRefreshRequested()boolean

Check if battle refresh is requested
Returns:
TypeDescription
booleanTrue if battle refresh is requested

isCommonEventReserved()boolean

Check if there are any common events reserved
Returns:
TypeDescription
booleanTrue if any common events are reserved

isDestinationValid()boolean

Check if the destination is valid
Returns:
TypeDescription
booleanTrue if valid

isPlaytest()boolean

Check if the game is in playtest mode
Returns:
TypeDescription
booleanTrue if playtesting

lastActionData(type)number

Get the last action data
NameTypeDescription
typenumberThe type of data
Returns:
TypeDescription
numberLast action data

requestAnimation(targets, animationId, mirror)

Requests an animation
NameTypeDefaultDescription
targetsArrayThe targets of the animation
animationIdnumberThe id of the animation to play
mirrorbooleanfalseoptionalIf the animation request is mirror type

requestBalloon(target, balloonId)

Requests a balloon
NameTypeDescription
targetGame_CharacterThe targets of the balloon
balloonIdnumberThe id of the balloon

requestBattleRefresh()

Requests a battle refresh

reserveCommonEvent(commonEventId)

Reserves a common event by id
NameTypeDescription
commonEventIdnumberThe common event id to reserve

retrieveAnimation()Object

Gets a requested animation
Returns:
TypeDescription
ObjectA requested animation

retrieveBalloon()Object

Gets a requested balloon
Returns:
TypeDescription
ObjectA requested balloon

retrieveCommonEvent()Object

Retrieves a common event from the reserved common events
Returns:
TypeDescription
ObjectThe common event data object

setDestination(x, y)

Set the destination x/y coordinates
NameTypeDescription
xnumberThe x coordinate for the destination
ynumberThe y coordinate for the destination

setLastActionData(type, value)

Set the last action data
NameTypeDescription
typenumberThe type of data to set
valuenumberThe value to set

setLastSubjectActorId(actorID)

Set the last subject actor data
NameTypeDescription
actorIDnumberThe actor id

setLastSubjectEnemyIndex(enemyIndex)

Set the last subject enemy index data
NameTypeDescription
enemyIndexnumberThe enemy index

setLastTargetActorId(actorID)

Set the last target actor data
NameTypeDescription
actorIDnumberThe actor id

setLastTargetEnemyIndex(enemyIndex)

Set the last target enemy index data
NameTypeDescription
enemyIndexnumberThe enemy index

setLastUsedItemId(itemID)

Set the last item data
NameTypeDescription
itemIDnumberThe item id

setLastUsedSkillId(skillID)

Set the last skill data
NameTypeDescription
skillIDnumberThe skill id

setTouchState(target, state)

Sets the touch state
NameTypeDescription
targetGame_BattlerThe target
statestringThe touch state

touchState()string

Get the touch state
Returns:
TypeDescription
stringThe touch state
Get the touch target
Returns:
TypeDescription
Game_BattlerThe target