Script that triggers based on character level

Post » Mon Jan 21, 2013 8:10 am

I'm not sure what the problem is with this, but I keep getting an expression error on this on when I go in game. It's designed to basically add and remove powers and abilities based on your level, so your powers will remain useful throughout the game.

Here is what I've rigged up so far. I've gone through lots of similar scripts changing this and that to try to get it to work, but I get the same error each time. Any help would be appreciated.

So far I've only done the Argonians, since once I have one race done, it should be a simple job to add the rest in.

Begin NX9_powersshort powershort levelupshort DoOnceif ( MenuMode == 1 )	returnendifif ( DoOnce == 0 )	set levelup to 1	set power to 1	set DoOnce to 1endifif ( player-&--#62;GetLevel== 5 )	if ( levelup &--#60; 2  )		 MessageBox, "As your skill increases, so do your inherent abilities."		 set levelup to 2	endifendifif ( player-&--#62;GetLevel == 10 )	if ( levelup &--#60; 3 )		 MessageBox, "As your skill increases, so do your inherent abilities."		 set levelup to 3	endifendifif ( player-&--#62;GetLevel == 15 )	if ( levelup &--#60; 4 )		 MessageBox, "As your skill increases, so does your inherent abilities."		 set levelup to 4	endifendifif ( player-&--#62;GetLevel == 20 )	if ( levelup &--#60; 5 )		 MessageBox, "As your skill increases, so does your inherent abilities."		 set levelup to 5	endifendifif ( player-&--#62;GetLevel == 25 )	if ( levelup &--#60; 6 )		 MessageBox, "As your skill increases, so does your inherent abilities."		 set levelup to 6	endifendifif ( player-&--#62;GetLevel == 30 )	if ( levelup &--#60; 7 )		 MessageBox, "As your skill increases, so does your inherent abilities."		 set levelup to 7	endifendifif ( player-&--#62;GetLevel == 35 )	if ( levelup &--#60; 8 )		 MessageBox, "As your skill increases, so does your inherent abilities."		 set levelup to 8	endifendifif ( player-&--#62;GetLevel == 40 )	if ( levelup &--#60; 9 )		 MessageBox, "As your skill increases, so does your inherent abilities."		 set levelup to 9	endifendifif ( player-&--#62;GetLevel == 45 )	if ( levelup &--#60; 10 )		 MessageBox, "As your skill increases, so does your inherent abilities."		 set levelup to 10	endifendifif ( player-&--#62;GetLevel == 50 )	if ( levelup &--#60; 11 )		 MessageBox, "As your skill increases, so does your inherent abilities."		 set levelup to 11	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 2 )		if ( power == 1 )			player-&--#62;RemoveSpell, NX9_Argoswim01			player-&--#62;AddSpell, NX9_Argoswim02			set power to 2		 endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 3 )		if ( power == 2 )			player-&--#62;RemoveSpell, NX9_Argoswim02			player-&--#62;AddSpell, NX9_Argoswim03			set power to 3		endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 4 )		if ( power == 3 )			player-&--#62;RemoveSpell, NX9_Argoswim03			player-&--#62;AddSpell, NX9_Argoswim04			set power to 4		 endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 5 )		if ( power == 4 )			player-&--#62;RemoveSpell, NX9_Argoswim04			player-&--#62;AddSpell, NX9_Argoswim05			set power to 5		 endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 6 )		if ( power == 5 )			player-&--#62;RemoveSpell, NX9_Argoswim05			player-&--#62;AddSpell, NX9_Argoswim06			set power to 6		 endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 7 )		if ( power == 6 )			player-&--#62;RemoveSpell, NX9_Argoswim06			player-&--#62;AddSpell, NX9_Argoswim07			set power to 7		 endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 8 )		if ( power == 7 )			player-&--#62;RemoveSpell, NX9_Argoswim07			player-&--#62;AddSpell, NX9_Argoswim08			set power to 8		 endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 9 )		if ( power == 8 )			player-&--#62;RemoveSpell, NX9_Argoswim08			player-&--#62;AddSpell, NX9_Argoswim09			set power to 9		 endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 10 )		if ( power == 9 )			player-&--#62;RemoveSpell, NX9_Argoswim09			player-&--#62;AddSpell, NX9_Argoswim10			set power to 10		 endif	endifendifif ( player-&--#62;GetRace == Argonian )	if ( levelup == 11 )		if ( power == 10 )			player-&--#62;RemoveSpell, NX9_Argoswim10			player-&--#62;AddSpell, NX9_Argoswim11			set power to 11		 endif	endifendifEnd
User avatar
Haley Merkley
 
Posts: 3356
Joined: Sat Jan 13, 2007 12:53 pm

Return to III - Morrowind