Not exactely, but thanks for the xls, that's usefull stuff.
What I'm looking for is something like this:
This however does not work (ctp2 won't load it), so how do I get the affected traderoute?
Acording the refference the SetPiratingArmy event needs two arguments the first being of type? GEA_TradeRoute, the second being the army doing the pirating. So my thougtht was, that if the event gets the arguments the handler sould know about them, and thus I should be able to access them.
Edit: corrected typo.
What I'm looking for is something like this:
Code:
HandleEvent(SetPiratingArmy) 'My_Pirating_handler' post{ GEA_TradeRoute The_TradeRoute; The_TradeRoute = My_Pirating_handler.arguments[0]; Event:KillTradeRoute(The_TradeRoute,0); }
Acording the refference the SetPiratingArmy event needs two arguments the first being of type? GEA_TradeRoute, the second being the army doing the pirating. So my thougtht was, that if the event gets the arguments the handler sould know about them, and thus I should be able to access them.
Edit: corrected typo.
Comment