Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Namen der Einheiten ändern
#3
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.
Found my post helpful? Rate me Big Grin
Project: creating a compact and easy to setup DSLan (Linux) (Windoze is in development)


Messages In This Thread
Namen der Einheiten ändern - by powerzocker - 24.11.2010, 15:54
RE: Namen der Einheiten ändern - by Lekensteyn - 24.11.2010, 16:06
RE: Namen der Einheiten ändern - by Jonsn - 24.11.2010, 16:34



Users browsing this thread: 1 Guest(s)