Author Topic: names  (Read 1594 times)

rts gamerguy

  • Guest
names
« on: 25 June 2008, 17:32:54 »
I just wanted to know, how do I rename a unit?

Also, I'm trying to create an upgrade for an existing unit, but I'm having trouble figuring out how to do so... can anyone explain how I need to put that in the xml document?

Also, where can I post mods?

any help would be appreciated.
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

erandur

  • Guest
Re: names
« Reply #1 on: 25 June 2008, 18:05:46 »
Quote from: "rts gamerguy"
I just wanted to know, how do I rename a unit?

Also, I'm trying to create an upgrade for an existing unit, but I'm having trouble figuring out how to do so... can anyone explain how I need to put that in the xml document?

Also, where can I post mods?

any help would be appreciated.

How to rename an unit? Change the name of the folder it's in (in the techs folder), change the .xml file to match the folder's name. And remember to update any reference made to that unit (like in build commands).

An upgrade? Haven't done so myself, but try copying an upgrades folder, and mess around with it. Agaian, change the name of the folder, the name of the .xml, etc. And remember to make the upgrade available for some buildings to research. :)

And I suppose you could post mods in the mods forum? Or if you were asking for a place to upload them, I use filefront (www.filefront.com).
« Last Edit: 1 January 1970, 00:00:00 by erandur »

rts gamerguy

  • Guest
(No subject)
« Reply #2 on: 26 June 2008, 08:17:32 »
okay, thanks, but when I said Upgrade, I meant to create a command on the unit that does require research, but simply give it the ability to morph into another unit, like initiate to battlemage. anyone know how I'm supposed to do this?

and does anyone know how I can create a new armor type?
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

@kukac@

  • Guest
topic
« Reply #3 on: 26 June 2008, 09:29:39 »
Firstly you must write something like this to the skills:

Code: [Select]
<skill>
<type value="morph"/>
<name value="morph_skill"/>
<ep-cost value="0"/>
<speed value="500"/>
<anim-speed value="80"/>
<animation path="models/initiate_morphing.g3d"/>
<sound enabled="false"/>
</skill>

Then you also need a morph command:

Code: [Select]
<command>
<type value="morph"/>
<name value="promote_to_battlemage"/>
<image path="../battlemage/images/battlemage.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<morph-skill value="morph_skill"/>
<morph-unit name= "battlemage"/>
<discount value="0"/>
</command>


Simple ;)
« Last Edit: 1 January 1970, 00:00:00 by @kukac@ »

rts gamerguy

  • Guest
(No subject)
« Reply #4 on: 26 June 2008, 14:20:56 »
okay, thanks a bunch and forget about the armor thing. I figured it out on my own.
« Last Edit: 1 January 1970, 00:00:00 by rts gamerguy »

 

anything