Disabling Barbarian Uprising Event

cybrxkhan

Asian Xwedodah
Joined
Aug 10, 2006
Messages
9,687
Location
The Universe
Just a quick question here.

How would I go about disabling the barbarian uprising event in my mod? - not remove the xml entry, only simply disable the event (through python?) so that it will not happen, but still keep it there so I can theoretically enable it again in the coding if I feel like it.
Thanks in advance,

cybrxkhan
 
You could comment out the XML entry. Use <!-- and --> Markers.
 
Oh... So there isn't any python that would make the thing pop up, then.

Nice! :D
 
Oh... So there isn't any python that would make the thing pop up, then.

Nice! :D

No, you can turn them off in this XML file:

XML/Events/CIV4EventTriggerInfos.xml

Look for this line:

<iPercentGamesActive>0</iPercentGamesActive>

And set the value to 0 just like I have it here. You should be sure to copy the file over to your Custom Assets folder first and edit it from there. I don't believe there's an Event folder there by default, you might have to create one.
 
Well, I already knew how to do that beforehand (playing around with the chances), but I guess it slipped it mind. Also I wasn't sure whether I would also have to do some python or not.

Thanks for all the help, anyways.
 
Back
Top Bottom