-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMODDING.txt
58 lines (53 loc) · 1.93 KB
/
MODDING.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
This file describes how to make your addon work well togetther with
world conquest 2. In particular how to write an era that can be used together with world conquzest ii.
Making aan era that workls well together wioth world conquest ii, is quite
easy: just add the [wc2_extra] tag to your [multiplayer_side] tag just as
the standard word conquest2 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, dont foget to put an additional
[wc2_extra] in [era] to decribe whihc trailts 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:
```
[event]
name = "wc2_init_enemy"
[filter_conditional]
[variable]
name="wc2_enemy_army.length"
equals=0
[/variable]
[/filter_conditional]
[set_vartiables]
name = "wc2_enemy_army"
[literal]
[group]
id = "enemyfaction_id"
recruit= "Orcish Grunt,Orcish Archer,Wolf Rider,Orcish Assassin,Troll Whelp"
[recall]
level2 = "Orcish Ruler, Orcish Slayer,..."
level2 = "Orcish Warlord, Troll Warrior,..."
[/recall]
[commander]
level1 = "Orcish Leader, Orcish Grunt,..."
level2 = "Orcish Ruler, Orcish Slayer,..."
level2 = "Orcish Warlord, Troll Warrior,..."
[/commander]
[leader]
level2 = "Troll"
level3 = "Troll Warrior"
recruit = "Orcish Grunt,Orcish Archer,Troll Whelp"
[/leader]
[leader]
level2 = "Orcish Warrior"
level3 = "Orcish Warlord"
recruit = "Orcish Grunt,Orcish Archer,Wolf Rider,Orcish Assassin"
[/leader]
....
[/group]
[/literal]
[/set_vartiables]
[/event]
```
TODO: how to overwrite training and aritfacts.