Special custom unit pre-game build
Special custom unit pre-game build
Dear Sirs!
1) I am about to release the new webDip map variant with a special rule.
The thing is that the very first stage of the game is a build-phase (winter). Some countries has an opportunity to chose type of the units to build. And some countries has a fixed array of unit to be build (as in classic).
Please help me how to change the code. This option will surely add more diversity to the gameplay.
2) Also (it's not the point I'm interested much in this post) in future we can face with variant creation in which we will want to have some fixed builds and some free to chose builds for every country.
1) I am about to release the new webDip map variant with a special rule.
The thing is that the very first stage of the game is a build-phase (winter). Some countries has an opportunity to chose type of the units to build. And some countries has a fixed array of unit to be build (as in classic).
Please help me how to change the code. This option will surely add more diversity to the gameplay.
2) Also (it's not the point I'm interested much in this post) in future we can face with variant creation in which we will want to have some fixed builds and some free to chose builds for every country.
WebDiplomacy enthusiast. Adaptor of webdiplomacy variants: Classic Cataclysm, Classic 1898, Classic 1898 Fog of War, Punic Wars, Western World 901, 13th Century Mongolian Empire, Speed Europa, Minor Power.
- Jamiet99uk
- Posts: 32404
- Joined: Sat Dec 30, 2017 11:42 pm
- Location: Durham, UK
- Contact:
Re: Special custom unit pre-game build
Which are which?
The only person you're truly competing against, Wesley, is yourself.
Re: Special custom unit pre-game build
For example in the game-variant for 7 powers on the board:
in the first game phase we got build-phase:
- Power1, Power2, Power3 has the fixed arrays of builds:
A SC1-1, A SC1-2, F SC1-3;
A SC2-1, F SC2-2, F SC2-3:
A SC3-1, F SC3-2, F SC3-3.
- Power4, Power5, Power6, Powers7:
they are allowed to chose their build in the build-phase.
In the /classes/adjudicatorPreGame.php
we use separately both variants of builds in many variants.
But never when these two are combined.
WebDiplomacy enthusiast. Adaptor of webdiplomacy variants: Classic Cataclysm, Classic 1898, Classic 1898 Fog of War, Punic Wars, Western World 901, 13th Century Mongolian Empire, Speed Europa, Minor Power.
- Jamiet99uk
- Posts: 32404
- Joined: Sat Dec 30, 2017 11:42 pm
- Location: Durham, UK
- Contact:
Re: Special custom unit pre-game build
No, I meant which countries?
For instance, does England get a choice, but Germany does not? And if so, why?
For instance, does England get a choice, but Germany does not? And if so, why?
The only person you're truly competing against, Wesley, is yourself.
Re: Special custom unit pre-game build
Due to the variant special rules. For example:Jamiet99uk wrote: ↑Sun Jan 01, 2023 4:35 pmNo, I meant which countries?
For instance, does England get a choice, but Germany does not? And if so, why?
We develop a new variant to play. Several powers are big, others are small. But small countries has an advantage to chose their builds at the start build-phase. Small countries have a possibility to co-operate and work out a long list of debuts. Big ones got fixed builds with no option to change the strategy but they have one or two units more at the very start.
WebDiplomacy enthusiast. Adaptor of webdiplomacy variants: Classic Cataclysm, Classic 1898, Classic 1898 Fog of War, Punic Wars, Western World 901, 13th Century Mongolian Empire, Speed Europa, Minor Power.
Re: Special custom unit pre-game build
Or we even can go further:Flame wrote: ↑Tue Jan 03, 2023 12:24 pmDue to the variant special rules. For example:Jamiet99uk wrote: ↑Sun Jan 01, 2023 4:35 pmNo, I meant which countries?
For instance, does England get a choice, but Germany does not? And if so, why?
We develop a new variant to play. Several powers are big, others are small. But small countries has an advantage to chose their builds at the start build-phase. Small countries have a possibility to co-operate and work out a long list of debuts. Big ones got fixed builds with no option to change the strategy but they have one or two units more at the very start.
in the adjudicatorPreGame.php or variant.php we can do smth like this for every power and in any variant:
1. England: "F EDI, F LON, A YOR (fixed)";
2 ...
It means at the start England will get an army in York but has an option to change the default builds in Edi & London.
WebDiplomacy enthusiast. Adaptor of webdiplomacy variants: Classic Cataclysm, Classic 1898, Classic 1898 Fog of War, Punic Wars, Western World 901, 13th Century Mongolian Empire, Speed Europa, Minor Power.
Re: Special custom unit pre-game build
So, I start the job.
But I ask help in the following tasks:
1. Major powers should have fixed builds (this time all powers can chose their builds in the pre-game phase)
2. Minor powers should bet 1/3 of the full stake to enter the game.
Variant page:
https://webdiplomacy.ru/variants.php?variantID=222
First test game. Please join to test and develop:
https://webdiplomacy.ru/board.php?gameID=12804
But I ask help in the following tasks:
1. Major powers should have fixed builds (this time all powers can chose their builds in the pre-game phase)
2. Minor powers should bet 1/3 of the full stake to enter the game.
Variant page:
https://webdiplomacy.ru/variants.php?variantID=222
First test game. Please join to test and develop:
https://webdiplomacy.ru/board.php?gameID=12804
WebDiplomacy enthusiast. Adaptor of webdiplomacy variants: Classic Cataclysm, Classic 1898, Classic 1898 Fog of War, Punic Wars, Western World 901, 13th Century Mongolian Empire, Speed Europa, Minor Power.
Re: Special custom unit pre-game build
If smbd is willing to help with coding special variant features mensioned above - here we have the source-files of variant:
https://webdiplomacy.ru/files.php?variantID=222
https://webdiplomacy.ru/files.php?variantID=222
WebDiplomacy enthusiast. Adaptor of webdiplomacy variants: Classic Cataclysm, Classic 1898, Classic 1898 Fog of War, Punic Wars, Western World 901, 13th Century Mongolian Empire, Speed Europa, Minor Power.
Re: Special custom unit pre-game build
I found smth similar in The Dutch Revolt variant source-code.Flame wrote: ↑Fri Mar 03, 2023 6:31 pmSo, I start the job.
But I ask help in the following tasks:
1. Major powers should have fixed builds (this time all powers can chose their builds in the pre-game phase)
2. Minor powers should bet 1/3 of the full stake to enter the game.
Variant page:
https://webdiplomacy.ru/variants.php?variantID=222
First test game. Please join to test and develop:
https://webdiplomacy.ru/board.php?gameID=12804
I mean the special fixed builds for certain powers.
https://vdiplomacy.net/variants.php?variantID=32
WebDiplomacy enthusiast. Adaptor of webdiplomacy variants: Classic Cataclysm, Classic 1898, Classic 1898 Fog of War, Punic Wars, Western World 901, 13th Century Mongolian Empire, Speed Europa, Minor Power.
Who is online
Users browsing this forum: No registered users