Fix description and formatting
This commit is contained in:
parent
2423b2321d
commit
5cb60d7f2f
1 changed files with 53 additions and 47 deletions
|
@ -1,14 +1,20 @@
|
||||||
# Modding World Conquest
|
# Modding World Conquest
|
||||||
|
|
||||||
This section describes how to make eras/modifications to manipulate World Conquest elements.
|
This file describes how to make your addon work well together with world conquest.
|
||||||
|
|
||||||
## How to add an era's units to World Conquest's enemy selection pool
|
## How to add an era's units to World Conquest's enemy selection pool
|
||||||
|
|
||||||
This file describes how to make your addon work well together with world conquest. In particular how to write an era that can be used together with world conquest.
|
Making an era that works well together with world conquest, is quite easy: just add the `[world_conquest_data]` tag to
|
||||||
|
your `[multiplayer_side]` tag just as the standard world conquest era does, important: your era may **not** set
|
||||||
|
`require_era=no` for this to work.
|
||||||
|
|
||||||
Making an era that works well together with world conquest, is quite easy: just add the `[world_conquest_data]` tag to your `[multiplayer_side]` tag just as the standard world conquest era does, important: your era may not have require_download=no for this to work. Furthermore if your era contains new unit types that are not mainline wesnoth, don't forget to put an additional `[world_conquest_data]` in `[era]` to describe which traits these unit types should get when they are selected as heroes (use this to compensate weaker unit types).
|
Furthermore if your era contains new unit types don't forget to put an additional `[world_conquest_data]` in `[era]`
|
||||||
|
to describe which traits these unit types should get when they are selected as heroes (use this to compensate weaker
|
||||||
|
unit types).
|
||||||
|
|
||||||
To make an era/modification that also changes the enemy army unit types, make sure to define the `wc2_init_enemy` event and use it to set the enemy_army variable that should contains the pool of 'armies' that the enemies are chosen from:
|
To make an era/modification that also changes the enemy army unit types, make sure to define the `wc2_init_enemy` event
|
||||||
|
and use it to set the `wc2_enemy_army` variable that should contain the pool of 'armies' that the enemies are chosen
|
||||||
|
from:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[event]
|
[event]
|
||||||
|
@ -72,7 +78,7 @@ Next, continue coding:
|
||||||
|
|
||||||
# load the World Conquest era-specific Lua Code
|
# load the World Conquest era-specific Lua Code
|
||||||
[lua]
|
[lua]
|
||||||
code = " wesnoth.dofile('campaigns/World_Conquest//lua/era_main.lua') "
|
code = " wesnoth.dofile('campaigns/World_Conquest/lua/era_main.lua') "
|
||||||
[/lua]
|
[/lua]
|
||||||
|
|
||||||
# this defines who the commanders, deserters and heroes
|
# this defines who the commanders, deserters and heroes
|
||||||
|
@ -296,7 +302,7 @@ Normally, this is what an entire modifications/era file should look like. Notice
|
||||||
|
|
||||||
# load the World Conquest era-specific Lua Code
|
# load the World Conquest era-specific Lua Code
|
||||||
[lua]
|
[lua]
|
||||||
code = " wesnoth.dofile('campaigns/World_Conquest//lua/era_main.lua') "
|
code = " wesnoth.dofile('campaigns/World_Conquest/lua/era_main.lua') "
|
||||||
[/lua]
|
[/lua]
|
||||||
|
|
||||||
# this defines who the commanders, deserters and heroes
|
# this defines who the commanders, deserters and heroes
|
||||||
|
|
Loading…
Add table
Reference in a new issue