<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wesnoth.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bonchan</id>
	<title>The Battle for Wesnoth Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wesnoth.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bonchan"/>
	<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/Special:Contributions/Bonchan"/>
	<updated>2026-05-05T03:47:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=User:Bonchan&amp;diff=11978</id>
		<title>User:Bonchan</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=User:Bonchan&amp;diff=11978"/>
		<updated>2006-10-07T03:45:50Z</updated>

		<summary type="html">&lt;p&gt;Bonchan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;new units:&lt;br /&gt;
Medusa Lv2&lt;br /&gt;
race: umanoid&lt;br /&gt;
movement:5&lt;br /&gt;
attacks:claws4-2&lt;br /&gt;
        eyes 0-1pietrification&lt;br /&gt;
hp:34&lt;br /&gt;
res:pietrification 100%&lt;br /&gt;
    fire           -20%&lt;br /&gt;
    others           0%&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
Succubus Lv2&lt;br /&gt;
race:demon&lt;br /&gt;
movament:7(winged)&lt;br /&gt;
attacks:death kiss 20-1absorb&lt;br /&gt;
        charming    0-1(the unit change team)&lt;br /&gt;
hp:37&lt;br /&gt;
res:charme 100%&lt;br /&gt;
    holy  -100%&lt;br /&gt;
    others  30%&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
Hydra Lv0             Hydra Lv1 Hydra Lv2 Hydra Lv3 Hydra Lv4 Hydra Lv5&lt;br /&gt;
race:monster             &lt;br /&gt;
movement:5/7(in water)&lt;br /&gt;
attacks:bite 3-2      bite 4-4  bite 5-6  bite 6-8  bite 7-10 bite 8-12&lt;br /&gt;
hp:40                 50        60        70        80        90&lt;br /&gt;
res:fire  -50%&lt;br /&gt;
    holy    0%        ability: regeneration&lt;br /&gt;
    sword -30%       &lt;br /&gt;
    others 30%&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Imp Lv0                              Lesser Demon Lv1       Lesser Devil Lv1&lt;br /&gt;
race:demon                         &lt;br /&gt;
movement:7(winged)&lt;br /&gt;
attacks:claws     3-2 sword          punch      7-2 impact  claws     6-2 sword &lt;br /&gt;
        tail      2-1 venom          head      18-1 charge  tail      6-1 venom&lt;br /&gt;
        provocate 0-3(berserk fury)  terror wawe 12-1(cold) fire ball 12-1(fire)&lt;br /&gt;
hp:15                                30                     27&lt;br /&gt;
res:holy -50%                        -50%                   -50%&lt;br /&gt;
    fire   0%                        -20%                    50%&lt;br /&gt;
    ice    0%                         50%                   -20%&lt;br /&gt;
    others 0%                        ???                    ???&lt;br /&gt;
                                     Demon Lv2              Devil Lv2&lt;br /&gt;
                                     punch     10-2 impact  claws     6-3 sword&lt;br /&gt;
                                     head      24-1 charge  tail      8-1 venom&lt;br /&gt;
                                     terror wawe 12-2(cold) fire ball 12-2(fire)&lt;br /&gt;
hp:                                  40                     35&lt;br /&gt;
                                     High Demon Lv3         High Devil Lv3&lt;br /&gt;
                                     punch     12-2 impact  claws     6-4 sword&lt;br /&gt;
                                     head      30-1 charge  tail     10-1 venom&lt;br /&gt;
                                     terror wawe 12-3(cold) fire ball 12-3(fire)&lt;br /&gt;
hp:                                  50                     43&lt;br /&gt;
                                     Demon Lord Lv4         Devil Lord Lv4&lt;br /&gt;
                                     punch     15-2 impact  claws     6-5 sword&lt;br /&gt;
                                     head      35-1 charge  tail     12-1 venom&lt;br /&gt;
                                     terror wawe 12-4(cold) fire ball 12-4(fire)&lt;br /&gt;
hp:                                  60                     51&lt;br /&gt;
                                     Demon's King Lv5       Devil's King Lv5&lt;br /&gt;
                                     punch     20-2 impact  claws     7-6 sword&lt;br /&gt;
                                     head      47-1 charge  tail     20-1 venom&lt;br /&gt;
                                     terror wawe 15-5(cold) fire ball 15-5(fire)&lt;br /&gt;
hp:                                  70                     59&lt;br /&gt;
res:holy                             -20%                   -20&lt;br /&gt;
    fire                              50%                   100%&lt;br /&gt;
    ice                              100%                    50%&lt;br /&gt;
ability:                             command                command&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/div&gt;</summary>
		<author><name>Bonchan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=BuildingUnits&amp;diff=11976</id>
		<title>BuildingUnits</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=BuildingUnits&amp;diff=11976"/>
		<updated>2006-10-06T18:48:28Z</updated>

		<summary type="html">&lt;p&gt;Bonchan: units&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ma'''Bold text'''''Italic text''[[Link title]][http://www.example.com link title]&lt;br /&gt;
== Headline text ==&lt;br /&gt;
king new units is fairly easy.  Unit configuration files are plain text files that you can edit with any editor such as Notepad, TextEdit, gedit, pico, vi, emacs, etc.  You will need to become familiar with [[UnitWML|WML]] in order to make a new unit.  This page contains a more in-depth discussion of Unit WML syntax and will walk you through the creation of a new unit and discuss how you can use it in-game.&lt;br /&gt;
&lt;br /&gt;
== Recommended procedure ==&lt;br /&gt;
The easiest way to make a new unit is to copy and paste an existing unit, then modify it.  Navigate to the game's data/units directory and copy any unit.  When you are editing the unit, attention to detail is key.  If you forget to modify each key (for example, the unique id key), problems will result.&lt;br /&gt;
&lt;br /&gt;
P.S. Make sure you use gimp to create a blank background.&lt;br /&gt;
&lt;br /&gt;
== Using your new unit ==&lt;br /&gt;
Any unit in the game's ./data/units directory or ''userdata''/data/units will be recognized by the game.  However, just because you made a new unit does NOT mean you can use it in game yet.  Each scenario and multiplayer era has a specific recruit list.  If your unit is not on the list, you can't use it.  This means you need to modify the ''recruit='' key in the appropriate configuration file.  [[BuildingMultiplayer]] describes different ways you do this for multiplayer.  To add a unit to a campaign, read about scenarios, sides, and recruit lists in [[BuildingScenarios]].&lt;br /&gt;
&lt;br /&gt;
== Distributing your unit ==&lt;br /&gt;
If you made a single unit, post it on the [http://www.wesnoth.org/forum forum].  If you made a whole group of units, you can make them into a multiplayer faction or you can upload a unit pack.&lt;br /&gt;
&lt;br /&gt;
If you want to make a faction, follow the instructions in the [[BuildingFactions]] article.  You should create a new era and add your units as one of the factions.  You will not be able to add your units to any era that ships with the game.&lt;br /&gt;
&lt;br /&gt;
If you want to make a unit pack, the procedure is easier.  Unit packs are distributed for campaign writers who want to use your units in their campaigns/eras.  They download your unit pack and copy/paste the units and images into their campaign/era.&lt;br /&gt;
* Navigate to the ''userdata''/data/campaigns directory.  Everything from now on will occur relative to here.  The era we'll use as an example will be called MyUnitPack&lt;br /&gt;
* Create a text file called MyUnitPack.cfg.  Add the following lines:&lt;br /&gt;
 #		#define USE_MYUNITS		#&amp;lt;- replace MYUNITS with something descriptive&lt;br /&gt;
 #		#enddef&lt;br /&gt;
 #		#ifdef USE_MYUNITS		#&amp;lt;- replace MYUNITS with something descriptive&lt;br /&gt;
 #		{@campaigns/MyUnitPack/}&lt;br /&gt;
 #		#endif&lt;br /&gt;
:* These lines are commented out (with the #).  That way when the unit pack ships it won't affect the game.  If someone wants the game to be able to see these units, he can uncomment those lines and it will work.  However, this usually causes problems in multiplayer (you will be using units no one else has), but it can be fun for campaigns.&lt;br /&gt;
:* NOTE: the commenting/uncommenting trick will only work if the units branch off of an existing unit.  Custom L1 units will NOT show up in game automatically without editing another configuration file somewhere (scenario config file or multiplayer.cfg)&lt;br /&gt;
* Create another text file called MyUnitPack.pbl. (See [[PblWML]] for more details about *.pbl files.) Add the following lines to it:&lt;br /&gt;
 author=&amp;quot;''your name''&amp;quot;&lt;br /&gt;
 icon=&amp;quot;''any image file in the game's ./images directory''&amp;quot;&lt;br /&gt;
 version=&amp;quot;1.0&amp;quot;&lt;br /&gt;
 title=&amp;quot;My Awesome Unit Pack&amp;quot;&lt;br /&gt;
 description=&amp;quot;New race of lizard men.&amp;quot;&lt;br /&gt;
* Create a folder called MyUnitPack.  Navigate to it.&lt;br /&gt;
* Create two subdirectories: units and images.  Place your unit cfg files and artwork into those subdirectories&lt;br /&gt;
* Create a text file called MyUnitPack.cfg (or another name of your choosing).  Add the following lines:&lt;br /&gt;
 [binary_path]&lt;br /&gt;
 path=data/campaigns/MyUnitPack&lt;br /&gt;
 [/binary_path]&lt;br /&gt;
 [+units]&lt;br /&gt;
 {@campaigns/MyUnitPack/units}&lt;br /&gt;
 [/units]&lt;br /&gt;
* You should be ready to distribute your unit pack on the campaign server now&lt;br /&gt;
* PLEASE change the names to something unique before you publish&lt;br /&gt;
&lt;br /&gt;
== Unit WML discussion ==&lt;br /&gt;
&lt;br /&gt;
Units are enclosed in '''[unit]''' tags.&lt;br /&gt;
&lt;br /&gt;
This section only provides some tips and pointers in making a unit.  Feel free to add pointers of your own.  For the full, current, complete WML reference on what to put in your [unit], see and frequently revisit [[UnitWML|The Unit WML reference page]].&lt;br /&gt;
* The first attribute of a unit is the ''id'' key, which is a unique identifier for the unit. As value of the ''type'' attribute for these units, the ''id'' key is used. (See [[BuildingScenarios]]).&lt;br /&gt;
* When referencing the unit in a ''type'' key, the id must be reproduced verbatim, without typos, and in a case-sensitive manner.  If you don't do this, the key won't work.  If you can't recruit in a scenario, it's probably because you have a typo in one of the unit ids and the ''recruit'' key was invalidated.&lt;br /&gt;
* It also has a ''name'' key, which is the (translatable) name of the unit, and is displayed on the Status Table when a unit of this type is selected.  It does not need to be unique (but it helps).&lt;br /&gt;
* Do not set movement to 0.  It creates weird infinite movement behavior.  This might be fixed in the future.  For now, to make an immobile unit, set movement to 1 use [movement_costs] to make it unable to move onto any terrain.&lt;br /&gt;
* Also, make sure you give the unit at least one [attack].  If not, there is a bug in the game code that will cause the game to crash when it attempts to find attacks.  This may also be fixed in the future.&lt;br /&gt;
* See [[BuildingScenariosIntermediate]] for more information on attacks.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Create]]&lt;br /&gt;
* [[EditingWesnoth]]&lt;br /&gt;
* [[Creating Unit Art]]&lt;br /&gt;
* [[CampaignServerWML]]&lt;br /&gt;
* [[PblWML]]&lt;br /&gt;
* [[BuildingCampaignsThePBLFile]]&lt;br /&gt;
* [[Team_Color_Shifting]]&lt;br /&gt;
&lt;br /&gt;
{{Create}}&lt;/div&gt;</summary>
		<author><name>Bonchan</name></author>
		
	</entry>
</feed>