So, I've built a single-player campaign, and I have 6 potential followers. I followed this tutorial to a T, and for the party plot I used the stuff they said in the FAQ at the end:
social.bioware.com/wiki/datoolset/index.php/Follower_tutorial
All six characters work fine, no issues whatsoever. Conversation fires, plot script hire fires, everything works. However, when I do a conditional lines based on the "inparty" plot it works for first four characters, but not for the last two. I'm baffled by this, especially since the script, plot, everything, is exactly the same between the last two and the first four. I've tested and tried everything I can think of, but even though my characters tags are "party_queen" and "party_taela" respectively, the game will still return that they aren't in my party, no matter what. I've created them and recreated them, even rebuilt every.single.party.character. Always the same thing, the last two just don't work in the "In Party" plot, they're ALWAYS designated as false, unless I force it to be true, but that won't work of course 'cause I never know who the player is going to have at any given time.
So does ANYONE know what's going on here? The last thing I can guess is that there is a cap of 4 new party members in the GDA files or something. But, even that doesn't make sense since the party picker works fine.
Please help!
Is there a follower limit when creating a single-player campaign?
Débuté par
DaSkee
, sept. 07 2010 03:24
#1
Posté 07 septembre 2010 - 03:24
#2
Posté 07 septembre 2010 - 03:56
The GUI limits the party size to 4 (including the player).
Did you notice that the basic tutorial assumes that you never have more than 3 potential followers?
The final section of the tutorial gives an approach that will work for any number of potential followers, but it limits the party size to 4.
If none of that helps, perhaps you could post your scripts.
Did you notice that the basic tutorial assumes that you never have more than 3 potential followers?
The final section of the tutorial gives an approach that will work for any number of potential followers, but it limits the party size to 4.
If none of that helps, perhaps you could post your scripts.
#3
Posté 07 septembre 2010 - 09:25
Oh, no, sorry I'm not talking about party size, that all works fine, I only have and want three party members out at one time. I'm just talking about party plots. I did everything at the end of the FAQ, and it all works. All six party members join, they can come in and out no problem through the party picker, and all that jazz.
What I'm having problems with is the "in party" script that is used to make conditional dialogue lines based on whether or not someone is in the party. On my first 4 party members this all works like a charm, it sets to true and false correctly when they're added and dropped. However, for my last it doesn't work. Whenever I add them their flags stay false. They can still be selected in the party picker, they still take commands, attack, and can be equipped. You can even talk to them to do their backstory dialogues, they just cant interject into conversations they're supposed to because the "In Party" plot flag isn't working.
I don't know why because I did everyone using the same constants script and plot, and they're all called with the same event. I've checked and double checked tags, as well. The first four characters that you hire fires their respective plot flags just fine, the last two won't.
What I'm having problems with is the "in party" script that is used to make conditional dialogue lines based on whether or not someone is in the party. On my first 4 party members this all works like a charm, it sets to true and false correctly when they're added and dropped. However, for my last it doesn't work. Whenever I add them their flags stay false. They can still be selected in the party picker, they still take commands, attack, and can be equipped. You can even talk to them to do their backstory dialogues, they just cant interject into conversations they're supposed to because the "In Party" plot flag isn't working.
I don't know why because I did everyone using the same constants script and plot, and they're all called with the same event. I've checked and double checked tags, as well. The first four characters that you hire fires their respective plot flags just fine, the last two won't.
Modifié par DaSkee, 07 septembre 2010 - 09:26 .
#4
Posté 07 septembre 2010 - 12:31
Can you post the scripts?
#5
Posté 08 septembre 2010 - 12:36
Sure thing!
Here's the Constants script:
All those numbers correspond with the plot flags in my "in party" script.
And here is the EVENT_PARTY_MEMBER_ ADDED and EVENT_PARTY_MEMBER_DROPPED scripts. I've just attached these events since it's part of my main module script. I call the plot and constant script correctly in the #include, and it compiles just fine. And again, the first four characters work, the last two do not.
Here's the Constants script:
int cocPartyMemberID(object oPartyMember)
{
string sPartyMember = GetTag(oPartyMember);
if (sPartyMember == "party_brio") return 1;
if (sPartyMember == "party_ayla") return 2;
if (sPartyMember == "party_girk") return 3;
if (sPartyMember == "party_kinley") return 4;
if (sPartyMember == "party_queen") return 5;
if (sPartyMember == "party_taela") return 6;
return 0;
}
All those numbers correspond with the plot flags in my "in party" script.
And here is the EVENT_PARTY_MEMBER_ ADDED and EVENT_PARTY_MEMBER_DROPPED scripts. I've just attached these events since it's part of my main module script. I call the plot and constant script correctly in the #include, and it compiles just fine. And again, the first four characters work, the last two do not.
case EVENT_TYPE_PARTYMEMBER_ADDED:
{
object oFollower = GetEventObject(ev, 0);
SetLocalInt(oFollower, CREATURE_REWARD_FLAGS, 0); //Allows the follower to gain XP
AddCommand(oFollower, CommandJumpToLocation(GetLocation(GetHero()))); //Ensures follower appears at PC's location.
SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE); //Adds follower to the active party
WR_SetPlotFlag(PLT_INPARTY, cocPartyMemberID(oFollower), TRUE);
break;
}
case EVENT_TYPE_PARTYMEMBER_DROPPED:
{
object oFollower = GetEventObject(ev, 0);
WR_SetPlotFlag(PLT_INPARTY, cocPartyMemberID(oFollower), FALSE);
}
#6
Posté 08 septembre 2010 - 02:13
It doesn't seem like this should be a follower problem specifically; WR_SetPlotFlag doesn't know that the plot it's setting is follower-related, nor would the check on the dialogue line (or whatever).
I'd check your PLT_INPARTY plot carefully - did you duplicate another plot to create it? Does it have a plot script that does something (or more accurately nothing) when flag 5 or 6 are set?
I'd check your PLT_INPARTY plot carefully - did you duplicate another plot to create it? Does it have a plot script that does something (or more accurately nothing) when flag 5 or 6 are set?
#7
Posté 08 septembre 2010 - 04:26
I didn't duplicate a plot to make it, and it has no plot script. I've quadruple checked the plot, all the flags are the right numbers and names. The plot works fine for the first four, just not flags five or six.... Or anything after six for that matter. I created a test follower as a flag seven, that one didn't work either.
#8
Posté 08 septembre 2010 - 05:09
Are you able to set those flags from any other script or dialogue?
#9
Posté 08 septembre 2010 - 08:43
It's got to be something trivial. Did you double-check the Tag field on the follower instances?
#10
Posté 08 septembre 2010 - 09:09
I can set the flags if I force them, yeah.
I tried UT_IsFollowerInParty and I don't know if it works in general, but it wasn't seeing the two party members that it isn't working on. This is really weird 'cause I can see them there, they're obviously in my party, I can equip them and issue commands to them... But then again, I read that UT only works with none-critical followers...
And yeah, I've double checked all the tags a million times. :/
I tried UT_IsFollowerInParty and I don't know if it works in general, but it wasn't seeing the two party members that it isn't working on. This is really weird 'cause I can see them there, they're obviously in my party, I can equip them and issue commands to them... But then again, I read that UT only works with none-critical followers...
And yeah, I've double checked all the tags a million times. :/
Modifié par DaSkee, 08 septembre 2010 - 09:11 .
#11
Posté 08 septembre 2010 - 03:57
The UT result suggests that FOLLOWER_STATE_ACTIVE is not being set. Since the plot flag isn't set, either, I wonder whether the PARTYMEMBER_ADDED event is reaching your module script. Can't explain why that would happen, though.
Presumably this problem occurs regardless of the order in which you hire the followers? So if you hire follower #6 first, it's still a problem?
Can you post the hiring script and the party picker 2DA files?
Presumably this problem occurs regardless of the order in which you hire the followers? So if you hire follower #6 first, it's still a problem?
Can you post the hiring script and the party picker 2DA files?
Modifié par Proleric1, 08 septembre 2010 - 03:57 .
#12
Posté 16 septembre 2010 - 01:38
Sorry, I've been busy working on portfolio stuff, haven't been at my home computer at all this week.
Yeah, it happens no matter what order I hire my followers, I had the same theory about the event not being triggered, but I too have no clue why that would happen. My hire script is the same for all my characters -
And again, she gets hired just fine, just the "inparty" script doesn't fire.
I also can't post my 2DA files right this second, as my server is being updated, but hopefully I can post them tomorrow. I assure you, though, the tags are correct, she shows up in the party picker just fine and she's the right tag and everything...
I was hoping other people have had this problem, and it was a limitation in the engine or something... But apparently it's not and now I'm pretty dang stumped at this point.
Yeah, it happens no matter what order I hire my followers, I had the same theory about the event not being triggered, but I too have no clue why that would happen. My hire script is the same for all my characters -
UT_HireFollower(oTaela); SetPartyPickerGUIStatus(2); ShowPartyPickerGUI();
And again, she gets hired just fine, just the "inparty" script doesn't fire.
I also can't post my 2DA files right this second, as my server is being updated, but hopefully I can post them tomorrow. I assure you, though, the tags are correct, she shows up in the party picker just fine and she's the right tag and everything...
I was hoping other people have had this problem, and it was a limitation in the engine or something... But apparently it's not and now I'm pretty dang stumped at this point.
Modifié par DaSkee, 16 septembre 2010 - 01:39 .





Retour en haut






