Aller au contenu

Photo

Conditional to check if a creature is a party member.


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

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
It seems like this conditional should cover it:

Checking to see if oTarget is in the player's party. 

if (GetIsOwnedByPlayer(GetFactionLeader(oTarget))

This should see if oTarget is in a player's party.  Am I missing anything?

#2
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages
Do you want to include summoned creatures, animal companions, and familiars? I think this may include them if they are owned by the faction leader but otherwise not. I have a debug item in King's Festival called bb_it_partyreport that can help figure out this sort of thing.

#3
Guest_Chaos Wielder_*

Guest_Chaos Wielder_*
  • Guests
You could try GetFactionEqual.

#4
Shaughn78

Shaughn78
  • Members
  • 637 messages
I sometimes use IsInParty(sRosterName) from the include ginc_companion