function Server_AdvanceTurn_Order(game, order, result, skipThisOrder, addNewOrder)
if(order.proxyType == "GameOrderPlayCardReinforcement")then
if(game.ServerGame.Game.Players[order.PlayerID].IsAIOrHumanTurnedIntoAI == true)then
skipThisOrder(WL.ModOrderControl.SkipAndSupressSkippedMessage);
end
end
end
I only just started modding and mostly copied the code from the AI's don't deploy mod, but I get some interesting results. For some reason the AI gets the bonus armies from the reinforcement card, but it gets even better the turns after. I had the settings that if you succeeded in a attack you would get a reinforcement card for sure, but only 1 a turn. But the AI had 2 reinforcement cards on turn 2 and 3 on turn 3...? When I set
if(game.ServerGame.Game.Players[order.PlayerID].IsAIOrHumanTurnedIntoAI == true)then
to
if(game.ServerGame.Game.Players[order.PlayerID].IsAIOrHumanTurnedIntoAI == false)then
I have the exact same thing. The card gets cancelled in such a way that I keep the card and the effect still goes through.
I know you're able to skip played cards, so my guess is I'm making a mistake somewhere. can someone help? xD
Edited 10/11/2021 15:18:22