Script error - left eval

Post » Sat May 09, 2015 4:25 am

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

Spoiler

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)

Spoiler

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!

User avatar
Jessie
 
Posts: 3343
Joined: Sat Oct 14, 2006 2:54 am

Post » Sat May 09, 2015 6:34 am

From the MWSFD

From what I can see you don't have a space in your parenthesis on many lines

eg if ( OnActivate == 1)

this should be if ( OnActivate == 1 )

User avatar
Luna Lovegood
 
Posts: 3325
Joined: Thu Sep 14, 2006 6:45 pm

Post » Fri May 08, 2015 9:35 pm

Thanks - though it seems the missing spaces were less of an issue than me being a moron was. In other words, I created a journal and a script with the exact same name, causing things to go crazy...

User avatar
[ becca ]
 
Posts: 3514
Joined: Wed Jun 21, 2006 12:59 pm


Return to III - Morrowind