While working on my mod I wanted to have a set of tapestries enabled and disabled depending on player's choice. The choice is made by using an item with the following script
Begin if_al_skullofchoiceshort messageOnshort buttonif ( OnActivate == 1) MessageBox "Who do you serve assassin?" "Mephala" "Sithis" "Neither" set messageOn to 1endifif ( messageOn == 1) set button to GetButtonPressed if ( button >= 0 ) set messageOn to 0 endif if ( button == 0 ) set if_al_decor_choice to 2 endif if ( button == 1 ) set if_al_decor_choice to 1 endif if ( button == 2 ) set if_al_decor_choice to 3 endifendifEnd
While the tapestries have variants of this one (there are several, differing between themselves with the value of the "if_al_decor_choice" (which is a global variable) and the journal entry checked)
Begin if_al_tap_thief_gardenif ( if_al_decor_choice == 3 ) if ( GetJournalIndex if_al_upgrade_garden == 1 ) enable endifelse disableendifEnd
Compiling them gives me no error, but when I choose something via the first script, I get errors of the following kind
Since I'm not much of a scripter, can anyone tell me what did I do wrong here? Thanks in advance!