Philip the Swaggerless Posted March 29, 2022 Report Share Posted March 29, 2022 I assumed I could make a building become buildable based on an aura because that is listed in the TechnologyModifications page: Builder/Entities/_string I was looking into adding an aura to give players allied to Iberians the ability to make an Iberian embassy to make mercenaries. I copied the "iber_player_teambonus" file into my mod's data/auras/ teambonuses folder and altered it. I've proofread this aura and rechecked my directories many times, but I can't get the embassy to show up in the in-game build panel when I click on a worker. I don't see it even when I get to the town phase (the required tech of parent embassy template). I did not include this building in the building.xml file because I want it to only be buildable when the player has an Iberian ally. { "type": "player", "affects": ["Citizen Worker"], "affectedPlayers": ["ExclusiveMutualAlly"], "modifications": [ { "value": "Builder/Entities/_string", "tokens": "structures/embassy_iberian_allied" } ], "auraName": "Saripeko", "auraDescription": "Allies can build Iberian embassies to train mercenaries." } Can auras be used to allow a building to become buildable? Quote Link to comment Share on other sites More sharing options...
Philip the Swaggerless Posted March 30, 2022 Author Report Share Posted March 30, 2022 Oh, nevermind. The type "player" aura doesn't work, it has to be type "global". Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted March 30, 2022 Report Share Posted March 30, 2022 3 hours ago, Philip the Swaggerless said: Oh, nevermind. The type "player" aura doesn't work, it has to be type "global". Does it disable the building if they become enemies? My guess is no. Quote Link to comment Share on other sites More sharing options...
Stan` Posted March 30, 2022 Report Share Posted March 30, 2022 @Freagarach Quote Link to comment Share on other sites More sharing options...
Philip the Swaggerless Posted March 30, 2022 Author Report Share Posted March 30, 2022 9 hours ago, wowgetoffyourcellphone said: Does it disable the building if they become enemies? My guess is no. Interesting, I'll test it tonight. Quote Link to comment Share on other sites More sharing options...
Philip the Swaggerless Posted March 30, 2022 Author Report Share Posted March 30, 2022 Okay, I just tested it by starting some games with an AI teammate while I am Iberians. By checking the replay I confirmed the following: changing my status to enemy removes the building from their units' building panels deleting all my units and cc (becoming defeated) removes the building from their units' building panels changing my status to neutral removes it from their building panel, and if I ally them again it reappears in their building panels. (That is, once I have sent them 1,000 stone and they accept my alliance offer. ) 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted March 31, 2022 Report Share Posted March 31, 2022 So... that works? 1 Quote Link to comment Share on other sites More sharing options...
Philip the Swaggerless Posted March 31, 2022 Author Report Share Posted March 31, 2022 Yes, it works just as I wanted it to 14 hours ago, Stan` said: So... that works? Yes, it works perfectly when I make the aura type be "global." Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted April 1, 2022 Report Share Posted April 1, 2022 I wonder how efficient it is. Is it a constant check or only on state change. Quote Link to comment Share on other sites More sharing options...
Philip the Swaggerless Posted April 1, 2022 Author Report Share Posted April 1, 2022 ...I don't know Quote Link to comment Share on other sites More sharing options...
Freagarach Posted April 1, 2022 Report Share Posted April 1, 2022 Luckily it is only on modification change. 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted April 1, 2022 Report Share Posted April 1, 2022 Nice. I may be using this new discovery in DE. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.