TWLan Forum

Full Version: Namen der Einheiten ändern
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Kann mir bitte einer Sagen wie ich die Namen der Einheiten ändere.

Ich hab mir neue Einheiten heruntergeladen, weil die aber so dumme Namen haben, will ich sie Ändern, bitte helft mir.

MfG Mike
Musst in die sprachdatei und bei [config_techs] und [config_units] das was nach dem "=" immer kommt, verändern.
Die Sprachdatei findest du in dslan/htdocs/lang/de.ini
You can modify the current units in htdocs/include/configs/units.php.
It would be useful if you've some PHP knowledge.

An unit has some settings:
PHP Code:
$cl_units->add_unit("this name will be displayed","unit_internalName");
$cl_units->set_woodprice("50");//required number of wood for one unit
$cl_units->set_stoneprice("30");//required number of stone for one unit
$cl_units->set_ironprice("10");//required number of iron for one unit
$cl_units->set_bhprice("1");//number of population for one unit
$cl_units->set_time("1000");// recruit time
$cl_units->set_att("10","1.045");// attack power
$cl_units->set_def("15","1.045");// general defence
$cl_units->set_defcav("45","1.045");// defence against cavalery
$cl_units->set_defarcher("20","1.045");//defence against archers
$cl_units->set_speed("720");// speed
$cl_units->set_booty("25");// the maximum carrying capacity
$cl_units->set_needed(array());// minimum building requirements for this unit
$cl_units->set_recruit_in("barracks");// indicates which building is used for recruiting; possible values: barracks | stable | garage | snob
$cl_units->set_specials(array());
$cl_units->set_group("foot");// Possible values: foot | cav
$cl_units->set_col("A"); // A is the first column in the Rally point, B the second and so on
$cl_units->set_attType("def");// possible values: def | off | spy
$cl_units->set_description('Enter unit description here'); 
For inspiration, take a look at other units.
Danke ^^ Big Grin
Meins geht nur bei der TWLan v1.4 und das von lekensteyn geht nur bei den älteren versionen Wink
~closed