Author Topic: Building -> Move, Attack, Morph  (Read 2741 times)

mictes

  • Guest
Building -> Move, Attack, Morph
« on: 4 August 2008, 18:57:11 »
Hi all !
I made a new building, like the defense_tower.
It can be morph to a building that can move.
So:
All ok, but if I try to add the "attack" command into the xml of the first building it doesn't morph after an attack, and after a try to morph it cannot attack anymore.
What could be a reason ?


{Because the attack-Tag I had to add the move_skill into the xml of ther first building, speed is "0" (spedd value and anim_speed)}
« Last Edit: 1 January 1970, 00:00:00 by mictes »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
(No subject)
« Reply #1 on: 13 August 2008, 19:22:37 »
What ever it morphs into, that xml must be the one with the attack function.
« Last Edit: 1 January 1970, 00:00:00 by omega »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

mictes

  • Guest
(No subject)
« Reply #2 on: 14 August 2008, 08:08:04 »
uih, ok it doesn't work like I wanted. It's ok.
« Last Edit: 1 January 1970, 00:00:00 by mictes »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
(No subject)
« Reply #3 on: 15 August 2008, 17:27:16 »
If you want, upload the file on mediafire.com and I'll try to fix it. I'm just interested in what went wrong...
« Last Edit: 1 January 1970, 00:00:00 by omega »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

mictes

  • Guest
(No subject)
« Reply #4 on: 15 August 2008, 17:37:40 »
I'll upload the new Building the next days, but there isn't any solution - if you ask me.
« Last Edit: 1 January 1970, 00:00:00 by mictes »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
(No subject)
« Reply #5 on: 15 August 2008, 18:17:50 »
Their might be a way... and if there is...

I'LL FIND IT!
« Last Edit: 1 January 1970, 00:00:00 by omega »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

modman

  • Guest
Re: Building -> Move, Attack, Morph
« Reply #6 on: 26 September 2008, 22:28:13 »
So it attack, and can move.  So then you're going to need to make another unit with those attributes of the morphed unit you have.  Then look at the behemoth as an example of a unit that was morphed from something.

mictes

  • Guest
Re: Building -> Move, Attack, Morph
« Reply #7 on: 27 September 2008, 10:12:58 »
Sorry,  so problem was solved already.
You didn't understand modman, I had a building  that can attack and not move, that I wanted to morph into a unit that can move but not attack, and backwards. But the unit couldn't attack anymore and didn't morph back again...
But as I said the problem was already solved.

modman

  • Guest
Re: Building -> Move, Attack, Morph
« Reply #8 on: 27 September 2008, 15:37:19 »
No, that's what I was talking about.  But I didn't know the problem was solved.

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Building -> Move, Attack, Morph
« Reply #9 on: 28 September 2008, 01:20:17 »
How did you fix it?

mictes

  • Guest
Re: Building -> Move, Attack, Morph
« Reply #10 on: 28 September 2008, 09:07:37 »
I wiped out the attack command.