masquerade__;323117":b797g15i said:
I was wondering if there is a way to lock an actor in a position other than first.
In my game, I want to have sidequests where an actor will join your party, but he will be controlled by AI, and I don't want it to show him as the party leader.
So I guess what I'm asking is-
Is there a way to lock a player in the fourth position?
Feature Added.
Script updated to version 2.4
You now have to call the scene this way:
$scene = Scene_Party.new(min_actors, max_actors, forced_actors, locked_actors)
min_actors/max_actors are obviously the min/max numbers of actors allowed in the party.
However, the next two arguments are different in this version.
forced_actors is an array containing id of actors forced to be in the party. The new thing here is that you can put nil objects in this array.
Example:
If your array is [1, nil, nil, 3], then actor 1 will be placed in the slot #1 and actor 3 will be placed in slot #4.
locked_actors is an array containing id of actors forced to be locked in the position defined by the previous variable (forced_actors).
@masquerade__
To do what you asked, you will have to call the scene this way:
$scene = Scene_Party.new(min, max, [nil, nil, nil, [COLOR=Red]1[/COLOR]],[[COLOR=Blue]1[/COLOR]])
[nil, nil, nil,
1] means that all slots will be empty except slot #4 in which Aluxes (actor id
1) will be.
[
1] means that Aluxes will be locked (in slot
4)