Startup script

Post » Sat May 28, 2011 9:23 am

I decided to keep the Arcane Guard mod by MentalElf in my permanent loadlist, but for my personal use I wish to change the startup script (which ask if I want to start the quest) to be automatic. Since I rarely thinker with scripts, I wanted to know if my approach was correct.

Original script:

Begin ME_ArcaneStartupScriptshort Askshort Buttonfloat SettleDelayif ( Ask == 0 )	if ( ME_ArcaneStarted == 0 )		if ( SettleDelay < 1 )			Set SettleDelay to ( SettleDelay + GetSecondsPassed )			Return		endif		MessageBox "Are you ready to start the Arcane Guard quests?" "YES" "NO"		Set Ask to 1		Set SettleDelay to 0	else		StopScript "ME_ArcaneStartupScript"	endifendifif ( Ask == 1 )	Set Button to GetButtonPressed	if ( Button == -1 )		Return	endif	Set Ask to 0	if ( Button == 0 )		; They are ready...		MessageBox "Go to Suran and see Janus Nuen by the silt strider service... she is expecting you." "OK"		Set ME_ArcaneStarted to 1	endif	StopScript "ME_ArcaneStartupScript"endifEnd


Automatic start script?:

Begin ME_ArcaneStartupScriptif ( ME_ArcaneStarted == 0 )		Set ME_ArcaneStarted to 1	StopScript "ME_ArcaneStartupScript"endifEnd


Would that work?
User avatar
Cat Haines
 
Posts: 3385
Joined: Fri Oct 27, 2006 9:27 am

Post » Sat May 28, 2011 9:11 am

looks like it
User avatar
Mariaa EM.
 
Posts: 3347
Joined: Fri Aug 10, 2007 3:28 am

Post » Sat May 28, 2011 8:17 am

Nice! Time to replace the script.

Thank you, RAKninja.
User avatar
Romy Welsch
 
Posts: 3329
Joined: Wed Apr 25, 2007 10:36 pm


Return to III - Morrowind