newbiemodder Posted February 11, 2012 Share Posted February 11, 2012 Man, seems like I'm asking a lot of questions lately...journal question, namely progression of journal entries. Usually, I have a standard llinear order with my journal entries that go with plot progression..(a ) leads (b) which leads to ©..etc....However, how do I do random journal entries? Example.. i have journal entries 10,20,30,40, and 50. Most are triggered via dialogs. But there is no particular set order it is random. My problem is if the dialog for journal entry 50 is triggered first. The remaining journal entries will not show because of the order..can't go backward. Make sense? Link to comment Share on other sites More sharing options...
Qui-Gon Glenn Posted February 11, 2012 Share Posted February 11, 2012 A quick thought that may work... make duplicates of the random entries? so that all options can come on either side of any other... if that makes sense? Maybe put all of your main entries in 40, 45, 50, 55, 60. Then make dupes of them on either side? Not sure this would work, as it seems WAY too simple Link to comment Share on other sites More sharing options...
Hassat Hunter Posted February 12, 2012 Share Posted February 12, 2012 It wont work by setting them in dialogs (the questbox in the DLG editor)... but you can force them with script (triggered in the convo then). EDIT (Apparently I screwed up how it works before); After setting a goal you either have TRUE or FALSE. FALSE means the quest isn't updated if a higher number is already present. TRUE means it *will* be replaced, even if a higher number is higher. Unlike what I stated before the edit, the only way for quest completion is making it hit a number that's set to complete the goal in globals.jrl, it can't be overwritten by script. Hope that helped. Example (a_geeda_set from TSLRCM 1.8); void main() { int nDxnOpen; if(GetGlobalNumber("500OND_Civil_War") > 1) nDxnOpen = 1; else nDxnOpen = 0; int nDanOpen; if(GetGlobalNumber("602DAN_End") > 0) nDanOpen = 1; else nDanOpen = 0; int nDxnEst = GetGlobalNumber("301NAR_Geeda_Dxn"); int nDanEst = GetGlobalNumber("301NAR_Geeda_Dan"); int nJournal = GetJournalEntry("NewTradeRoutes"); if (nJournal == 0) return; if(nDxnEst == 1 && nDanEst == 1) { AddJournalQuestEntry("NewTradeRoutes", 33, TRUE); return; } if(nDxnEst == 1) { if(nDanOpen == 0) { AddJournalQuestEntry("NewTradeRoutes", 13, TRUE); return; } if(nDanOpen == 1) { AddJournalQuestEntry("NewTradeRoutes", 21, TRUE); return; } } if(nDanEst == 1) { if(nDxnOpen == 0) { AddJournalQuestEntry("NewTradeRoutes", 31, TRUE); return; } if(nDxnOpen == 1) { AddJournalQuestEntry("NewTradeRoutes", 12, TRUE); return; } } if(nDanOpen == 1 && nDxnOpen ==1) { AddJournalQuestEntry("NewTradeRoutes", 22, TRUE); return; } if(nDanOpen == 1) { AddJournalQuestEntry("NewTradeRoutes", 21, TRUE); return; } if(nDxnOpen == 1) { AddJournalQuestEntry("NewTradeRoutes", 12, TRUE); return; } AddJournalQuestEntry("NewTradeRoutes", 11); } Link to comment Share on other sites More sharing options...
newbiemodder Posted February 12, 2012 Author Share Posted February 12, 2012 Ugh..globals...thanks HH for the info... Link to comment Share on other sites More sharing options...
Hassat Hunter Posted February 12, 2012 Share Posted February 12, 2012 Well, no need for globals. A simple script like void main() { AddJournalQuestEntry("RandomScript", 40, TRUE); } would work for you, based on what you asked so far ... Link to comment Share on other sites More sharing options...
newbiemodder Posted February 12, 2012 Author Share Posted February 12, 2012 Thanks HH..that did it...for some reason I thought it couldn't be done via script either...thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.