Recent content by IanYuy

  1. I

    Prevent Barbarians from entering territory

    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...
  2. I

    Prevent Barbarians from entering territory

    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...
  3. I

    Prevent Barbarians from entering territory

    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.
  4. I

    Identifying if Owner of Plot is a specific Civilization

    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...
  5. I

    Prevent Barbarians from entering territory

    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...
  6. I

    Prevent Barbarians from entering territory

    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...
  7. I

    Prevent Barbarians from entering territory

    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...
Top Bottom