Jump to content
Sign in to follow this  
Vorians

Any way to "intercept" map marker triggering?

Recommended Posts

I wouldn't need to use getpos on the map markers fortunately, as I already have their coordinates, they're fixed.

 

Here's an example script for determining the player's distance from a fixed point.

scn DistanceCheck
Float PointA
Float PointB
Float DistanceSq
Float Distance

Begin OnActivate
	If Player.GetPos X >= 0
		Set PointA to 33597 - (Player.GetPos X)
	Else
		Set PointA to 33597 + (Player.GetPos X)
	EndIf	
	If Player.GetPos Y >= 0
		Set PointB to 72011 - (Player.GetPos Y)
	Else
		Set PointB to 72011 + (Player.GetPos Y)
	EndIf	
	Set DistanceSq to (PointA*PointA)+(PointB*PointB)
	Set Distance to (sqrt DistanceSq)
	Message "%.0f units from the Market District", Distance
End

Next I need to define time to pass based on distance. Somehow.

Share this post


Link to post
Share on other sites

And, done. though the script is a little larger than I would have liked.

 

Spoiler

scn BANMapOverrideScript
float fQuestDelayTime
float PointA
float PointB
float Distance
float DistanceSq
float Travel
short DisabledLMB
short ICSelected
short Choice
short Choosing
short DoOnce

Begin MenuMode 1023
	If (fQuestDelayTime == 0)
		Set fQuestDelayTime to 0.001
	EndIf
	If DisabledLMB
		Set DisabledLMB to 0
		EnableKey 256
	EndIf
	If (Choice == 1)
		Set Choice to -1
	EndIf

	If (Choosing == 1)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 33597 - (Player.GetPos X)
			Else
				Set PointA to 33597 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 72011 - (Player.GetPos Y)
			Else
				Set PointB to 72011 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 33597, 72011, 3337, 3.682, ICMarketDistrict
		EndIf
		Return
	EndIf
	If (Choosing == 2)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 34360 - (Player.GetPos X)
			Else
				Set PointA to 34360 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 63448 - (Player.GetPos Y)
			Else
				Set PointB to 63448 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 34360, 63448, 3619, 1.5705, ICArenaDistrict
		EndIf
		Return
	EndIf
	If (Choosing == 3)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 33647 - (Player.GetPos X)
			Else
				Set PointA to 33647 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 54770 - (Player.GetPos Y)
			Else
				Set PointB to 54770 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 33647, 54770, 3584, 5.7585, ICArboretumDistrict
		EndIf
		Return
	EndIf
	If (Choosing == 4)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 23710 - (Player.GetPos X)
			Else
				Set PointA to 23710 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 54773 - (Player.GetPos Y)
			Else
				Set PointB to 54773 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 23710, 54773, 3546, 0.5235, ICTempleDistrict
		EndIf
		Return
	EndIf
	If (Choosing == 5)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 18677 - (Player.GetPos X)
			Else
				Set PointA to 18677 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 63428 - (Player.GetPos Y)
			Else
				Set PointB to 63428 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 18677, 63428, 3333, 1.5705, ICTalosPlazaDistrict
		EndIf
		Return
	EndIf
	If (Choosing == 6)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 23936 - (Player.GetPos X)
			Else
				Set PointA to 23936 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 71615 - (Player.GetPos Y)
			Else
				Set PointB to 71615 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 23936, 71615, 3334, 2.6175, ICElvenGardensDistrict
		EndIf
		Return
	EndIf
	If (Choosing == 7)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 24706 - (Player.GetPos X)
			Else
				Set PointA to 24706 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 63425 - (Player.GetPos Y)
			Else
				Set PointB to 63425 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 24706, 63425, 3270, 1.5705, ICImperialPalace
		EndIf
		Return
	EndIf
	If (Choosing == 8)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 36501 - (Player.GetPos X)
			Else
				Set PointA to 36501 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 76983 - (Player.GetPos Y)
			Else
				Set PointB to 76983 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 36501, 76983, 3104, 0.5235, ICImperialPrisonDistrict
		EndIf
		Return
	EndIf
	If (Choosing == 9)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 36444 - (Player.GetPos X)
			Else
				Set PointA to 36444 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 49887 - (Player.GetPos Y)
			Else
				Set PointB to 49887 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 36444, 49887, 3172, 2.6175, ICTheArcaneUniversity
		EndIf
		Return
	EndIf
	If (Choosing == 10)
		Set Choice to GetButtonPressed
		If (Choice == -1)
			Return
		ElseIf (Choice == 0)
			Set Choosing to -1
			Set Choice to -1
			If Player.GetPos X >= 0
				Set PointA to 20924 - (Player.GetPos X)
			Else
				Set PointA to 20924 + (Player.GetPos X)
			EndIf	
			If Player.GetPos Y >= 0
				Set PointB to 76646 - (Player.GetPos Y)
			Else
				Set PointB to 76646 + (Player.GetPos Y)
			EndIf	
			Set DistanceSq to (PointA*PointA)+(PointB*PointB)
			Set Distance to sqrt DistanceSq
			If Distance <= 15000
				Set Travel to 0.5
			ElseIf Distance <= 30000
				Set Travel to 1
			ElseIf Distance <= 45000
				Set Travel to 1.5
			ElseIf Distance <= 60000
				Set Travel to 2
			ElseIf Distance <= 75000
				Set Travel to 2.5
			ElseIf Distance <= 90000
				Set Travel to 3
			ElseIf Distance <= 105000
				Set Travel to 3.5
			ElseIf Distance <= 120000
				Set Travel to 4
			ElseIf Distance <= 135000
				Set Travel to 4.5
			ElseIf Distance <= 150000
				Set Travel to 5
			ElseIf Distance <= 165000
				Set Travel to 5.5
			ElseIf Distance <= 180000
				Set Travel to 6
			ElseIf Distance <= 195000
				Set Travel to 6.5
			ElseIf Distance <= 210000
				Set Travel to 7
			ElseIf Distance <= 225000
				Set Travel to 7.5
			ElseIf Distance <= 240000
				Set Travel to 8
			ElseIf Distance <= 255000
				Set Travel to 8.5
			Else
				Set Travel to 9
			EndIf
			CloseAllMenus
			SetPCSleepHours Travel
			Player.PositionWorld 20924, 76646, 2719, 5.7585, ICAristocraticDistrict
		EndIf
		Return
	EndIf

	If (Player.GetInWorldspace Tamriel) || (Player.GetInWorldspace AnvilCastleCourtyardWorld) || (Player.GetInWorldspace AnvilWorld) || (Player.GetInWorldspace BravilWorld) || (Player.GetInWorldspace BrumaWorld) ||(Player.GetInWorldspace ChorrolWorld) || (Player.GetInWorldspace KvatchEast) || (Player.GetInWorldspace KvatchEntrance) || (Player.GetInWorldspace KvatchPlaza) || (Player.GetInWorldspace LeyawiinWorld) || (Player.GetInWorldspace SkingradWorld) || (Player.GetInWorldspace TGTempleOfTheEmperorZero)
		If (GetMapMenuMarkerRef == BANICMMarker) || (GetMapMenuMarkerRef == BANICAreMarker) || (GetMapMenuMarkerRef == BANICArbMarker) || (GetMapMenuMarkerRef == BANICTemMarker) || (GetMapMenuMarkerRef == BANICTalMarker) || (GetMapMenuMarkerRef == BANICElvMarker) || (GetMapMenuMarkerRef == BANICPalMarker) || (GetMapMenuMarkerRef == BANICPriMarker) || (GetMapMenuMarkerRef == BANICAUMarker) || (GetMapMenuMarkerRef == BANICAriMarker)  
			Set DisabledLMB to 1
			Set DoOnce to 0
			DisableKey 256
			If (OnKeyDown 256)
				Set ICSelected to 1
			EndIf
		EndIf
		If ICSelected
			Set DisabledLMB to 0
			EnableKey 256
			If (GetMapMenuMarkerRef == BANICMMarker)
				Set Choosing to 1
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Market District?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICAreMarker)
				Set Choosing to 2
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Arena District?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICArbMarker)
				Set Choosing to 3
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Arboretum District?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICTemMarker)
				Set Choosing to 4
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Temple District?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICTalMarker)
				Set Choosing to 5
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Talos Plaza District?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICElvMarker)
				Set Choosing to 6
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Elven Gardens District?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICPalMarker)
				Set Choosing to 7
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Palace District?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICPriMarker)
				Set Choosing to 8
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Prison District?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICAUMarker)
				Set Choosing to 9
				Set ICSelected to 0
				MessageBox "Travel to Imperial City, The Arcane University?" "Yes" "No"
				Return
			EndIf
			If (GetMapMenuMarkerRef == BANICAriMarker)
				Set Choosing to 10
				Set ICSelected to 0
				MessageBox "Travel to Imperial City Aristocratic District?" "Yes" "No"
				Return
			EndIf
		EndIf
	EndIf
End

Begin GameMode
	If (fQuestDelayTime)
		Set fQuestDelayTime to 0
	EndIf
	If DoOnce
		Return
	Else
		If DisabledLMB
			Set DisabledLMB to 0
			EnableKey 256
		EndIf
		Set ICSelected to 0
		Set Choosing to -1
		Set Choice to -1
		Set DoOnce to 1
	EndIf
End

 

 

Share this post


Link to post
Share on other sites

Good job there! Should be a useful little mod.

Old rule of programming - don't refactor it until you look at it again, cause you're going to change everything anyway :P

Share this post


Link to post
Share on other sites

Thanks :) Though this is in fact going into a not so little mod, Better Cities. But anyone who wants to take the script and make it their own for another mod is welcome to. I actually thought that the code for identifying distance from a given point might be good in a quest for the player to find things without quest markers. Wait, this would be PERFECT for Blood & Mud which is integrated into Better Cities, finding some things/locations in that quest is too difficult as it is. Yay. More scripting...

  • Haha 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×