Difference between revisions of "BuildingFactions"

From The Battle for Wesnoth Wiki
(Created page with "== Theorie == Before creating a faction think of the following things: * Do you have enough units( leaders, tankers, meele, ranged, magic, healer )? * What is the story to yo...")
 
Line 14: Line 14:
 
Coding a Faction is not so different from writing a side in a scenario. A typical faction looks like this:
 
Coding a Faction is not so different from writing a side in a scenario. A typical faction looks like this:
  
<nowiki>
 
 
#textdomain wesnoth-YourEra
 
#textdomain wesnoth-YourEra
[multiplayer_side]
+
  [multiplayer_side]
    id=aliens
+
      id=aliens
    name= _"Aliens"
+
      name= _"Aliens"
    image="units/aliens/great_alien.png"
+
      image="units/aliens/great_alien.png"
    type=random
+
      type=random
    leader=Great Alien, Alien Leader
+
      leader=Great Alien, Alien Leader
    random_leader=Alien Leader
+
      random_leader=Alien Leader
    recruit= Alien Worker, Alien Scout, Alien Fighter
+
      recruit= Alien Worker, Alien Scout, Alien Fighter
    description="Aliens"
+
      description="Aliens"
    [ai]
+
      [ai]
        recruitment_pattern=fighter,archer,healer,scout
+
          recruitment_pattern=fighter,archer,healer,scout
    [/ai]
+
      [/ai]
[/multiplayer_side]
+
  [/multiplayer_side]
</nowiki>
 
  
 
There can be more than one leader be choosen.
 
There can be more than one leader be choosen.

Revision as of 09:31, 8 July 2020

Theorie

Before creating a faction think of the following things:

  • Do you have enough units( leaders, tankers, meele, ranged, magic, healer )?
  • What is the story to your faction?
  • Why do you want to create a faction? If there is no reason you shouldnt spend too much time on it)

If you meet all points up there it is time to create your faction. Choose some of your units that fits together(same race, lives near together) and give them a name.


Praxis

Coding a Faction is not so different from writing a side in a scenario. A typical faction looks like this:

  1. textdomain wesnoth-YourEra
 [multiplayer_side]
     id=aliens
     name= _"Aliens"
     image="units/aliens/great_alien.png"
     type=random
     leader=Great Alien, Alien Leader
     random_leader=Alien Leader
     recruit= Alien Worker, Alien Scout, Alien Fighter
     description="Aliens"
     [ai]
         recruitment_pattern=fighter,archer,healer,scout
     [/ai]
 [/multiplayer_side]

There can be more than one leader be choosen.