Aller au contenu

Photo

(Fixed) Followers spawning but not joining from party picker


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

#1
Mengtzu

Mengtzu
  • Members
  • 258 messages
So I've managed to get a number of followers joining the party, and showing up on the party picker.  They even gain XP!

The issue I have is that if a follower is chosen new to the party picker (rather than being added directly with FOLLOWER_STATE_ACTIVE etc), then they spawn into the area but are not added to the party.

I've created m2das for both PartyPicker and party_picker, I've used both UT_HireFollower() and SetGroupID(), I've used both creature_core and custom scripts that pass to player_core on the followers, doesn't seem to make a difference.  Does anyone know a resolution to this problem?


Edit:  since this turned out to be a strictly scripting issue, could a moderator please move it to that forum?






 

Modifié par Mengtzu, 05 janvier 2010 - 02:39 .


#2
Mengtzu

Mengtzu
  • Members
  • 258 messages
I hate to bump, but the grief is strong with this one :)

#3
Mengtzu

Mengtzu
  • Members
  • 258 messages
Fixed! I know this sounds insane, but the party picker does NOT add people to the party. It does however raise EVENT_TYPE_PARTYMEMBER_ADDED. This is usually handled by module_core, and has special cases for each of the OC characters. Even then it doesn't do anything directly, it just sets plot flags which I assume then fire more scripts.



Anyway, for a simple method, you can just set follower status when that event is fired. Capture the event in your module's script, and then do something like the following (this is the full module script for my tiny testing add-in, just to show context):



#include "utility_h"



void main()

{

event ev = GetCurrentEvent();

int nEventType = GetEventType(ev);

switch(nEventType)

{

case EVENT_TYPE_PARTYMEMBER_ADDED:

{

object oFollower = GetEventObject(ev, 0);

SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE);

break;

}



}

}

#4
Guest_templarioseco_*

Guest_templarioseco_*
  • Guests
Hey!! i dont know much about scripting but i have this problem...when i hire a new companion and i have a full party he gets in the party, and follows me even if i have the party full. its like i have him selected but not in any slot of the party. could you help me? you look like you kno a lot :D:D

#5
BlackHeart85

BlackHeart85
  • Members
  • 15 messages
Hey i know alot i see and i have problem with partypicker i have done all that wiki have writing exept #include "utility_h"







void main()



{



event ev = GetCurrentEvent();



int nEventType = GetEventType(ev);



switch(nEventType)



{



case EVENT_TYPE_PARTYMEMBER_ADDED:



{



object oFollower = GetEventObject(ev, 0);



SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE);



break;



}







}



}



becuse i dont were to put but then i add my new created follower she dosent show up in char_stage but spawn then i remove a companion so wot do i do wrong?+ plz help

#6
Proleric

Proleric
  • Members
  • 2 363 messages
The #include goes before everything else. More generally, the questions people are asking here are answered by the wiki tutorial now.