View Single Post
Old 04-02-2012, 11:30 PM   #4
Fallen Guardian
@Fallen Guardian
Wandering the Galaxy...
Fallen Guardian's Avatar
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,294
Current Game: XCOM 2
Veteran Modder  Helpful! 
Alright, I come here with a new conditional script woe today.

Basically, when doing Journal entries for a quest, a realized that if the PC were to do something in a certain order, a journal entry with a higher ID number would be added before a journal entry with a smaller ID number. Now, that means when the time came for the smaller ID'd journal entry to be given, it didn't fire. So, I created a duplicate of the smaller journal entry and gave it an ID higher than the entry that was causing problems. I then made this conditional script:

void main()

     object oPC=GetFirstPC();

object oPlaceable = GetObjectByTag("lockerlg001");

  int iResult = GetLocalBoolean(oPlaceable, 40);

if ( iResult == FALSE) {

  AddJournalQuestEntry("DT_MERC", 30);
if ( iResult == TRUE) {

  AddJournalQuestEntry("DT_MERC", 32);
Now everything works all fine and well if iResult == false. Yet, if iResult == True the higher journal entry doesn't get added. What am I doing wrong?

The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,