Class in reactor_objects_map.js

Game_Event

39 public functions in 6 groups · show internal (_) functions

Everything here is tracked by Game Objects: the party, the map, its events.

Familiar territory. Game_Event 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 4

initialize() Sets up a new instance.
initMembers() Initializes the members.
setupPage() Setup page.
setupPageSettings() Setup page settings.

Getting Information 2

list() List.
findProperPageIndex() Finds the proper page index.

Checks (True / False) 7

isCollidedWithCharacters() Whether it is collided with characters.
isCollidedWithEvents() Whether it is collided with events.
isCollidedWithPlayerCharacters() Whether it is collided with player characters.
isNearThePlayer() Whether it is near the player.
isStarting() Whether it is starting.
isTriggerIn() Whether it is trigger in.
isOriginalPattern() Whether it is original pattern.

Actions 8

stopCountThreshold() Stops the count threshold.
moveTypeRandom() Move type random.
moveTypeTowardPlayer() Move type toward player.
moveTypeCustom() Move type custom.
clearStartingFlag() Clears the starting flag.
start() Start.
clearPageSettings() Clears the page settings.
resetPattern() Resets the pattern.

Updating & Drawing 5

updateStop() Updates the stop each frame.
updateSelfMovement() Updates the self movement each frame.
refresh() Refresh.
update() Update.
updateParallel() Updates the parallel each frame.

Other 13

eventId() Event id.
event() Event.
page() Page.
lock() Lock.
unlock() Unlock.
erase() Erase.
meetsConditions() Meets conditions.
reactorSetupPageImage() A page's Image options (page.rrImage = { mirror, flip, angle, pivot }): the page starts its picture turned th…
checkEventTriggerTouch() Check event trigger touch.
checkEventTriggerAuto() Check event trigger auto.
locate() Locate.
forceMoveRoute() Force move route.
pos() Pos.

Setup & Creation

initialize

method source
Game_Event.prototype.initialize(mapId, eventId)

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

initMembers

method source
Game_Event.prototype.initMembers()

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

setupPage

method source
Game_Event.prototype.setupPage()

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

setupPageSettings

method source
Game_Event.prototype.setupPageSettings()

Setup page settings. (Same as the RPG Maker MZ method of this name.)

Getting Information

list

method source
Game_Event.prototype.list()

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

findProperPageIndex

method source
Game_Event.prototype.findProperPageIndex()

Finds the proper page index. (Same as the RPG Maker MZ method of this name.)

Checks (True / False)

isCollidedWithCharacters

method source
Game_Event.prototype.isCollidedWithCharacters(x, y)

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

isCollidedWithEvents

method source
Game_Event.prototype.isCollidedWithEvents(x, y)

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

isCollidedWithPlayerCharacters

method source
Game_Event.prototype.isCollidedWithPlayerCharacters(x, y)

Whether it is collided with player characters. (Same as the RPG Maker MZ method of this name.)

isNearThePlayer

method source
Game_Event.prototype.isNearThePlayer()

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

isStarting

method source
Game_Event.prototype.isStarting()

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

isTriggerIn

method source
Game_Event.prototype.isTriggerIn(triggers)

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

isOriginalPattern

method source
Game_Event.prototype.isOriginalPattern()

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

Actions

stopCountThreshold

method source
Game_Event.prototype.stopCountThreshold()

Stops the count threshold. (Same as the RPG Maker MZ method of this name.)

moveTypeRandom

method source
Game_Event.prototype.moveTypeRandom()

Move type random. (Same as the RPG Maker MZ method of this name.)

moveTypeTowardPlayer

method source
Game_Event.prototype.moveTypeTowardPlayer()

Move type toward player. (Same as the RPG Maker MZ method of this name.)

moveTypeCustom

method source
Game_Event.prototype.moveTypeCustom()

Move type custom. (Same as the RPG Maker MZ method of this name.)

clearStartingFlag

method source
Game_Event.prototype.clearStartingFlag()

Clears the starting flag. (Same as the RPG Maker MZ method of this name.)

start

method source
Game_Event.prototype.start()

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

clearPageSettings

method source
Game_Event.prototype.clearPageSettings()

Clears the page settings. (Same as the RPG Maker MZ method of this name.)

resetPattern

method source
Game_Event.prototype.resetPattern()

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

Updating & Drawing

updateStop

method source
Game_Event.prototype.updateStop()

Updates the stop each frame. (Same as the RPG Maker MZ method of this name.)

updateSelfMovement

method source
Game_Event.prototype.updateSelfMovement()

Updates the self movement each frame. (Same as the RPG Maker MZ method of this name.)

refresh

method source
Game_Event.prototype.refresh()

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

update

method source
Game_Event.prototype.update()

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

updateParallel

method source
Game_Event.prototype.updateParallel()

Updates the parallel each frame. (Same as the RPG Maker MZ method of this name.)

Other

eventId

method source
Game_Event.prototype.eventId()

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

event

method source
Game_Event.prototype.event()

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

page

method source
Game_Event.prototype.page()

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

lock

method source
Game_Event.prototype.lock()

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

unlock

method source
Game_Event.prototype.unlock()

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

erase

method source
Game_Event.prototype.erase()

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

meetsConditions

method source
Game_Event.prototype.meetsConditions(page)

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

reactorSetupPageImage

method source
Game_Event.prototype.reactorSetupPageImage(page)

A page's Image options (page.rrImage = { mirror, flip, angle, pivot }): the page starts its picture turned that way.

Details

A page's Image options (page.rrImage = { mirror, flip, angle, pivot }): the page starts its picture turned that way. A page without them leaves a turn a route gave the event as it is, unless the page before set one: that turn was the page's and goes with it. Plain MZ pages never touch it.

checkEventTriggerTouch

method source
Game_Event.prototype.checkEventTriggerTouch(x, y)

Check event trigger touch. (Same as the RPG Maker MZ method of this name.)

checkEventTriggerAuto

method source
Game_Event.prototype.checkEventTriggerAuto()

Check event trigger auto. (Same as the RPG Maker MZ method of this name.)

locate

method source
Game_Event.prototype.locate(x, y)

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

forceMoveRoute

method source
Game_Event.prototype.forceMoveRoute(moveRoute)

Force move route. (Same as the RPG Maker MZ method of this name.)

pos

method source
Game_Event.prototype.pos(x, y)

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