Aller au contenu

Photo

Old question - How to Have More Than 3 Companions? [Resolved]


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
Morbane

Morbane
  • Members
  • 1 883 messages
 So...Does anyone know that best way to do this? Is it only scripted? I am sp in directory mode (non-campaigne).

:blink::D

Modifié par Morbane, 01 octobre 2011 - 09:44 .


#2
The Fred

The Fred
  • Members
  • 2 516 messages
No, it's perfectly possible I'm pretty sure, but do you mean in the OC or just in your own game?

#3
Morbane

Morbane
  • Members
  • 1 883 messages
My own module - I would like the player to have the option to have 4 companions.

The exact method isn't important - scripted or otherwise - but if it is scripted, an example might be nice :huh:

Modifié par Morbane, 30 septembre 2011 - 10:11 .


#4
Shallina

Shallina
  • Members
  • 1 012 messages
There is absolutly no limit on the number of compagnion by default.

Wich mean, if you want restrictions you have to script it so they can't have more than 4.

By default you can add as many as you want.

#5
Morbane

Morbane
  • Members
  • 1 883 messages
I use this for Comp selection and it maxes out at 3

#include "ginc_gui"
void main()
{
object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

AssignCommand(oPC, ClearAllActions());

AddRosterMemberByTemplate("aldonoth", "aldonoth");
AddRosterMemberByTemplate("kage", "kage");
AddRosterMemberByTemplate("zanz", "zanz");
AddRosterMemberByTemplate("sesha", "sesha");
AddRosterMemberByTemplate("voltus", "voltus");
AddRosterMemberByTemplate("cancel", "cancel");

ShowPartySelect(oPC, TRUE, "", TRUE);

}

The module this is for has a max party from the start... which they get to select from the above list.

Modifié par Morbane, 01 octobre 2011 - 02:26 .


#6
Claudius33

Claudius33
  • Members
  • 258 messages
Hello, I

I think SetRosterNPCLImit is the function you are looking for :

//RWT-OEI 09/29/05
//This command puts a limit on the number of Roster NPCS that can be
//added to a player's party via the Party Selection GUI.
//The default is always 3, unless changed via this script function
void SetRosterNPCPartyLimit( int nLimit );

#7
Morbane

Morbane
  • Members
  • 1 883 messages
Thanks Claudius.

Ill look it up for sure.

And then try it.

Then return to thank you again if it worked.

Laters

#8
Morbane

Morbane
  • Members
  • 1 883 messages
Ok Claudius - it worked like a charm - perfecto!

Thanks.

#9
Shallina

Shallina
  • Members
  • 1 012 messages
The roaster limit is just a value it doesn't change anything, you need to check in your script that make your compagnion join your party if you are at number max.

Or else you'll be able to add as many as you have.