Aller au contenu

Photo

Followers/Companions partypicker issue!!


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

#26
Mengtzu

Mengtzu
  • Members
  • 258 messages
Use FOLLOWER_STATE_AVAILABLE rather than FOLLOWER_STATE_ACTIVE?

#27
JR_ANGELO_BR

JR_ANGELO_BR
  • Members
  • 35 messages
Thank you for your reply. I made the change, but the follower still appears selected at the end of the animation when the partypicker is shown. Is it possible to be something wrong with my hiring script? I'm using this:



void main()

{

object oFollower = GetObjectByTag("my_follower");

SetPartyPickerGUIStatus(2);

ShowPartyPickerGUI();

UT_HireFollower(oFollower);

SetFollowerApprovalEnabled(oFollower, TRUE);

AdjustFollowerApproval(oFollower, 5, TRUE);

}



I’d appreciate your help.


#28
Proleric

Proleric
  • Members
  • 2 350 messages
This hiring script is closer to what the OC does. The new follower starts unselected (though in the example given, the party picker is only invoked if the party is already full).

#29
JR_ANGELO_BR

JR_ANGELO_BR
  • Members
  • 35 messages
Thanks again for your help. I'll try to work with "if (GetArraySize(GetPartyList(oPC)) < 4)" , because I would like the Party Picker to be displayed even for less than 3 followers.

#30
JR_ANGELO_BR

JR_ANGELO_BR
  • Members
  • 35 messages
It is almost finished. I could not use “SetLocalInt(oFollower, CREATURE_REWARD_FLAGS, 0)” to solve XP gain issue, so I tried “WR_SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE, TRUE, 0, bPreventLevelup” succesfuly. I also used “if (GetArraySize(GetPartyList(oPC)) < 1)”, instead of “<4” to display the partypicker since the first member added (just to see the follower ‘s animation at the first time). But the fired follower simply disappears from the area. We don’t quite see this in the main game because the party picker is used with area transitions. But when the hero returns to the original area, the “not chosen” member is already there. Is it possible to just bring the member back to the area when he or she is fired? I cannot have the follower reappearing, even if I reload the area. The only way I find to bring the follower back is firing another follower to choose the first fired one back. I would like to have the hero interacting again with the fifth follower, without having to bring him or back to the party, just as we see in the main game: the hero can get rid of all his followers and come back to talk to them.

#31
Proleric

Proleric
  • Members
  • 2 350 messages

JR_ANGELO_BR wrote...

...Is it possible to just bring the member back to the area when he or she is fired?...

IIRC there's a snag with this - the follower's quickslots are empty when they're hired again.

As you know, the OC never creates a fired follower in the current area, so perhaps it's no surprise that this functionality doesn't seem to work.

It's probably best to go with the flow here - ask the player to suspend their disbelief, and accept that fired followers just vanish, only to reappear in camp or when the party picker is enabled. Think of them as camp followers who are just out of sight, if you like.

Or maybe someone has a fix for this...

#32
JR_ANGELO_BR

JR_ANGELO_BR
  • Members
  • 35 messages
Well. That is not quite what I had in mind, but I can live with that. Maybe I will use the scritpt bellow in a conversation line such as "I wish you could leave" to have the chance not to vanish my old pal, before partypicker function is called:



void UT_FireFollower(

object oFollower,

int bRemoveFromPool = FALSE,

int bRemoveEquipment = TRUE

);