Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
- How do you code a scenario?
- How do you edit starting resources?
- How did the guys who posted content do it?
To add Script to a scenario, click the Scripting icon (looks like a Cog), then in the Script window click the New Globals Page icon (looks like a page with a G), open the newly created page and add your script there.
Here is some example code that gives the player the objective to build 10 houses and has a counter showing their progress:
The code below will give 1000 of each resource to player 1 to 4
.Resource[ResourceType.Food]=1000
Player
.Resource[ResourceType.Wood]=1000
Player
.Resource[ResourceType.Gold]=1000
Player
.Resource[ResourceType.Stone]=1000
Slightly ambiguous question, so I'll answer a couple of questions:end[/code]
How did you make your scenario?
I'm part of the dev team, so I have a bit of an advantage.
I was able to assemble the map from existing maps, and I know a lot of the ins and outs of the code.
I'd recommend to anyone making their own scenario to open up the workshop scenarios in the Editor and taking a look at some of the coding. Dead of Winter includes some advanced coding for a scenario-only "new" building using existing models but with different props and producing new units.
I might make a guide or some simpler scenarios to give coding examples.
How do you post content?
In the game's root folder there is a file called "steamworks_manager.exe", run this, select <New Workshop Project> and fill out all the fields.
Note: Keep the preview image small (mine are 512x288), I had problems when I tried to use a large image file (1920x1080)