ABCoLD
07-17-2006, 09:18 PM
I'm trying to do a new, snazzy and generally righteous version of Bypass Peragus. The only problem is my scripting skills aren't exactly up to snuff. I can get most things to work properly. But for the life of me I can't figure out how to spawn the party members I want and add another to the available party members. I can't seem to get AddNPCbyTemplate or AddNPCbyObject to work properly for me. AddPartyMember also seems to be a bust.
AddAvailableNPCByObject(NPC_ATTON,GetObjectByTag("atton"));
AddPartyMember(NPC_ATTON,GetObjectByTag("atton"));
The above isn't working for me, I have it set in a bit of script tucked away in the middle of a conversation. Afterwards I fire another string of script that adds a bunch of variables including
SetGlobalNumber("101PER_Atton_Joined", 1);
(Not that it should matter I think, strictly speaking for the function of the first code to work.) Then I have the second script whisk me off to a magical new land with StartNewModule. So, any ideas what I'm doing wrong? I really don't need any fancy multi-function can be used for any party member code involving int. I just need something straightforward and clean that's designed to do one thing. The rest of the scripting seems to work and function perfectly, except for that darn party member adding and such on and so forth. Making me scratch my head.
AddAvailableNPCByObject(NPC_ATTON,GetObjectByTag("atton"));
AddPartyMember(NPC_ATTON,GetObjectByTag("atton"));
The above isn't working for me, I have it set in a bit of script tucked away in the middle of a conversation. Afterwards I fire another string of script that adds a bunch of variables including
SetGlobalNumber("101PER_Atton_Joined", 1);
(Not that it should matter I think, strictly speaking for the function of the first code to work.) Then I have the second script whisk me off to a magical new land with StartNewModule. So, any ideas what I'm doing wrong? I really don't need any fancy multi-function can be used for any party member code involving int. I just need something straightforward and clean that's designed to do one thing. The rest of the scripting seems to work and function perfectly, except for that darn party member adding and such on and so forth. Making me scratch my head.