Modifié par Morbane, 01 octobre 2011 - 09:44 .
Old question - How to Have More Than 3 Companions? [Resolved]
Débuté par
Morbane
, sept. 30 2011 08:20
#1
Posté 30 septembre 2011 - 08:20
So...Does anyone know that best way to do this? Is it only scripted? I am sp in directory mode (non-campaigne).

#2
Posté 30 septembre 2011 - 12:47
No, it's perfectly possible I'm pretty sure, but do you mean in the OC or just in your own game?
#3
Posté 30 septembre 2011 - 10:09
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
The exact method isn't important - scripted or otherwise - but if it is scripted, an example might be nice
Modifié par Morbane, 30 septembre 2011 - 10:11 .
#4
Posté 30 septembre 2011 - 11:17
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.
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
Posté 01 octobre 2011 - 02:14
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.
#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
Posté 01 octobre 2011 - 08:42
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 );
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
Posté 01 octobre 2011 - 09:12
Thanks Claudius.
Ill look it up for sure.
And then try it.
Then return to thank you again if it worked.
Laters
Ill look it up for sure.
And then try it.
Then return to thank you again if it worked.
Laters
#8
Posté 01 octobre 2011 - 09:24
Ok Claudius - it worked like a charm - perfecto!
Thanks.
Thanks.
#9
Posté 01 octobre 2011 - 09:48
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.
Or else you'll be able to add as many as you have.





Retour en haut







