Aller au contenu

Photo

Getting all follower objects


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

#1
hoorayforicecream

hoorayforicecream
  • Members
  • 3 420 messages
I've got a script I need to run on the hero and all of her followers. I read another thread in here that said that all followers are in a special area that's always in memory, which makes things easier, and that they can be retrieved by GetObjectByTag. I'm just not sure what their tags are. Does anyone know how to find out what the tags are?

#2
Sunjammer

Sunjammer
  • Members
  • 925 messages
The GetPartyPoolList will return an array of objects representing ALL the available companions. You can iterate over that array and do what you need to do to each in turn. This avoids the need to use GetObjectByTag function to get each companion in turn.

I'm currently AFT (Away From Toolset) but should be home shortly so I can post up an example then if you like.

Modifié par Sunjammer, 30 juin 2011 - 04:14 .


#3
jackkel dragon

jackkel dragon
  • Members
  • 2 047 messages
I don't have my DA2 stuff on my current computer, are you looking for those tags? (DAO tags are in the toolset resources.)

In both cases, I'm pretty sure the tags are usually "gen00fl_<charname>", such as "gen00fl_anders". Unless it's a DLC adventure companion, then the prefix is "gxa00fl_" for Awakening (I don't know the rest of the DLC prefixes.)

That said, Sunjammer's method might be easier. I haven't used it, so I can't say.

#4
hoorayforicecream

hoorayforicecream
  • Members
  • 3 420 messages
I don't need examples, just the function name is sufficient. I'm no stranger to scripting or programming; my biggest issue is that I've got an incomplete API. Thanks for the help.