Scripting error

Post » Tue Jan 12, 2010 4:15 pm

When i try to compile this script i get an error about veU and mismatched end/endifs. Can anyone point out what it means?
Begin 01mcfelix_NoteScript; Attached to note to trigger a journal update when player reads it.short readNoteshort OnPCEquipshort PCSkipEquipif ( readNote == 1 )   returnendifset PCSkipEquip to 0if ( OnActivate == 1 )   if ( GetJournalIndex "mc_dissidentpriest" == 70 )      Journal "mc_dissidentpriest" 80      set readNote to 1   endif   Activate   returnendifif ( menumode == 0 )   returnendifset PCSkipEquip to 1if ( OnPCEquip == 1 )   if ( GetJournalIndex "mc_dissidentpriest" == 70 )      Journal "mc_dissidentpriest" 80   endifend

User avatar
Claudia Cook
 
Posts: 3450
Joined: Mon Oct 30, 2006 10:22 am

Post » Tue Jan 12, 2010 1:46 pm

Each if must have a matching endif. Your last if block doesn't.

if ( OnPCEquip == 1 )   if ( GetJournalIndex "mc_dissidentpriest" == 70 )      Journal "mc_dissidentpriest" 80   endif

Should be
if ( OnPCEquip == 1 )   if ( GetJournalIndex "mc_dissidentpriest" == 70 )      Journal "mc_dissidentpriest" 80   endifendif

User avatar
Kaylee Campbell
 
Posts: 3463
Joined: Mon Mar 05, 2007 11:17 am

Post » Tue Jan 12, 2010 3:18 pm

Each if must have a matching endif. Your last if block doesn't.

if ( OnPCEquip == 1 )   if ( GetJournalIndex "mc_dissidentpriest" == 70 )      Journal "mc_dissidentpriest" 80   endif

Should be
if ( OnPCEquip == 1 )   if ( GetJournalIndex "mc_dissidentpriest" == 70 )      Journal "mc_dissidentpriest" 80   endifendif



Your help is invaluable as always, thanks!
User avatar
Romy Welsch
 
Posts: 3329
Joined: Wed Apr 25, 2007 10:36 pm


Return to III - Morrowind