one_must_fall Posted August 1, 2006 Share Posted August 1, 2006 I'v followed the "get an npc in 10 steps" topic and i need help with this one part. I got the dialogue and the script in the dialogue. But, how do i run the script in the game and test it? Link to comment Share on other sites More sharing options...
Emperor Devon Posted August 1, 2006 Share Posted August 1, 2006 Unless you did something incorrectly, running the dialogue with the script in it should activate it, if you select the response you put your script into. Either you must not've compiled the script, done it wrong, or you haven't put everything into your override folder. Link to comment Share on other sites More sharing options...
one_must_fall Posted August 1, 2006 Author Share Posted August 1, 2006 Maybe I should've mentioned. The part i have trouble with is this script: void main() { //do a whereami cheat to get the coordinates of the location //where you want the npc to spawn float x=0.00f; float y=0.00f; float z=0.00f; //unless you want something specific, forget about orientation float r=0.0f; vector vecNPC=Vector(x,y,z); location locNPC=Location(vecNPC, r); //insert your npc tag instead of dan26_duncan. Don't remove the quotes. object oNPC=CreateObject(OBJECT_TYPE_CREATURE,"dan26_duncan",locNPC); object oPC=GetFirstPC(); AssignCommand(oNPC,ActionMoveToObject(oPC)); //replace man26_duncan by the name of the dlg file the npc is supposed to use AssignCommand(oNPC,ActionStartConversation(oPC,"man26_duncan")); } I edited it so instead of "dan26_duncan" i put my custom npc tag. instead of "man26_duncan" i put in my dlg file that the npc is supposed to use. I also put the float x, float y, float z and the orientation. Anything i missed? Link to comment Share on other sites More sharing options...
Princess Artemis Posted August 1, 2006 Share Posted August 1, 2006 Maybe the script isn't in a dialogue that will properly spawn your NPC? I mean, is the script inserted somewhere into a dialogue that someone or something other than your NPC uses? The spawn script can't be in the NPC's dialogue, or else it'll never fire. Link to comment Share on other sites More sharing options...
Darth333 Posted August 1, 2006 Share Posted August 1, 2006 Did you compiled your script? For more options on how to spawn your npc, have a look at the 3rd post in this thread: http://www.lucasforums.com/showthread.php?t=143536 (there's a section on how to spawn a npc in an area). Link to comment Share on other sites More sharing options...
Lit Ridl Posted August 2, 2006 Share Posted August 2, 2006 Your coordinates looks very strange, 0 0 0 will spawn your creature nowhere. Also there are a lot of triggers on Dantooine, so you may read this thread and use script of trigger with injected original script. Triggers are better sometimes. Link to comment Share on other sites More sharing options...
one_must_fall Posted August 2, 2006 Author Share Posted August 2, 2006 okay, to make it simple for me, i just eddited the appearence of the person i'm replaceing (In this case Atton). I just need just about every .dlg file with atton in it, because kotor tool doesn't have em all. Link to comment Share on other sites More sharing options...
Princess Artemis Posted August 2, 2006 Share Posted August 2, 2006 It has them all, they're just way down in ERFs under Modules, and sometimes they don't have names that make it clear Atton is in them. That's a LOT of dialogue to cover though. Link to comment Share on other sites More sharing options...
one_must_fall Posted August 2, 2006 Author Share Posted August 2, 2006 oh I thought that was xbox stuff, because it had xbox live dialogue. thanks. Link to comment Share on other sites More sharing options...
one_must_fall Posted August 3, 2006 Author Share Posted August 3, 2006 ok sorry for the double post, but i still couldn't find the dialogue i need if i ever want to start making my mod. The dialogue i really need is when you first me atton. -aton-nice outfit- what, you miners changed regulation (i don't remember the rest) Link to comment Share on other sites More sharing options...
Princess Artemis Posted August 3, 2006 Share Posted August 3, 2006 It's in ERFs --> Modules --> 101PER --> 1 --> 101atton.dlg. Extract it and edit it with DLGEditor, as Kotor Tool can't yet handle all the fields that are in a K2 .dlg file. Link to comment Share on other sites More sharing options...
one_must_fall Posted August 4, 2006 Author Share Posted August 4, 2006 oh ok. i was usin kotor tool's dlg editor. when i start on the mod, i'll start making pics. EDIT: spoilers if you haven't beaten kotor1, or if you havent used the "save *coughMALAKcough*" mod. Link to comment Share on other sites More sharing options...
one_must_fall Posted August 4, 2006 Author Share Posted August 4, 2006 sorry for double posting, but i got some pictures. this picture was when i just changed atton's appearence:http://img224.imageshack.us/my.php?image=swkotor22006073121475948bj0.png this is the result of a problem i'm having. i had to do a custom dialogue, and i've gotten it to when i release atton (i mean malak) from the shield. now he just stands there, and i can't continue. If anyone knows how to fix it, please post:http://img86.imageshack.us/my.php?image=swkotor22006080400583765ib8.png EDIT: that's not me as malak, that's atton. i'm just behind malak (wich is why there's a sword comin out back) Link to comment Share on other sites More sharing options...
Darth333 Posted August 4, 2006 Share Posted August 4, 2006 I don't know exactly what you did but if you edited the .dlg file with Kotor tool, that is very possibly the cause. Kotor tool's dlg editor is not fully compatible with KotOR 2 and will wipe out all the script parameters and most conditionals from the .dlg file when you save your file. You have to extract the original .dlg file with Kotor tool and edit it with tk102's dlg editor. If you already saved your file (modified or not) with KT , you'll have to start over with a newly extracted file. Link to comment Share on other sites More sharing options...
one_must_fall Posted August 4, 2006 Author Share Posted August 4, 2006 I did use the dlg editor *not kotor tool's*, that's how i managed to get that far. i just messed up somewhere and had to make comepletly custom dialogue. I also got a portraite for malak. It's someone's avatar on this site, i just don't remember who: http://img523.imageshack.us/img523/8905/malaknq0.jpg EDIT: right after i edit this post, i'm gonna try and fix that problem. EDIT AGAIN: i fixed the little bug, here's some screen shots after he's recruited. with a lightsaber, neutral/light portrait: http://img506.imageshack.us/my.php?image=swkotor22006080414571467kv3.png partial darkside portrait: http://img526.imageshack.us/my.php?image=swkotor22006080414582653yt2.png full darkside portrait: http://img516.imageshack.us/my.php?image=swkotor22006080414584421ep3.png Link to comment Share on other sites More sharing options...
one_must_fall Posted August 4, 2006 Author Share Posted August 4, 2006 sorry double post *again*, but... known bugs: malak has no animations when using 2 weapons or a 2 handed weapon. If anyone knows how to fix, post. *note to selfe. stop double posting so much.* Link to comment Share on other sites More sharing options...
ChAiNz.2da Posted August 5, 2006 Share Posted August 5, 2006 sorry double post *again*, but... known bugs: malak has no animations when using 2 weapons or a 2 handed weapon. If anyone knows how to fix, post. *note to selfe. stop double posting so much.* Not possible at the moment. However cchargin is working hard on his newest Alpha of MDLops which tries to confront the problems we've been having with animations... Link to comment Share on other sites More sharing options...
one_must_fall Posted August 6, 2006 Author Share Posted August 6, 2006 /\/\/\ yay well i hope it can come out some time soon. now i'm working on trying to make it so you can fight malak, and if you kill him atton comes in through the door, then dialogue continues as normal. that may take a while since i have barely any scripting knowladge. i just need to find out where to put the scripts i have and it'll be good to test. EDIT: got it to be a talk-fight sequence. i made it so i can start a fight with malak, and kill him. Known bugs: i can't equip malak with a lightsaber (im using kotor tool). after i kill him, the game won't continue. Possible fix for second bug: use the whereami armband or the wrist console to open the emergency hatch t3m4 is supposed to open. Link to comment Share on other sites More sharing options...
one_must_fall Posted August 6, 2006 Author Share Posted August 6, 2006 I found a fix for the no animations with 2 weapons or a 2handed weapon. have 2 weapons in the bottom weapon slot (where you can press h to switch weapons). and while youre running, press h and he'll have running animation. He still doesn't have attack animation. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.