From e236f90db67e10509b1728a239ce6a1787cb4c0f Mon Sep 17 00:00:00 2001 From: Wanne Date: Thu, 2 Jan 2014 07:43:00 +0000 Subject: [PATCH] Creature Externalization (by Buggler) - externalized creature feeding sector CREPITUS_FEEDING_SECTOR to Mod_Settings.xml - added more comments to CreaturePlacements.xml git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1909 4f8fa57e-7814-0410-bad4-adc449f26b7c --- gamedir/Data-1.13/Mod_Settings.ini | 10 ++++-- .../TableData/Map/CreaturePlacements.xml | 36 +++++++++++++------ gamedir/Data/Mod_Settings.ini | 10 ++++-- .../Data/TableData/Map/CreaturePlacements.xml | 36 +++++++++++++------ 4 files changed, 66 insertions(+), 26 deletions(-) diff --git a/gamedir/Data-1.13/Mod_Settings.ini b/gamedir/Data-1.13/Mod_Settings.ini index b45b129c6..986c16b96 100644 --- a/gamedir/Data-1.13/Mod_Settings.ini +++ b/gamedir/Data-1.13/Mod_Settings.ini @@ -121,7 +121,7 @@ ADD_RAT_SECTOR_Y = 7 ADD_RAT_SECTOR_Z = 0 [San Mona] -;some rooms in the porn shop and Hans' location (I think this is before moving) +;some rooms in the porn shop and Hans' location before moving PORN_SHOP_ROOM_HANS = 49 HANS_POSTION = 13523 PORN_SHOP_ROOM_BRENDA = 47 @@ -255,4 +255,10 @@ CREATURE_MEANWHILE_CUTSCENE = TRUE ;victory celebration stuff VICTORY_SECTOR_X = 3 VICTORY_SECTOR_Y = 16 -VICTORY_POSITION = 5687 \ No newline at end of file +VICTORY_POSITION = 5687 + +[Creatures] +;Crepitus feeding sector. Will initiate creature quest if not started upon entering sector +CREPITUS_FEEDING_SECTOR_X = 9 +CREPITUS_FEEDING_SECTOR_Y = 10 +CREPITUS_FEEDING_SECTOR_Z = 2 \ No newline at end of file diff --git a/gamedir/Data-1.13/TableData/Map/CreaturePlacements.xml b/gamedir/Data-1.13/TableData/Map/CreaturePlacements.xml index 8e6d7c64c..1818610d0 100644 --- a/gamedir/Data-1.13/TableData/Map/CreaturePlacements.xml +++ b/gamedir/Data-1.13/TableData/Map/CreaturePlacements.xml @@ -3,7 +3,8 @@ This file defines creatures placement & composition for SCI-FI MODE, when ENABLE Fields index: Placement - Index - it is UNIQUE number for possible creature site. Max 10. + Index - UNIQUE number for creature site. Max 10 possible sites; only 1 will be randomly + activated based on 'Infectible' status, mine control and not attacking its headminer. ATTACKSOURCE - sector where creature surfaces to attack town. Its associated B1 underground sector MUST be defined as a habitat/queen sector. @@ -11,17 +12,19 @@ Placement ALTERNATEMAP - sector using alternate map when creature quest is initiated. WARPTOSECTOR - warp destination on tactical screen exit after creature quest completion. + Works only when in habitat/queen sector and SectorZ >= 2. QUEENSECTOR - come to Mama! - HABITATSECTOR - linked underground sectors where creatures will be guests. Max 50 per site. - + HABITATSECTOR - linked underground sectors where creatures will be guests. Max 255 per site. + For dungeon crawling, dead-ends can be set; spawning will take time to fill though. + Composition - CompIndex - Max 30. The 6 percentage tags MUST add up to 100. + CompIndex - Max 50 compositions. The 6 percentage tags MUST add up to 100. MaxPopulation - limited by MAX_NUMBER_CREATURES_IN_TACTICAL in Ja2_Options.ini - Default Composition. + Default Vanilla Composition. 0 - QUEEN_LAIR, where the queen lives. Highly protected. Reserved for QUEENSECTOR. HABITATSECTOR using Composition '0' will be ignored. 1 - LAIR, part of the queen's lair; lots of babies and defending mothers @@ -32,14 +35,18 @@ Composition 6 - MINE_EXIT, the area that creatures can initiate town attacks if lots of monsters. NOTE: -Quest initialized by InitCreatureQuest in StrategicTownLoyalty.lua script. -All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderground.lua script. +Quest initialized by 'CheckConditionsForTriggeringCreatureQuest' in StrategicTownLoyalty.lua script OR + CREPITUS_FEEDING_SECTOR in Mod_Settings.ini +Index sequence MUST be the same order as the 'Infectible' sequence at 'InitializeMines' in initmines.lua. +All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList'. +Non-linked sites can only be initialized at ' PopulateSectors' in initunderground.lua script on game start. + Creatures will obediently stay in sector like the underground enemies. --> + 1 - D13 20703 @@ -91,8 +98,8 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg + 2 - I14 9726 @@ -139,8 +146,8 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg + 3 - H8 13005 @@ -192,8 +199,8 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg + 4 - H3 10303 @@ -247,6 +254,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg + 0 20 40 @@ -257,6 +265,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 32 + 1 15 35 @@ -267,6 +276,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 18 + 2 0 15 @@ -277,6 +287,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 15 + 3 0 0 @@ -287,6 +298,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 12 + 4 0 0 @@ -297,6 +309,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 10 + 5 0 0 @@ -307,6 +320,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 15 + 6 0 0 diff --git a/gamedir/Data/Mod_Settings.ini b/gamedir/Data/Mod_Settings.ini index b45b129c6..986c16b96 100644 --- a/gamedir/Data/Mod_Settings.ini +++ b/gamedir/Data/Mod_Settings.ini @@ -121,7 +121,7 @@ ADD_RAT_SECTOR_Y = 7 ADD_RAT_SECTOR_Z = 0 [San Mona] -;some rooms in the porn shop and Hans' location (I think this is before moving) +;some rooms in the porn shop and Hans' location before moving PORN_SHOP_ROOM_HANS = 49 HANS_POSTION = 13523 PORN_SHOP_ROOM_BRENDA = 47 @@ -255,4 +255,10 @@ CREATURE_MEANWHILE_CUTSCENE = TRUE ;victory celebration stuff VICTORY_SECTOR_X = 3 VICTORY_SECTOR_Y = 16 -VICTORY_POSITION = 5687 \ No newline at end of file +VICTORY_POSITION = 5687 + +[Creatures] +;Crepitus feeding sector. Will initiate creature quest if not started upon entering sector +CREPITUS_FEEDING_SECTOR_X = 9 +CREPITUS_FEEDING_SECTOR_Y = 10 +CREPITUS_FEEDING_SECTOR_Z = 2 \ No newline at end of file diff --git a/gamedir/Data/TableData/Map/CreaturePlacements.xml b/gamedir/Data/TableData/Map/CreaturePlacements.xml index 8e6d7c64c..1818610d0 100644 --- a/gamedir/Data/TableData/Map/CreaturePlacements.xml +++ b/gamedir/Data/TableData/Map/CreaturePlacements.xml @@ -3,7 +3,8 @@ This file defines creatures placement & composition for SCI-FI MODE, when ENABLE Fields index: Placement - Index - it is UNIQUE number for possible creature site. Max 10. + Index - UNIQUE number for creature site. Max 10 possible sites; only 1 will be randomly + activated based on 'Infectible' status, mine control and not attacking its headminer. ATTACKSOURCE - sector where creature surfaces to attack town. Its associated B1 underground sector MUST be defined as a habitat/queen sector. @@ -11,17 +12,19 @@ Placement ALTERNATEMAP - sector using alternate map when creature quest is initiated. WARPTOSECTOR - warp destination on tactical screen exit after creature quest completion. + Works only when in habitat/queen sector and SectorZ >= 2. QUEENSECTOR - come to Mama! - HABITATSECTOR - linked underground sectors where creatures will be guests. Max 50 per site. - + HABITATSECTOR - linked underground sectors where creatures will be guests. Max 255 per site. + For dungeon crawling, dead-ends can be set; spawning will take time to fill though. + Composition - CompIndex - Max 30. The 6 percentage tags MUST add up to 100. + CompIndex - Max 50 compositions. The 6 percentage tags MUST add up to 100. MaxPopulation - limited by MAX_NUMBER_CREATURES_IN_TACTICAL in Ja2_Options.ini - Default Composition. + Default Vanilla Composition. 0 - QUEEN_LAIR, where the queen lives. Highly protected. Reserved for QUEENSECTOR. HABITATSECTOR using Composition '0' will be ignored. 1 - LAIR, part of the queen's lair; lots of babies and defending mothers @@ -32,14 +35,18 @@ Composition 6 - MINE_EXIT, the area that creatures can initiate town attacks if lots of monsters. NOTE: -Quest initialized by InitCreatureQuest in StrategicTownLoyalty.lua script. -All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderground.lua script. +Quest initialized by 'CheckConditionsForTriggeringCreatureQuest' in StrategicTownLoyalty.lua script OR + CREPITUS_FEEDING_SECTOR in Mod_Settings.ini +Index sequence MUST be the same order as the 'Infectible' sequence at 'InitializeMines' in initmines.lua. +All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList'. +Non-linked sites can only be initialized at ' PopulateSectors' in initunderground.lua script on game start. + Creatures will obediently stay in sector like the underground enemies. --> + 1 - D13 20703 @@ -91,8 +98,8 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg + 2 - I14 9726 @@ -139,8 +146,8 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg + 3 - H8 13005 @@ -192,8 +199,8 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg + 4 - H3 10303 @@ -247,6 +254,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg + 0 20 40 @@ -257,6 +265,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 32 + 1 15 35 @@ -267,6 +276,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 18 + 2 0 15 @@ -277,6 +287,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 15 + 3 0 0 @@ -287,6 +298,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 12 + 4 0 0 @@ -297,6 +309,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 10 + 5 0 0 @@ -307,6 +320,7 @@ All QUEENSECTOR & HABITATSECTOR need to be defined at 'SectorList' in initunderg 15 + 6 0 0