[GS] Is it possible to create new Spy Operation?

Luke Vo

Chieftain
Joined
Apr 29, 2019
Messages
59
For example, I want to add an operation for Spy to steal Relics. Is it possible, what elements/codes do I need to create?
 
No, unfortunately no new unit operations can be created right now.
 
Thanks. Well, it's a bummer but as I thought, it would be beyond LUA's scope.
 
Aren't there new unit operations in the black death scenario?

But then there is the issue of the AI not being able to use it...
 
Yes indeed they added new operations. They did that by overriding UnitPanels (UnitPanel_BlackDeathScenario.lua) and add their own buttons for their custom commands (BlackDeathScenario_UnitCommandDefs.lua and BlackDeathScenario_UnitCommands.lua). Clever indeed. However I wonder if I can add a Spy operation (not unit operation). Probably have to override that panel too, and in that case, I might need to do the following:

- Check occupying city for buildings with Relics.
- Move Spy to such district.
- How to keep the Spy there, and after n-turn, roll the chance for the operation/counter spy etc? ⬅
 
Back
Top Bottom