Author Topic: a few questions  (Read 882 times)

RealtimeFreak

  • Guest
a few questions
« on: 23 January 2011, 17:26:11 »
hi all,

here my questions:

1. Is this normal, if a unit burnt, if it activated the proberty (burnable)
that the fire, not automatic continues to burn?
 (because normal white but has a fire continue to burn)

2. Is there a way that the AI, two command skills, the class-attacks use it? (example: attack1 = piercing, attack2 = energy)?
can the AI handle this?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: a few questions
« Reply #1 on: 23 January 2011, 19:45:20 »
1. I can't really piece together what you're saying, but I'll try and explain the burnable property in hopes that will answer your question: The burnable property is toggled on in the XML, and if it's on, when a unit drops below a certain percentage of health, it will emit fire-style particles. If it gets its health back above that threshold (via regeneration, repair, etc), the fire stops.

2. Again, having trouble understanding you, but you can have multiple attacks that use different attack-types. This is done by making multiple attack skills and associated attack commands. The AI, however, is not to bright and only uses secondary attacks if only the second attack is applicable, such as a unit with a melee and ranged attack versus an air unit. Since the melee attack cannot be used versus the air unit, it will switch to the secondary ranged attack.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

RealtimeFreak

  • Guest
Re: a few questions
« Reply #2 on: 27 January 2011, 20:23:21 »
Quote
1. I can't really piece together what you're saying, but I'll try and explain the burnable property in hopes that will answer your question: The burnable property is toggled on in the XML, and if it's on, when a unit drops below a certain percentage of health, it will emit fire-style particles. If it gets its health back above that threshold (via regeneration, repair, etc), the fire stops.

yes, thats correct, but i have i my unit.xml file, no self repair or repair set.
and that fire still remains are

example: a building, burnt, the enemy units its dead, and the building burns more,
but the building goes not broken, the HP remains the same.I have no idea what I'm doing wrong
but it with you works, send me please a example for me that would be nice

Quote
2. Again, having trouble understanding you, but you can have multiple attacks that use different attack-types. This is done by making multiple attack skills and associated attack commands. The AI, however, is not to bright and only uses secondary attacks if only the second attack is applicable, such as a unit with a melee and ranged attack versus an air unit. Since the melee attack cannot be used versus the air unit, it will switch to the secondary ranged attack.

yes, you mean the air, land attack types right?
i mean a multiple unit commands, that uses two attack types from the land type,
so, 2 times

example: the unit has currently, one attack command , and after
a upgrade, has the unit two attack commands, and i mean can AI handle this?
i mean can the AI use a secondary command after a upgrade?


Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: a few questions
« Reply #3 on: 28 January 2011, 04:26:02 »
yes, thats correct, but i have i my unit.xml file, no self repair or repair set.
and that fire still remains are

example: a building, burnt, the enemy units its dead, and the building burns more,
but the building goes not broken, the HP remains the same.I have no idea what I'm doing wrong
but it with you works, send me please a example for me that would be nice
Fire only goes out when a building is repaired, not when it's no longer being attacked.

yes, you mean the air, land attack types right?
i mean a multiple unit commands, that uses two attack types from the land type,
so, 2 times

example: the unit has currently, one attack command , and after
a upgrade, has the unit two attack commands, and i mean can AI handle this?
i mean can the AI use a secondary command after a upgrade?
Nope.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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