Revan81790 Posted June 25, 2008 Share Posted June 25, 2008 Hey.. I'm new to scripting 1. What is the script for certain dialog not be shown until a condition is met? 2. What is the script that makes the npc attack after dialog? Link to comment Share on other sites More sharing options...
JediMaster76 Posted June 25, 2008 Share Posted June 25, 2008 Umm... well, for question 1, I'd need to know which game you're modding and what type of conditional script you need (journal entry, boolean, item, etc.). I can answer #2 though. void main() { // make main NPC go hostile; replace sir_pwns with your NPC tag object oNPC=GetObjectByTag("sir_pwns"); ChangeToStandardFaction(oNPC, 1); // give them kick to make them start attacking you ExecuteScript("k_ai_master",oNPC,1005); } Link to comment Share on other sites More sharing options...
Revan81790 Posted June 25, 2008 Author Share Posted June 25, 2008 Umm... well, for question 1, I'd need to know which game you're modding and what type of conditional script you need (journal entry, boolean, item, etc.). I can answer #2 though. void main() { // make main NPC go hostile; replace sir_pwns with your NPC tag object oNPC=GetObjectByTag("sir_pwns"); ChangeToStandardFaction(oNPC, 1); // give them kick to make them start attacking you ExecuteScript("k_ai_master",oNPC,1005); } Thank you for your answer of question 2. As for question 1, the game is KotOR 2, and the conditional would be a journal entry... Does that sound right? Link to comment Share on other sites More sharing options...
Stream Posted June 25, 2008 Share Posted June 25, 2008 int StartingConditional() { return (GetJournalEntry("JOURNAL")==STATE); } Replace JOURNAL with the name of the journal entry and replace STATE with whatever the number of that journal needs to be at. --Stream Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.