Aller au contenu

Photo

How can i Add a Party Member?


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

#1
Dherelv

Dherelv
  • Members
  • 96 messages
After endless hours looking for it, i can't find a way to add a Character/Creature to my party, in my test module...

All i want to do is to add the party member after some simple conversation. I supose i should do it on a script, that i would link to a conversation Line, but, from the script documentation i found so far at the DA Toolset Wiki none of the functions says anything about adding a party member...

Should i understand that the toolset is for "Solo Mode" campaigns only?

So far, this is what i have:

An area, with that "The Gounlet" scenario where we find andraste's ashes
A Creature, Duncan by the way
A very simple conversation, that goes like this:

Duncan: Do you want me on your team?
Me: (Single Option): Yes!
Duncan: Fine then... <- I have a script linked to this convers. line, but so far i'm not shure what to write in it...

Any help is welcome!!

Thanks.

#2
Tikigod60

Tikigod60
  • Members
  • 48 messages
From the toolsetWiki:

Add a follower to the players team:

if(IsPlayer(oCreature)) {
object oFollower = GetObjectByTag("myfollower");
UT_HireFollower(oCreature, oFollower);
}


http://social.biowar...dex.php/How-tos


Not had the chance to use it yet, but should do the job.

Modifié par Tikigod60, 29 novembre 2009 - 11:29 .


#3
Proleric

Proleric
  • Members
  • 2 363 messages
The following code works fine, and uses the recommended wrapper function:
SetGroupId(oConversationOwner, GetGroupId(oPC));
WR_SetFollowerState(oConversationOwner, FOLLOWER_STATE_ACTIVE);
Maybe this should be in the scripting forum?

Modifié par Proleric1, 30 novembre 2009 - 12:33 .