Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Party Reserve Tools

What don't you understand about it? The directions are there.

To call it;
Put this in an event > call script command;

$scene = Scene_PartyChange.new(value)
value = the maximum active party size. which is usually 4

To reserve a party member do following in the same call script comand

$game_party.actors[index].required = true
index = 0-3, where 0 is the first party member and 3 is the last

Here is an example;

Lets say we don't want Arshes to change and want to change the other party members. Arshes is usally the first one in the party and ther can be only 4 people in the party;

We first go to the event;
Then double click the event's command list;
Go to page 3;
Look for "Script...";
Write the following;

$game_party.actors[0].required = true
$scene = Scene_PartyChange.new(4)

Hope that helps;
 
i get the directions, but for example:
Code:
class Game_Actor < Game_Battler
# ---------------------
attr_accessor :required
[...]
@required = false
[...]

what do i change the [...] to?

and here:
Code:
class Game_Party
# ---------------------
attr_accessor :reserve_actors
[...]
@reserve_actors = []
[...]
# ---------------------
def add_actor(actor_id) # replace this method
    actor = $game_actors[actor_id]
    if @actors.size < 4 and not @actors.include?(actor)
      @actors.push(actor)
      $game_player.refresh
    else
      if not @reserve_actors.include?(actor)
        @reserve_actors.push(actor)
      end
    end
  end
# ---------------------
def remove_actor(actor_id) # replace this method
  @actors.delete($game_actors[actor_id])
  @reserve_actors.delete($game_actors[actor_id])
  $game_player.refresh
end
# ---------------------
def swap(actor1, actor2) # new method
    error = false
    if not @actors.include?(actor1)
      error = true
    end
    if not @reserve_actors.include?(actor2)
      error = true
    end
    if error
      print("Cannot swap members.  One or both are not in the porper position.")
    end
    temp = actor1
    @actors.delete(actor1)
    @reserve_actors.push(temp)
    add_actor(actor2.id)
    @reserve_actors.delete(actor2)
  end
# ---------------------
 def transfer_to_party(reserve_actor) # new method
    if not @reserve_actors.include?(reserve_actor)
      print("Warning: Requested character is not in the reserve party.")
      return
    end
    if @actors.size == 4
      print("Warning: Main party is full.")
      return
    end
    add_actor(reserve_actor.id)
    @reserve_actors.delete(reserve_actor)
  end
# ---------------------
 def transfer_to_reserve(main_party_actor) # new method
    if not @actors.include?(main_party_actor)
      print("Warning: Requested character is not in the main party.")
      return
    end
    remove_actor(main_party_actor.id)
    @reserve_actors.push(main_party_actor)
  end
Where it says:
Code:
def add_actor(actor_id) # replace this method
what do I change that to?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top