Scipting errors

Post » Thu Jun 16, 2011 6:21 pm

I'm typing my script, and when i compile, it says that there's mismatched errors starting on line 10, and "Script Command "Sho" not found on line 131. shoyj1e<-e is accented, and theres a little symbol in there to, i can't type it. The thing is, the script is only 130 lines long? WTF?

Well anyways, here it is.

begin aos_sharranshort OnPcEquipshort startshort buttonshort buttonnshort buttonnnshort buttonnnnshort spellfloat timerif ( spell == 0 )elseif ( spell == 1 )	if ( timer >= 30 )		player->removespell, "aos_sharspell1"	elseif ( timer < 30 )	endifelseif ( spell == 2 )	if ( timer >= 30 )		player->removespell, "aos_sharspell2"	if ( timer < 30 )	endifendifif ( GetJournalIndex, "aos_amuletupgrade" < 10 )	if ( OnPcEquip == 1 )		MenuTest, 0		Messagebox, "You reach up and rub the disk hanging from your neck. You feel Shar's emptiness spread throughout your limbs. What do you with to do?", "Nothing", "Rub", "Pray"		set OnPcEquip to 0		set start to 1			if ( start == 1 )				set button to getbuttonpressed				if ( button == -1 )					return				elseif ( button == 1 )					messagebox, "You drop the necklace from your hand."					set start to 0					return				elseif ( button == 2 )					messagebox, "You feel an emptinesss spread further throughout your body. Do you wish to pray, having attracted Shar's attention?", "No", "Yes"					set buttonn to getbuttonpressed						if ( buttonn == 1 )							set start to 0							return						elseif ( buttonn == 2 )							Messagebox, "You whisper: In the darkness of the night, we hear the whisper of the void.. Shar's power infuses you."							player->addspell "aos_sharspell1"							set start to 0							set spell to 1							return						endif				elseif ( button == 3 )					messagebox, "You whisper: Love dies, only hate endures..", "End your prayer", "Continue your prayer"					set buttonnn to getbuttonpressed						if ( buttonnn == 1 )							Messagebox, "You feel a small amount of power fuel your body."							player->addspell "aos_sharspell1"							set start to 0							return						if ( buttonnn == 2 )							Messagebox, "You continue to speak: I offer my griefs and losses to you, Messenger of Darkness, Lady of Loss. Please, accept my troubles, and embrace them into the void.", "Continue"								set buttonnnn to getbuttonpressed									if ( buttonnnn != 1 )										set start to 0										return									elseif ( buttonnnn == 1 )										Messagebox, "Lady, Master, I offer to you all of my secrets and regrets. Please, embrace them into the void... (You feel a sudden boost of power.)"										player->addspell "aos_sharspell2"										set start to 0										return									endif						endif					endif		endifelseif ( GetJournalIndex, "aos_amuletupgrade" >= 10 )	if ( OnPcEquip == 1 )		MenuTest, 0		Messagebox, "You reach up and rub the disk hanging from your neck. You feel Shar's emptiness spread throughout your limbs. What do you with to do?", "Nothing", "Rub", "Pray", "Teleport to Shar's Temple"		set OnPcEquip to 0		set start to 1			if ( start == 1 )				set button to getbuttonpressed				if ( button == -1 )					return				elseif ( button == 1 )					messagebox, "You drop the necklace from your hand."					set start to 0					return				elseif ( button == 2 )					messagebox, "You feel an emptinesss spread further throughout your body. Do you wish to pray, having attracted Shar's attention?", "No", "Yes"					set buttonn to getbuttonpressed						if ( buttonn == 1 )							set start to 0							return						elseif ( buttonn == 2 )							Messagebox, "You whisper: In the darkness of the night, we hear the whisper of the void.. Shar's power infuses you."							player->addspell "aos_sharspell1"							set start to 0							return						endif				elseif ( button == 3 )					messagebox, "You whisper: Love dies, only hate endures..", "End your prayer", "Continue your prayer"					set buttonnn to getbuttonpressed						if ( buttonnn == 1 )							Messagebox, "You feel a small amount of power fuel your body."							player->addspell "aos_sharspell1"							set start to 0							return						if ( buttonnn == 2 )							Messagebox, "You continue to speak: I offer my griefs and losses to you, Messenger of Darkness, Lady of Loss. Please, accept my troubles, and embrace them into the void.", "Continue"								set buttonnnn to getbuttonpressed									if ( buttonnnn != 1 )										set start to 0										return									elseif ( buttonnnn == 1 )										Messagebox, "Lady, Master, I offer to you all of my secrets and regrets. Please, embrace them into the void... (You feel a sudden boost of power.)"										player->addspell "aos_sharspell2"										set start to 0										return									endif				elseif ( button == 4 )					Messagebox, "You step into the air and embrace the void."					Player->PositionCell, 4062, 4101, 15993, 0, "Sharran Temple"					return				endif	endifendifend aos_sharran


If anyone can point out the mismatched ifs/endifs and explain that other thing i'd be greatly appreciative :D
User avatar
hannaH
 
Posts: 3513
Joined: Tue Aug 15, 2006 4:50 am

Return to III - Morrowind