kinc_module1000

This script is an example of one of the encounter scripts that kinc_worldmap includes. It's worth noting that none of the OC module includes seem to do anything with the SpecialEncounter() function.

// kinc_module1000
//
// global include file for the module.
	
// EPF 12/8/05
// DBR 02/22/06 - if I havn't had the Sand intro, don't warp to the Sunken Flagon.
// DBR 08/03/06 - Initiate Olov ambush if player tries to leave Old Owl Well

#include "ginc_debug"

//const string OLOV_CS_FLAG = "13gb_olov_ambush";
//const string OLOV_CS_WP = "13_Cascamp_To_Olov";

	
string Get1000Encounter(string sDestHotspot)
{
	int nOrigin = GetGlobalInt("OriginArea");

	if (GetGlobalInt("13gb_olov_ambush") == 1)	//Olov ambush should occur, don't leave Old Owl Well without Ambush occurring.
	{
		SetGlobalInt("13gb_olov_ambush",2);
		PrettyMessage("Time for Olov to appear");
		return "13_Cascamp_To_Olov";
	}
		
	if ((sDestHotspot=="1001flagon")&&(!GetGlobalInt("10_arrival_done")))
		return "10_wp_cs_arrival_elstop";
	
	//Sydney/Johcris scene
	if (GetGlobalInt("00b_ReadyJocrisNataleCS")==1)
	{
		SetGlobalInt("00_bOverrideEncounterMessage", TRUE);
		return "1025_wp_player";		
	}	
		
	if (sDestHotspot == "1001flagon" || sDestHotspot == "2000Neverwinter_A2")
	{
		PrettyMessage("Calling redirection script");
		
		switch (nOrigin)
		{		
			case 1013: //Player coming from Merchant Quarter
			{
				SetGlobalInt("00_bOverrideEncounterMessage", TRUE);
				PrettyMessage("Entering from Merchant Quarter");
				SetGlobalInt("district_redirect", 1);
				return "10_wp_docksi_to_dockso";
			}
			break;
			case 1600: // Player coming from Blacklake
			case 2024:
			{
				SetGlobalInt("00_bOverrideEncounterMessage", TRUE);
				SetGlobalInt("district_redirect", 1);
				return "10_wp_docksi_to_dockso";
			}
			break;
			case 1900: // Player coming from Back Alley
			{
				SetGlobalInt("00_bOverrideEncounterMessage", TRUE);
				SetGlobalInt("district_redirect", 1);
				return "10_wp_alley_to_docks1_st_exit";
			}
			break;
		}
	}
	return "";
}
	
string Get1000SpecialEncounter(string sDestHotspot)
{
	return "";
}