Author Topic: Can you morph a land unit to an air unit?  (Read 1432 times)

jda

  • Guest
Can you morph a land unit to an air unit?
« on: 25 February 2010, 01:05:11 »
This might be a silly question but...
... I did notice you cannot just have this:
engineer.xml:
Code: [Select]
    <fields>
      <field value="land" />
    </fields>

<!-- Some more XML code in the middle ... -->

    <skill>
      <name value="build_skyship" />
      <type value="morph" />
      <ep-cost value="0" />
      <speed value="500" />
      <anim-speed value="200" />
      <animation path="models/engineer_build_bombard.g3d" />
      <sound enabled="true" start-time="0">
        <sound-file path="sounds/technician_build1.wav" />
      </sound>
    </skill>

<!-- Some more XML code in the middle ... -->

    <command>
      <name value="build_skyship" />
      <type value="morph" />
      <image path="../bombard/images/bombard.bmp" />
      <unit-requirements />
      <upgrade-requirements />
      <morph-skill value="build_skyship" />
      <morph-unit name="skyship" />
      <discount value="40" />
    </command>

skyship.xml:
Code: [Select]
<fields>

                        <field value="air"/>
</fields>

Is there some workaround to this?
Can this be made?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Can you morph a land unit to an air unit?
« Reply #1 on: 25 February 2010, 01:07:11 »
right, this is a bug in current glest.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Little Helper

  • Guest
Re: Can you morph a land unit to an air unit?
« Reply #2 on: 25 February 2010, 01:08:02 »
Try this, making a skill that morph the unit back and forth the unit to a same unit but instead that new unit is the same as the first unit except it is an air type unit make the morphing time instant. The only problem is that they heal when morphing. Hope I helped  ::)
« Last Edit: 25 February 2010, 01:16:41 by Little Helper »

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Can you morph a land unit to an air unit?
« Reply #3 on: 25 February 2010, 01:15:11 »
Yea, maybe it's something you can fix in MegaGlest, Titi. :)
Egypt Remastered!

Proof: Owner of glest@mail.com

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Can you morph a land unit to an air unit?
« Reply #4 on: 25 February 2010, 01:17:37 »
I believe it's been fixed in GAE, but I'm not positive.

jda

  • Guest
Re: Can you morph a land unit to an air unit?
« Reply #5 on: 25 February 2010, 01:28:00 »
Thanks, guys!

Well, I could test that in GAE then. As I did decide to not release the new dwarves unit yet, I might postpone it til I have a fully bugfixed vanilla Glest Dwarf faction and then add the new skyship only to a GAE release (I was planning on making a later release for gae, using some particles' improvements from it as well as the 'guard' and 'patrol' commands, so... ;D ).

In the meantime, I'll try Little Helper's suggestion - I can't really understand its logic but I guess it's worth the try! ;D

EDIT: fixed a couple typos and silly phrasing. :P
« Last Edit: 25 February 2010, 01:30:02 by jda »

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Can you morph a land unit to an air unit?
« Reply #6 on: 25 February 2010, 01:49:10 »
Morphing between fields is indeed possible in GAE.

Glest Advanced Engine - Code Monkey

Timeline | Downloads

modman

  • Guest
Re: Can you morph a land unit to an air unit?
« Reply #7 on: 25 February 2010, 22:56:18 »
Is this also possible in MegaGlest?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Can you morph a land unit to an air unit?
« Reply #8 on: 26 February 2010, 13:37:33 »
Not yet , but with the next checkin 8)
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Can you morph a land unit to an air unit?
« Reply #9 on: 26 February 2010, 15:15:08 »
Cool! this is something we were hoping on fixing.  :D
Get the Vbros': Packs 1, 2, 3, 4, and 5!