Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

[answered] Jump between windows

A13XIS

Villager
Xy$
0.00
Hi there. :)

I'm trying to create a Battle Actor Selection.
The Battle system has a maximum of 3 slots which have different side effects, so I need one ("Command")window to select the slot and a second one to select a character.
Now this "window jumping" does occur in the standart BS as well, so definitely is possible.

My question is: How?

Or rather how to get this information to show it on the first window.

Edit: Okay. For someone who's almost a professional, this was a pretty stupid question.
If you do it from the Scenes perspective you get all the functions!

JavaScript:
Scene_Battle.prototype.selectActorSelection = function() {
    this._actorSelector.refresh();
    this._actorSelector.show();
    this._actorSelector.select(0);
    this._actorSelector.activate();
};

-----------------------------------------------

Scene_Battle.prototype.onSelectionComplete = function() {
  //resetting battle members
  this._actorSelector.hide();
  this._slotSelector.refresh()
//if the "refresh"-function is using the same battle members variable, the window is updated
};
 
Last edited:
Top