Expiry of active cards: 2021-03-24 20:38:37 |
Cageman
Level 58
Report
|
Hello modders,
I've been into modding for some weeks now and working on yet another diplo mod. I think I can make some improvements, but also to practise modding. The goal is to enforce peace/alliance with diplo cards.
One of the things I'm doing now, is keeping a list ID's of diplo cards that are played by the mod. After each turn, I would like to remove the cards with these ID's from the LatestTurnStanding.ActiveCards when someone declared war on another player. However, while LatestTurnStanding is writeable, according to "function PrintProxyInfo(obj)", ActiveCards is not. I've been thinking to entirely copy the LatestTurnStanding, alter the ActiveCards in the copy, and write the copied standing back to the LatestTurnStanding in its entirety. However, unfortunately, the fact that ActiveCards is readOnly, is then also copied over to the copy. Also, it would be a bit hacky.
Has anyone succesfully been able to alter the active cards, or is this just hardcoded and thereby impossible?
What I want to do with it, is implement a Blitzkrieg card, which enables a player to immediately go to war with an ally/peace and attack right away.
If none of this is possible, would there be a way to pass the amount of turns when the mod plays a diplo card?
|
Expiry of active cards: 2021-03-24 21:18:37 |
Cageman
Level 58
Report
|
Thanks for the quick reply krinid.
I know the AdvancedDiplo v4. However, there alliances/peace is enforced through orders that get skipped. Although I personally think that mod works fine, I get a some reactions that it's a bit unclear for newer players that you cannot attack when not in war with someone. With a diplo card played, you would get the regular warning from a diplo card when attempting to attack an ally/peace.
Your suggestions around the Blitzkrieg card are nice, yes. Especially a max amount of times Blitzkriegs can be played.
|
Expiry of active cards: 2021-03-27 00:10:59 |
dabo1
Level 57
Report
|
I guess you could modify Diplo mods to work with Diplo cards, but there are limitations to this(see spy cards advanced Diplo mod): a) You need to have the Diplo card in the game (the only way to play without it but use that system, is using really high piece counts) b) You would need to limit the duration to 1 turn-> can not have without a lot of modification Diplo cards that work longer
It's not possible to remove cards that are played already as far as I am aware. I just wish there would be a way to have more access to the system, but as far as I am aware there is no update for the mod framework planned(guess there just isn't enough people who created mods with it) What would be needed to prevent that: -Way to modify the menu when attacking/transferring(min, max army limit, special units, way to block adding invalid orders) -Way to block certain orders from being submitted(verification before pressing commit, to e.g. warn about orders that are definitely invalid) -Access to territory connections(hide/block connections between territories that would cause orders that are not intended with the mod) -Way to modify the deploy menu(min, max, deployment value)
But well without that, its just easier and in my opinion better to just use skip orders
Edited 3/27/2021 00:11:50
|
Post a reply to this thread
Before posting, please proofread to ensure your post uses proper grammar and is free of spelling mistakes or typos.
|
|