Master Zionosis Posted February 8, 2007 Share Posted February 8, 2007 Hi everyone, me again, i need a script that checks that Kreia is in your party for a certain dialog line to be available. Thanks, ~MZ Link to comment Share on other sites More sharing options...
Princess Artemis Posted February 9, 2007 Share Posted February 9, 2007 c_con_kreiapm should be the script you need to make sure she's there to trigger the dialogue. It's a universal script, so unless you need something for a character recruit mod, the c_con(charactername)pm scripts will do that for you. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 9, 2007 Author Share Posted February 9, 2007 Brilliant, thanks Artemis, ill test that out now. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 18, 2007 Author Share Posted February 18, 2007 For some reason that didn't work for me, but no matter, I'm not sure if I'm asking for the same thing again, probably not, but here goes, i need a script that will abort the dialog strait away if Kreia is not in your party. Thanks, ~MZ Link to comment Share on other sites More sharing options...
Dashus Posted February 18, 2007 Share Posted February 18, 2007 Is Kreia more than 10.0 units away? Because all the c_con scripts check for that minimum distance. IsObjectPartyMember is the function you want. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 18, 2007 Author Share Posted February 18, 2007 Well, Kreia is kind of next to me so it should be alright, and I'm still not sure why its not working, i have retried it with kreia further away from me, and still no success, is there anyway i can do what i said above and abort the dialog if Kreia is not in the party? Link to comment Share on other sites More sharing options...
Dashus Posted February 18, 2007 Share Posted February 18, 2007 I guess you need to clarify it a bit. Is the dialog already started and you just want to drop out at a given point? Or are you trying to see if it should be started? Or should the dialog continue if she's not in party? Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 18, 2007 Author Share Posted February 18, 2007 I suppose the second one is more accurate, i would like a script that that doesn't allow the dialog to begin unless Kreia is in the party. Thanks, ~MZ Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 18, 2007 Share Posted February 18, 2007 Try this script.... [color=red]//HH: Check for Kriea Script.[/color] #include "k_inc_debug" void main() { [color=red] //HH: Will check if Kreia is in the party and within 25 meters.[/color] int hhCheck = ((IsNPCPartyMember(NPC_KREIA) == TRUE) && (GetDistanceBetween(GetPCSpeaker(), GetObjectByTag("Kreia")) <= 25.0)); { [color=red]//HH: If FALSE exit.[/color] if (hhCheck) { return; } [color=red]//HH: Replace dlg_name with your dialog file. //HH: If TRUE, start the dialog.[/color] ActionStartConversation(GetFirstPC(), "dlg_name"); } } Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 18, 2007 Author Share Posted February 18, 2007 Excellent, thanks Hangout, ill give that a try now. Link to comment Share on other sites More sharing options...
Hangout Hermit Posted February 18, 2007 Share Posted February 18, 2007 Excellent, thanks Hangout, ill give that a try now. Let me know how it turns out. Link to comment Share on other sites More sharing options...
Master Zionosis Posted February 18, 2007 Author Share Posted February 18, 2007 Grrr, it doesn't work, i have attached the script to the first line of the dialog and it didn't work, the dialog still fires if Kriea is not a member of your party. :EDIT: Well i did some fiddling around and attached the script to the actual .utc file on the OnDialog script box and that also didn't work, is that even the right one?, Whaoo, this is turning out harder than i imagined. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.