Aller au contenu

Photo

Party Editor, looping through party members


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

#1
Jereniva

Jereniva
  • Members
  • 124 messages

How do you call the party editor from script?

 

When looping through a party, are functions different since the newer functionality added with Storm of Zehir? I think before I'd use GetFirstPC, then GetNextPC until returned invalid object. Has that changed?

 

My searches don't find anything, I think I'm just not searching on the right words maybe.

 



#2
Tchos

Tchos
  • Members
  • 5 054 messages

For the party editor, you need to copy the necessary scripts out of the SoZ campaign folder.  There are a good number of other scripts in there that are just handy to have around, too, like gc_npc_tag, which allows you to create special dialogue for any companions you may design, so you might want to just copy all scripts from the folder.

 

The way you'll want to do a party loop is like this:

	object oPartyMember = GetFirstFactionMember(oPC, FALSE);
	while(GetIsObjectValid(oPartyMember))
	{
		//do stuff here

		oPartyMember = GetNextFactionMember(oPC, FALSE);
	}

The two "FALSE"s are necessary for it to consider your party members as valid PCs.

 

Also, I recommend opening up the Storm of Zehir campaign and checking out the party registry book so you can see what scripts they're calling and how they handle party management.


  • Jereniva aime ceci

#3
Jereniva

Jereniva
  • Members
  • 124 messages

Thank you Tchos.



#4
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 592 messages

You might look at this: <http://bbellina.blog...ampaigns.html>.