.:Sam:. Posted September 24, 2006 Share Posted September 24, 2006 Hey, I want a dialoge to trigger when you enter a module but It don't seem to work is there something im doing wrong? void main() { ActionStartConversation(GetFirstPC(),"cordlg"); } That the script I used, then I saved it and compiled and on OnEnter I put corsen (Thats the scripts name) Saved and tried it out but the script did not activate. Can anyone help, thanks in advance. Link to comment Share on other sites More sharing options...
stoffe Posted September 24, 2006 Share Posted September 24, 2006 (snip) ActionStartConversation(GetFirstPC(),"cordlg"); (snip) That the script I used, then I saved it and compiled and on OnEnter I put corsen (Thats the scripts name) Saved and tried it out but the script did not activate. You'll need a character or placeable to start the conversation, you cannot converse with the Area itself. If you run that script in the Area OnEnter event then it's the area that runs the script (OBJECT_SELF) and the area has no action queue AFAIK. If there are no other NPCs involved in the dialog other than the main character then you can make them start the conversation with themselves. Otherwise make the NPC you want the player to talk to start the conversation. Like: void main() { object oPC = GetFirstPC(); [color=PaleGreen]// Make main character start conversation with themself.[/color] AssignCommand(oPC, ActionStartConversation(oPC, "cordlg")); [color=PaleGreen]// Make NPC with specified tag start conversation with main character.[/color] object oNPC = GetObjectByTag("[color=Yellow]TagOfNPCtoTalkTo[/color]"); AssignCommand(oNPC, ActionStartConversation(oPC, "cordlg")); } Link to comment Share on other sites More sharing options...
.:Sam:. Posted September 27, 2006 Author Share Posted September 27, 2006 Thanks for helping again, theres just two more things, that wasn't in the playing movies via script thread. Firstly how do I make a movie play and then A dialouge trigger strait afterwards? And Secondly (this isn't scripting but its not worth creating a new thread for it) I've put the movie in the movie folder but all that plays in the game is the background music of the movie, Those anyone know the problem? Thanks in advance. Link to comment Share on other sites More sharing options...
stoffe Posted September 27, 2006 Share Posted September 27, 2006 Firstly how do I make a movie play and then A dialouge trigger strait afterwards? And Secondly (this isn't scripting but its not worth creating a new thread for it) I've put the movie in the movie folder but all that plays in the game is the background music of the movie, Those anyone know the problem? Thanks in advance. You should be able to start the dialog from the same script that you run the movies from, like: void main() { PlayMovie("[color=Yellow]MyMovie[/color]"); AssignCommand(GetObjectByTag("[color=Pink]NPCToTalkTo[/color]"), ActionStartConversation(GetFirstPC(), "[color=PaleGreen]TalkDLG[/color]")); } ...where the text marked in yellow is the name of the movie file (without the .bik extension), the part in pink is the tag of the NPC that you should talk to, and green is the name of the DLG file containing the conversation to start. That should play the movie and then immediately afterwards start the dialog. As for only sound playing during a movie; a wild guess would be that you used some form of compression, codec or setting that the game doesn't support. Link to comment Share on other sites More sharing options...
.:Sam:. Posted September 28, 2006 Author Share Posted September 28, 2006 I clicked it in bink and smacker/ RAD video tools and pressed Bink it so it converted into bik and put it in the movies folder. Link to comment Share on other sites More sharing options...
Darth333 Posted September 28, 2006 Share Posted September 28, 2006 Did you added a new entry to movies.2da ? Link to comment Share on other sites More sharing options...
.:Sam:. Posted September 29, 2006 Author Share Posted September 29, 2006 No...am I supposed to? Link to comment Share on other sites More sharing options...
goldberry Posted September 29, 2006 Share Posted September 29, 2006 Yes, or it won't show up on the movies list. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.