- Joined
- Aug 24, 2017
- Messages
- 81
- Reaction score
- 8
- First Language
- Chinese
- Primarily Uses
- RMMV
Hi
I am using Multiple Inventories by hime
http://himeworks.com/2015/11/multiple-inventories/
And I want to create selfinventory to leader.
So
I create inventory for each actor
And change inventor when I change leader with a comment event
Using the script below in branch
$gameParty.leader()._actorId === 1
$gameParty.leader()._actorId === 2
$gameParty.leader()._actorId === 3
to detect who's my leader
But it won't activate at once
because comment event is not running during menu
so I need to go back to map and reopen menu to see my inventory change
Than I figure out if make a plugin
and put the script right after
Scene_Menu.prototype.onFormationCancel()
then I don't need to reopen the menu
I am using
var changeAtOnce = Scene_Menu.prototype.onFormationCancel;
Scene_Menu.prototype.onFormationCancel = function() {
changeAtOnce.call(this);
"Code here";
};
Then here comes my question
I am really new to JS
And I just don't know what to put in "Code here" in the script above
Can anyone tell me what script I should use to create new inventory
and what script to put to switch inventory
with Multiple Inventories by hime
Thank you so much for reading my question.
I am using Multiple Inventories by hime
http://himeworks.com/2015/11/multiple-inventories/
And I want to create selfinventory to leader.
So
I create inventory for each actor
And change inventor when I change leader with a comment event
Using the script below in branch
$gameParty.leader()._actorId === 1
$gameParty.leader()._actorId === 2
$gameParty.leader()._actorId === 3
to detect who's my leader
But it won't activate at once
because comment event is not running during menu
so I need to go back to map and reopen menu to see my inventory change
Than I figure out if make a plugin
and put the script right after
Scene_Menu.prototype.onFormationCancel()
then I don't need to reopen the menu
I am using
var changeAtOnce = Scene_Menu.prototype.onFormationCancel;
Scene_Menu.prototype.onFormationCancel = function() {
changeAtOnce.call(this);
"Code here";
};
Then here comes my question
I am really new to JS
And I just don't know what to put in "Code here" in the script above
Can anyone tell me what script I should use to create new inventory
and what script to put to switch inventory
with Multiple Inventories by hime
Thank you so much for reading my question.



