x0_i0_infdesert

Desert-specific include file for the infinite desert system.

NOTE: This file includes x0_i0_position, x0_i0_spawncond, and x0_i0_stringlib.

Constants

NameValueBrief Description
ENCOUNTER_ASABI1x0_asabi_warrior|x0_asabi_chief+2+3Encounter list.
ENCOUNTER_ASABI2x0_asabi_warrior|x0_asabi_shaman+2+3Encounter list.
ENCOUNTER_BANDITnw_bandit001|nw_bandit002|nw_bandit003|NOBOSS+3+5Encounter list.
ENCOUNTER_BASILISKx0_basilisk|NOBOSS+1+1Encounter list.
ENCOUNTER_BEETLEnw_btlfire|nw_btlfire02|nw_btlbomb|NOBOSS+4+6Encounter list.
ENCOUNTER_CATnw_cougar|nw_cragcat|nw_beastmalar001|nw_panther|nw_cougar+2+5Encounter list.
ENCOUNTER_COCKATRICEx0_cockatrice|NOBOSS+1+1Encounter list.
ENCOUNTER_EARTH_ELEMnw_earth|NOBOSS+1+3Encounter list.
ENCOUNTER_FORMIANx0_form_warrior|x0_form_worker|x0_form_taskmast+2+5Encounter list.
ENCOUNTER_GORGONx0_gorgon|NOBOSS+1+1Encounter list.
ENCOUNTER_HUMANOIDnw_goblina|nw_goblinb|nw_gobchiefb|nw_orca|nw_orcchiefa|nw_gobwiza+3+6Encounter list.
ENCOUNTER_HUMANOID2nw_goblina|nw_goblinb|nw_gobchiefb|nw_gobwiza+6+8Encounter list.
ENCOUNTER_MERCnw_halfmerc001|nw_dwarfmerc001|nw_humanmerc002|nw_elfmerc001|NOBOSS+3+6Encounter list.
ENCOUNTER_MUMMYnw_mummy|nw_mumcleric|nw_mumfight|NOBOSS+1+3Encounter list.
ENCOUNTER_STINGERx0_stinger|x0_stinger_war|x0_stinger_mage|x0_stinger_chief+2+4Encounter list.
ENCOUNTER_UNDEADnw_shadow|nw_shfiend|nw_skeleton|nw_skelwarr01|nw_ghast|nw_ghoul|NOBOSS+3+5Encounter list.
ENCOUNTER_WERECATnw_werecat001|NOBOSS+2+4Encounter list.
ENCOUNTER_WILLOWISPnw_willowisp|NOBOSS+1+1Encounter list.
ENCOUNTER_WOLFnw_wolf|nw_dog|nw_direwolf|nw_wolfdireboss+2+5Encounter list.
ENCOUNTER_ZHENTzhentarimcleric|zhentarimclrf2|zhentarimguard|zhentarimguar007|zhentarimmage003|zhentarimmage|zhentarimguar001|zhentarimguar008+4+6Encounter list.
INF_BASE"INF_DESERT"Base tag for this infinite area.
INF_ENCOUNTERINF_BASE + "_ENCOUNTER"Tag for encounter spawn waypoints.
INF_MAX_RUN_LENGTH3Maximum length of a run.
INF_MIN_RUN_LENGTH2Minimum length of a run.
MIN_HD_FOR_BOSS6Hit dice restriction for spawning a boss.

Functions

NameBrief Description
CreateEncounterGroupInternal function. Takes a string for an encounter type (eg, ENCOUNTER_WOLF) that is a pipe-delimited list of creature blueprints. It will randomly generate the specified number of creatures out of the list and create them in the given location.

The last two entries in the list after the + symbol are the min/max number of creatures to generate.

The last blueprint in a list is the boss. (To make a list with no boss, simply repeat one creature at the end.) Bosses will be unique and will show up randomly, if the given PC has HD lower than the minimum hit dice required.

Each creature in the list will have an equal chance of showing up.

Each creature will have the ambient animations spawn-in condition set to make them wander about.
INF_CreateRandomEncounterCreate a random encounter in the specified area, possibly based on the PC's characteristics.
INF_CreateRandomPlaceablesCreate random decorative placeables in the specified area.
INF_GetEntryMessageMessage sent to the player the first time they enter an infinite area.
INF_GetPoolEmptyMessageMessage sent to PC in the case where the pool of generic areas is empty and no new area can be allocated. This should happen very rarely, and the result will be that the PC is returned to the starting point.
INF_GetNeedKeyMessageMessage sent to PC when they would reach the reward area but don't have the key.
INF_GetNoStartMessageMessage sent to PC when no starting marker is available, which means they can't enter the desert. This should only happen if the modmaker has forgotten to put down a starting marker!
INF_GetReachRewardMessageMessage sent to PC when they reach the reward area of the infinite run for the first time.
INF_GetReachStartMessageMessage sent to PC when they get dropped back to the starting point from within the desert for the first time.
INF_GetReentryMessageMessage sent to the player when they re-enter an infinite area that they've been to before.
INF_GetReturnToRewardMessageMessage sent to PC when they reach the reward area of the infinite run on a subsequent re-entry.
INF_GetReturnToStartMessageMessage sent to PC when they get dropped back to the starting point after the first time.
PickRandomEncounterInternal function. Randomly selects one of the encounter lists.


  author: Mistress