Log in

View Full Version : Help me Scripting the Casse Please ;)



Centurio Nixalsverdrus
09-02-2009, 03:44
Hi,

I'm currently aiming to redirect the Casse invasion from Bratosporios to Bagacos (they would never attack my giant empire). I changed the cooridinates for the landing, set the random percent to <100. Then they have these lines which switch the diplomatic stance to give them the possiblity to attack.


if I_SettlementOwner Bagacos = germans
console_command diplomatic_stance britons germans war
end_if

Thing is, I have teleported a Luso army to southern Ireland. They are close to extinction in Spain and hey, good time to migrate a bit! But the army stands there next to Ivernis and does nothing. So I thought...


if I_SettlementOwner Bagacos = germans
console_command diplomatic_stance britons germans war
console_command diplomatic_stance britons spain war
end_if

... I'd do this. Can I do it this way? The Sweboz hold Bagacos, so I think when they attack Bagacos, they would finally "realize" the invasion of the Lusitanians in Ireland.

What do you think?

Centurio Nixalsverdrus
09-11-2009, 21:32
Is Sir bovi on vacation?

Paltmull
09-12-2009, 13:25
Huh? There's a scripted Casse invasion?

Ludens
09-12-2009, 15:30
Moved to the EB submod forum.


Huh? There's a scripted Casse invasion?

Yes, if they conquer the British islands, a Casse army will spawn in Belgium. They tend to ignore Belgium, though.

bovi
09-18-2009, 17:46
Is Sir bovi on vacation?
Yes. Paternity leave, to be precise.

Mediolanicus
09-18-2009, 17:55
Yes. Paternity leave, to be precise.

Ooh, congratulations, bovi!!!

The first one? son or daughter?

Centurio Nixalsverdrus
09-19-2009, 20:15
Congratulations to your little bovine! :beam: :clown: :beam:

Btw, so far after approx. 6 turns nothing with Casse invasion, though 100% chance. :shrug:

bovi
09-21-2009, 00:06
Are you sure it's even evaluating whether the Sweboz are owning the settlement? Are you sure all the other monitor conditions are satisfied?

Centurio Nixalsverdrus
09-21-2009, 03:02
Well I farther lowered the requirements. In red what I changed, I also removed two Irish settlements from the requirements.


declare_counter isCassePortBeingPlaced
set_counter isCassePortBeingPlaced 0
monitor_event FactionTurnStart FactionType britons
and not FactionIsLocal
and I_SettlementOwner Camulosadae = britons
and I_SettlementOwner Ynis_Mon = britons
and I_SettlementOwner Ictis = britons
and I_SettlementOwner Caaern_Brigantae = britons
and I_SettlementOwner Ratae = britons
and I_SettlementOwner Attuaca = britons
and I_NumberOfSettlements britons < 9
and I_SettlementOwner Bagacos != slave
and Treasury > 10000
and RandomPercent < 100
and I_CompareCounter Celt_Reform > 0

set_counter isCassePortBeingPlaced 1
;war declared on whoever is owning Bratosporios as the army lands close to it on the shore
if I_SettlementOwner Bagacos = scythia
console_command diplomatic_stance britons scythia war
end_if
if I_SettlementOwner Bagacos = gauls
console_command diplomatic_stance britons gauls war
end_if
if I_SettlementOwner Bagacos = seleucid
console_command diplomatic_stance britons seleucid war
end_if
if I_SettlementOwner Bagacos = germans
console_command diplomatic_stance britons germans war
console_command diplomatic_stance britons spain war
end_if
if I_SettlementOwner Bagacos = spain
console_command diplomatic_stance britons spain war
end_if
if I_SettlementOwner Bagacos = thrace
console_command diplomatic_stance britons thrace war
end_if
if I_SettlementOwner Bagacos = macedon
console_command diplomatic_stance britons macedon war
console_command diplomatic_stance britons spain war
end_if
if I_SettlementOwner Bagacos = greek_cities
console_command diplomatic_stance britons greek_cities war
end_if
if I_SettlementOwner Bagacos = dacia
console_command diplomatic_stance britons dacia war
end_if
console_command add_money britons, -40000
console_command add_money britons, -10000
spawn_army
faction britons
character Mandubracos, admiral, command 5, influence 0, management 0, subterfuge 0, age 20, , x 69, y 183
unit generic ship pontomora exp 0 armour 0 weapon_lvl 0
unit generic ship pontomora exp 0 armour 0 weapon_lvl 0
unit generic ship ponto exp 0 armour 0 weapon_lvl 0
unit generic ship ponto exp 0 armour 0 weapon_lvl 0
unit generic ship ponto exp 0 armour 0 weapon_lvl 0
end
spawn_army
faction britons
character Cynfawr macManawyddan, named character, command 0, influence 0, management 0, subterfuge 0, age 30, , x 69, y 182
unit celtic infantry calawre exp 3 armour 0 weapon_lvl 0
unit celtic infantry calawre exp 2 armour 0 weapon_lvl 0
unit celtic infantry milnaht exp 2 armour 0 weapon_lvl 0
unit celtic infantry milnaht exp 2 armour 0 weapon_lvl 0
unit celtic infantry botroas exp 2 armour 0 weapon_lvl 0
unit celtic infantry botroas exp 2 armour 0 weapon_lvl 0
unit celtic infantry gaeroas exp 1 armour 0 weapon_lvl 0
unit celtic infantry gaeroas exp 1 armour 0 weapon_lvl 0
unit celtic infantry gaeroas exp 1 armour 0 weapon_lvl 0
unit celtic infantry batacorii exp 1 armour 0 weapon_lvl 0
unit celtic infantry batacorii exp 1 armour 0 weapon_lvl 0
unit celtic infantry batacorii exp 1 armour 0 weapon_lvl 0
unit belgae cavalry taramonnos exp 1 armour 0 weapon_lvl 0
unit celtic infantry drwdae exp 1 armour 0 weapon_lvl 0
end

console_command give_trait "Cynfawr macManawyddan" AIGeneral 3
console_command give_trait "Cynfawr macManawyddan" CasseBelgae 1
end_monitor
;port placement
monitor_event SettlementTurnStart SettlementName Ictis
and I_SettlementOwner Ictis = britons
and I_CompareCounter isCassePortBeingPlaced = 1
and not SettlementBuildingExists = naval_harbour
console_command create_building Ictis "naval_harbour"
end_monitor

bovi
09-29-2009, 10:23
Are you sure that all of these conditions are true? Try to remove them temporarily to test.


and I_NumberOfSettlements britons < 9
and Treasury > 10000
and I_CompareCounter Celt_Reform > 0

Centurio Nixalsverdrus
10-02-2009, 17:15
If I understand these conditions right, they mean that they must have less than 9 cities, more than 10000 mnai and at least the first Celtic reform should have hit. These are all fulfilled, but I will delete them as you say.