Recent content by Jakamo Jones

  1. J

    ReplaceUIScript UnitPanel not having any effect

    Annoyingly, the expansions already replace UnitPanel.lua with their own versions (UnitPanel_Expansion1.lua, UnitPanel_Expansion2.lua) so your mod probably works in vanilla but not with expansions.
  2. J

    [GS] Is there a better way to reset a unit's turn?

    you can certainly just set promotions regardless of xp, but that ends up being a totally different outcome as the unit now gets more promotions just 15xp later. and sadly restoring unit movement does not let a unit act again after giving it a promotion :sad:
  3. J

    Disable Found City When Insufficient Terrain Yields

    SetBuildDisabled is to disallow the production of specific units, not to prevent the founding of cities. Replacing UnitPanel.lua is how certain game modes do things, but I had trouble replacing UnitPanel.lua because Gathering Storm already replaces it and I'm not sure how to replace a...
  4. J

    [GS] Is there a better way to reset a unit's turn?

    I had a simple requirement... I wanted to create a unit with some amount of XP and promotions already chosen. I had searched the forums but mostly just people saying it can't be done. After trying out a million things, I found the way to do it. here's some pseudo code. for example if you wanted...
Back
Top Bottom