jamezy91 Posted June 9, 2008 Share Posted June 9, 2008 Alright I have made a script that takes Bastila and a dark Jedi tells them to fight then she kills the dark Jedi... But the problem is that the fight loops and no one dies. The script is being fired from a dialog node. Any help you can provide will be most helpful Heres the script void main() { //Pause the dialouge ActionPauseConversation(); ClearAllActions(); //Change Faction ChangeToStandardFaction(GetObjectByTag("stunt_bastilla"), STANDARD_FACTION_HOSTILE_1); ChangeToStandardFaction(GetObjectByTag("stunt_dark01"), STANDARD_FACTION_FRIENDLY_1); //Get Bastila and Dark Jedi object oBastila = GetObjectByTag("stunt_batilla"); object oDark = GetObjectByTag("stunt_dark01"); //Set Dark Jedi to killable SetMinOneHP(oDark, FALSE); //Start Bastila Duel AssignCommand(oBastila,CutsceneAttack(oDark,94,ATTACK_RESULT_HIT_SUCCESSFUL,50)); } Link to comment Share on other sites More sharing options...
stoffe Posted June 9, 2008 Share Posted June 9, 2008 Alright I have made a script that takes Bastila and a dark Jedi tells them to fight then she kills the dark Jedi... But the problem is that the fight loops and no one dies. The script is being fired from a dialog node. Any help you can provide will be most helpful Unless the dark jedi has very low health 50 damage likely isn't going to kill him. CutsceneAttack() only does a single attack, if I remember correctly. For example: AssignCommand(oBastila, CutsceneAttack(oDark, 416, ATTACK_RESULT_CRITICAL_HIT, GetCurrentHitPoints(oDark))); Also, make sure you use an attack animation that works with the weapon being used. Link to comment Share on other sites More sharing options...
jamezy91 Posted June 9, 2008 Author Share Posted June 9, 2008 Okay well I just tried that script and it didn't work just did the same thing the fight just loops and the dark jedi dose not die. Unless the dark Jedi has very low health 50 damage likely isn't going to kill him. Well I set his hp to something like 5. All I need the dark Jedi for is to stand there take one or two blows from bastila then die so the dialog will resume. And I just noticed something the bastila npc wont fight back here npc just blocks the blows from the dark Jedi. Her npc tries to use a couple froce powers but they don't work and the force animation dosen't finish. Again any help here would be much appreciated Thanks, Jamezy91 Edit: Well it looks like i got it to work now... heres my code just incase anyone else has this problem. void main() { //Pause the dialouge ActionPauseConversation(); ClearAllActions(); //Get Bastila and Dark Jedi object oNPC1 = GetObjectByTag("stunt_bastilla"); object oNPC2 = GetObjectByTag("stunt_dark01"); //Change Faction ChangeToStandardFaction(oNPC1, STANDARD_FACTION_PREDATOR); ChangeToStandardFaction(oNPC2, STANDARD_FACTION_PREY); //Set Dark Jedi to killable (JUST INCASE) SetMinOneHP(oNPC2, FALSE); //Start Bastila Duel AssignCommand(oNPC1,CutsceneAttack(oNPC2, 113, ATTACK_RESULT_CRITICAL_HIT, GetCurrentHitPoints(oNPC2))); //Resume Dialog DelayCommand(20.0, ActionResumeConversation()); } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.