New feature: Getting and using intel allows for more spy-related roleplay

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2401 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
Flugente
2018-02-18 23:12:21 +00:00
parent 30759b3e7f
commit 9cf666a038
13 changed files with 1608 additions and 384 deletions
+37 -3
View File
@@ -177,6 +177,9 @@ Profil =
MADLAB = 146,
ROBOT = 62,
MIGUEL = 57,
CARLOS = 58,
IRA = 59,
DIMITRI = 60,
KYLE = 95,
}
@@ -201,6 +204,7 @@ CivGroup =
FACTORY_GROUP = 31,
ADMINISTRATIVE_STAFF_GROUP = 32,
LOYAL_CIV_GROUP = 33,
BLACKMARKET_GROUP = 34,
}
Bodytype =
@@ -387,7 +391,7 @@ function HandleSectorLiberation( sNewSectorX, sNewSectorY, bNewSectorZ, fFirstTi
-- inform us that there is a sublevel
if ( (GetModderLUAFact(ModSpecificFacts.TIXA_PRISON_SUBLEVEL_VOLUNTEERSGAINED) == 0) ) then
SetScreenMsg(FontColour.FONT_MCOLOR_LTGREEN, "This prison seems to have a sublevel, where more important inamtes are held.")
SetScreenMsg(FontColour.FONT_MCOLOR_LTGREEN, "This prison seems to have a sublevel, where more important inmates are held.")
end
-- if we haven't yet freed the Alma prisoners, give us a tip about that
@@ -395,6 +399,8 @@ function HandleSectorLiberation( sNewSectorX, sNewSectorY, bNewSectorZ, fFirstTi
SetScreenMsg(FontColour.FONT_MCOLOR_LTGREEN, "A few inmates inform us that there is another prison like this in Alma!")
end
AddIntel( 5 )
SetModderLUAFact(ModSpecificFacts.TIXA_PRISON_VOLUNTEERSGAINED, 1)
-- Alma
@@ -408,6 +414,8 @@ function HandleSectorLiberation( sNewSectorX, sNewSectorY, bNewSectorZ, fFirstTi
SetScreenMsg(FontColour.FONT_MCOLOR_LTGREEN, "A few inmates inform us that there is another prison like this in a place called Tixa. They aren't sure where it is though.")
end
AddIntel( 5 )
SetModderLUAFact(ModSpecificFacts.ALMA_PRISON_VOLUNTEERSGAINED, 1)
end
end
@@ -421,6 +429,8 @@ function HandleSectorLiberation( sNewSectorX, sNewSectorY, bNewSectorZ, fFirstTi
SetScreenMsg(FontColour.FONT_MCOLOR_LTGREEN, "The prisoners are very grateful for freeing them.")
AddIntel( 5 )
SetModderLUAFact(ModSpecificFacts.TIXA_PRISON_SUBLEVEL_VOLUNTEERSGAINED, 1)
end
end
@@ -429,9 +439,18 @@ end
-- this function is called whenever we recruit a RPC
function RecruitRPCAdditionalHandling( usProfile )
-- if Miguel joins us, the rest of the rebels joins us too
-- as the rebels join us, we gradually get more volunteers
if ( usProfile == Profil.MIGUEL ) then
AddVolunteers( 10 )
AddVolunteers( 4 )
AddIntel( 10 )
elseif ( usProfile == Profil.CARLOS ) then
AddVolunteers( 2 )
elseif ( usProfile == Profil.DIMITRI ) then
AddVolunteers( 2 )
AddIntel( 2 )
elseif ( usProfile == Profil.IRA ) then
AddVolunteers( 2 )
AddIntel( 5 )
end
end
@@ -698,6 +717,20 @@ function HandleSectorTacticalEntry( sSectorX, sSectorY, bSectorZ, fHasEverBeenPl
-- hunting store
CreateCivilian(11098, CivGroup.KINGPIN_CIV_GROUP, 62, Bodytype.REGMALE, Vest.BROWNVEST, Pants.GREENPANTS, -1, -1, 763, 135, 288, 284)
end
-- if we haven't pissed of the black market, spawn dealer
if ( CheckCivGroupHostile(CivGroup.BLACKMARKET_GROUP) == false ) then
-- unlock the door so we can enter
ACTION_ITEM_UNLOCK_DOOR(12834)
-- black market dealer and bodyguards
CreateCivilian(12992, CivGroup.BLACKMARKET_GROUP, 68, Bodytype.MANCIV, Vest.GREYVEST, Pants.JEANPANTS, Hair.WHITEHEAD, Skin.BLACKSKIN, 337, 264, -1, -1)
CreateArmedCivilain(CivGroup.BLACKMARKET_GROUP, SoldierClass.SOLDIER_CLASS_ELITE, 12672, 0)
CreateArmedCivilain(CivGroup.BLACKMARKET_GROUP, SoldierClass.SOLDIER_CLASS_ELITE, 13312, 0)
CreateArmedCivilain(CivGroup.BLACKMARKET_GROUP, SoldierClass.SOLDIER_CLASS_ELITE, 12995, 0)
end
elseif ( sSectorX == 5 and sSectorY == SectorY.MAP_ROW_C) then
-- only add merchants if Kingpin is alive and not hostile towards us
if ( (CheckFact( Facts.FACT_KINGPIN_DEAD, 0 ) == false) and
@@ -712,6 +745,7 @@ function HandleSectorTacticalEntry( sSectorX, sSectorY, bSectorZ, fHasEverBeenPl
-- wine store
CreateCivilian(10804, CivGroup.KINGPIN_CIV_GROUP, 59, Bodytype.REGFEMALE, -1, -1, -1, -1, 340, 107, 302, 284)
end
-- Chitzena
-- Meduna
elseif ( sSectorX == 4 and sSectorY == SectorY.MAP_ROW_O) then