Yeah, that all does seem a much better, modular method. So, I went in and added the trait. (I picked an existing one to track to make sure I was putting all the entries in where they were needed) I've triple checked to make sure all that is in there. If I comment out my code in Units and...
EDIT: Okay, the code prevents Barbarians from entering the civilization's territory--but only when I'm not the one playing the civ. When controlling another Civ with map exposed, the barbarians refused to enter its territory despite a worker and settler being right within their grasp.
Thanks...
Your suggestion sort of just hit me on the head. The past day I've been doing just that. But, I guess I'm a mess with C++, as I don't know it, and tried to piece together something. I posted my query about the problem in my code in the SDK/LUA forums for now.
First and foremost, I'm going to state that I'm incredibly new to C++ (In the sense that I understand coding languages in general but don't know this one at all). For my mod, I needed to be able to prevent Barbarians from entering a specific civ's territory. After tracking down code from...
I can't find anything about the Great Wall affecting Barbarians (I believe that was in Civ IV?), only the movement penalty to just 'enemies'.
I haven't had any luck with trying to update just the EarliestBarbarianReleaseTurn for a specific civ. If I have to, is there a method to make a...
Thanks for that. I looked at it and it seems to just trigger permanent peace, but somehow this all gave me an idea.
After thinking about it, I could use the difficulty level settings. I was thinking, since you can set difficulty level settings based per civilization in a game, that this would...
Hey, I've searched for quite a bit (in the forums and within the game files itself) on how to achieve this...
I am trying to make a civilization whose trait prevents Barbarians from entering their borders. Pouring through the XML, I found the difficulty settings (but this is global and would...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.