Map Database  •  FAQ  •  RSS  •  Login

Scripting idea to start with town in MP

<<

sado1

User avatar

Council Member

Posts: 1430

Joined: 21 May 2012, 19:13

KaM Skill Level: Skilled

Post 04 Aug 2014, 06:33

Re: Scripting idea to start with town in MP

I think that school should be somewhat operational too. I mean, as Ben points out, this is quite a slow start given the fact that we lack serfs, we most likely will zero our stone and timber, which isn't being produced yet, etc. Either we'll have to give some extra resources after the fast building period, for kickstarting the city, or we need to force players to leave some in storehouses (or simply let them screw themselves on their own? :P I mean, now it's also possible to get the stone depleted, and it's a part of the game, isn't it...) A limit for buildings is fine, but is it really needed given the limited storehouse resources?
<<

Jery

Laborer

Posts: 12

Joined: 26 Aug 2013, 18:51

KaM Skill Level: Skilled

Post 04 Aug 2014, 07:00

Re: Scripting idea to start with town in MP

Workable school hard to implement. Now every action possible to cancel an intuitive way. But how to make an intuitive way to cancel the units employed in the school, I do not know =)

Very easy to implement a limit on the construction of buildings, the table limits or make additional restrictions on the use of resources.

I think that now every player can build so much on how much he has enough initial resources, but he can also leave a little bit. You can also set up delivery to the servants quickly filled with gold school and began production units.
<<

Krom

User avatar

Knights Province Developer

Posts: 3280

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 04 Aug 2014, 08:26

Re: Scripting idea to start with town in MP

The intention of the idea was to boost players to "compress" first 20-25 minutes of gameplay into 1-2min. That means that town made in a "boost" way was alike or the same as "usual" town. That means, that player should get all the wares his town would produce in these 20min, all the citizens and serfs, laborers. There should be no gap after the "boost" in which player waits for 5 min until all the citizens and serfs are trained, production chains launched and etc.
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
<<

Ben

User avatar

Former Site Admin

Posts: 3814

Joined: 08 Jan 2009, 23:00

Location: California - Pacific Time (UTC -8/-7 Summer Time)

Post 04 Aug 2014, 14:54

Re: Scripting idea to start with town in MP

Maybe the resources shouldn't be taken from the storehouse at all. Having a mere limit on buildings would be fine; like Krom initially thought. Starting off with 2 quarries, 2 woodcutters, sawmill, and inn. That gets you past the first 10 minutes (plus an inn), and every strategy on every map that I can think of requires at least these many buildings at the start. Again, I think it would be good to not take these wares from the storehouse....with maybe the exception of stone. Having a limit on how many roads you can build seems strange since nobody really knows how many roads they are making (I'm guessing that in the first 10 minutes, I'm making about 60-80 roads, but I couldn't really tell you for sure).
I used to spam this forum so much...
<<

Jery

Laborer

Posts: 12

Joined: 26 Aug 2013, 18:51

KaM Skill Level: Skilled

Post 04 Aug 2014, 15:22

Re: Scripting idea to start with town in MP

New version of script available.

Bug fixes:
- Plan of the road cost one stone, even after the period.
- After the demolition of the building did not return resources.
- Plan of the road can not be placed outside the area after a period.

Updates:
- Now all the buildings appear with the employee and servant.
- Now quarry and woodcutters appear to resources inside.
- The cost of the employee and the servant is equal to one gold each.
- All of the innovations can be disabled.

Video if you do not have the correct version of Remake: http://www.youtube.com/watch?v=Yqt7tf-co80

https://drive.google.com/file/d/0B18Qqy ... sp=sharing

In the next version I will add a mode of limited buildings, as well as the mode of free buildings. Both modes can be combined in your script (you need to fix the constants)
<<

Jery

Laborer

Posts: 12

Joined: 26 Aug 2013, 18:51

KaM Skill Level: Skilled

Post 06 Aug 2014, 14:04

Re: Scripting idea to start with town in MP

Made a new version.

Made a new version

- Added a mode of free buildings.
- Added a mode of free roads.
- Added a mode of limited buildings.
- Added a mode of limited roads.

I remind you that the script can be used not only in the Cursed Ravine.

Configuring:

Open the .script file in Notepad and edit following constants

FAST_START_PERIOD = 1000; //Duration of fast start period in ticks
ZONE_RANGE = 13; //Range +- around storehouse where you can place building
HIDE_STARTING_UNITS = TRUE;
USE_ZONES = TRUE; //Use the restricted area of construction
FREE_HOUSES = TRUE; //Construction of buildings does not require resources
FREE_ROADS = TRUE; //Construction of roads does not require resources
USE_ROAD_LIMIT = TRUE; //The number of roads in the initial stage is limited
ROAD_LIMIT = 100;
HOUSE_WITH_OCCUPANTS = TRUE; //Buildings appear with the workers
FREE_HOUSE_OCCUPANTS = TRUE; //These workers are free
ADD_SERF_TO_EACH_HOUSE = TRUE; //For each building added serf
FREE_SERFS = TRUE; //These serf are free
ADD_FREE_RESOURCES_TO_HOUESE = TRUE; //In the quarry and the woodcutter's added initial resources
USE_HOUSE_LIMITS = TRUE; //Use the table limits to limit the maximum number of buildings of the same type in the initial period.

Below, you can customize this table

Link to the script https://drive.google.com/file/d/0B18Qqy ... sp=sharing

Return to “Dynamic Scripting”

Who is online

Users browsing this forum: No registered users and 8 guests