Jump to content

Script stopped running...


Khet

Recommended Posts

Alrighty, I'm REALLY started to hate scripting. With the help of QQuix earlier I got my script working, which was all well and good until after I added one, yes ONE damned line to the script. Now the thing refuses to run at all. I've tested it with adding a Message "Running" line RIGHT after my begin line... and it never appears. Any ideas on what would stop a script from running? The only lines I've added where the script lines for the rest of my buildings... each line is exactly the same save for the required variables that needed to be changed.
Link to comment
Share on other sites

It's REALLY long but alright. I won't post again until tomorrow since it's pretty late here. this time it's a perfect Copy/paste with EVERYTHING I've written so far.

 

scn EvanoreIslandScript

;This script handles all variables and scripting used in EITownCon: Birth of a Town quest

Short DayCount
Short DoOnce1
Short DoOnce2
Short DoOnce3
Short DoOnce4
Short DoOnce5
Short DoOnce6
Short DoOnce7
Short DoOnce8
Short DoOnce9
Short DoOnce10
Short DoOnce11
Short DoOnce12
Short DoOnce13
Short DoOnce14
Short CurrentDay

Begin GameMode

Message "EvanoreIslandScript is running."
;This is the block for the first house to be constructed
If DoOnce1 == 0 && GetStage EITownCon == 10
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 3
		EHouseRef01.Enable
		ETent01.Disable
		Set DoOnce1 to 1
	Set DayCount to 0
	Setstage EITownCon 11
	Set CurrentDay to 0
	endif
endif
endif
endif
;This is the block for the second house to be constructed
If DoOnce2 == 0 && GetStage EITownCon == 14
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 3
		EHouse02.Enable
		Set DoOnce2 to 1
	Set DayCount to 0
	Setstage EITownCon 15
	endif
endif
endif
endif
;This is the block for the third house to be constructed
If DoOnce3 == 0 && GetStage EITownCon == 17
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 4
		EHouse03.Enable
		Set DoOnce3 to 1
	Set DayCount to 0
	Setstage EITownCon 18
	endif
endif
endif
endif
;This is the block for the fourth house to be constructed
If DoOnce4 == 0 && GetStage EITownCon == 22
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 3
		EHouse04.Enable
		Set DoOnce4 to 1
	Set DayCount to 0
	Setstage EITownCon 23
	endif
endif
endif
endif
;This is the block for the fifth house to be constructed
If DoOnce5 == 0 && GetStage EITownCon == 26
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 3
		EHouse05.Enable
		Set DoOnce5 to 1
	Set DayCount to 0
	Setstage EITownCon 27
	endif
endif
endif
endif
;This is the block for the sixth house to be constructed
If DoOnce6 == 0 && GetStage EITownCon == 31
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 3
		EHouse06.Enable
		Set DoOnce6 to 1
	Set DayCount to 0
	Setstage EITownCon 32
	endif
endif
endif
endif
;This is the block for the last house to be constructed
If DoOnce7 == 0 && GetStage EITownCon == 39
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 3
		EHouse07.Enable
		Set DoOnce7 to 1
	Set DayCount to 0
	Setstage EITownCon 40
	endif
endif
endif
endif
;This is the block for the chapel to be constructed
If DoOnce8 == 0 && GetStage EITownCon == 66
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 4
		Echap01.Enable
		Set DoOnce8 to 1
	Set DayCount to 0
	Setstage EITownCon 67
	endif
endif
endif
endif
;This is the block for the barracks to be constructed
If DoOnce9 == 0 && GetStage EITownCon == 72
If CurrentDay == 0
Set CurrentDay to GameDay
   	 Elseif CurrentDay != GameDay
		Set DayCount to DayCount + 1
		Set CurrentDay to GameDay
	   		 If DayCount == 5
				Ebar01.Enable
	   		 Set DoOnce9 to 1
			Set DayCount to 0
			Setstage EITownCon 73
   			 endif
  		 endif
endif
endif
;This is the block for the shops to be constructed
If DoOnce11 == 0 && GetStage EITownCon == 82
If CurrentDay == 0
Set CurrentDay to GameDay
	Elseif CurrentDay != GameDay
	Set DayCount to DayCount + 1
	Set CurrentDay to GameDay
		If DayCount == 7
		smithref01.Enable
		Set DoOnce11 to 1
	Set DayCount to 0
	Setstage EITownCon 83
	endif
endif
endif
endif
;This block spawns the Spriggans for part 24 of quest
If DoOnce12 == 0 && Getstage EITownCon == 24
EISpriggan01.Enable
Set DoOnce12 to 1
endif

If DoOnce13 == 0 && Getstage EITownCon ==24
	if GetDeadCount EISpriggan == 5
		Setstage EITownCon 25
		Set DoOnce13 to 1
	endif
endif

If DoOnce14 == 0 && GetStage EITownCon == 19
EIShipwreck.Enable
Set DoOnce14 to 1
Endif
End

Link to comment
Share on other sites

There is an additional EndIf at the end of each block . . . 3 x Ifs and 4 x Endifs.

 

And make sure your quest has each one of those stages.

 

And when everything is running fine and stable, we have to talk about changing the way you manage the days passed.

But don’t worry about it, for now.

Link to comment
Share on other sites

There is an additional EndIf at the end of each block . . . 3 x Ifs and 4 x Endifs.

 

And make sure your quest has each one of those stages.

 

And when everything is running fine and stable, we have to talk about changing the way you manage the days passed.

But don’t worry about it, for now.

 

QQuix you're Awesome! Kudo for you, dear!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...