Author Topic: [Request]Morhp Options.  (Read 1439 times)

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
[Request]Morhp Options.
« on: 14 July 2011, 21:51:10 »
Id like if the Morph option had more options fx, to allow units to morhp for free. This could be used in all sorts of manners, deplyed units VS undeployed, Buildings that can fly, buildings that can gain bonuse when deployed.

fx:
(highligted addtion in red, more options can be added in the format of the orange highlights, But not both red and orange code in one skill!)

(P.S Omega pointed it to my attention that there could be some misunderstanding of free, what i meant is to make the cost not happen at all so that you won't have to even have the money for the morph to happen.)
      

<skill>
<type value="morph"/>
         <discount option="freemorph"/>
     
         <discounts>
                  <discount option="freemorph"/>
                  <discount option="discount" value="2"/>
          </discounts>

          <name value="morph_skill"/>      
     <ep-cost value="0"/>
     <speed value="900000"/>
     <anim-speed value="10"/>
     <animation path="../command_center/models/command_center.g3d"/>
     <sound enabled="false"/>
</skill>

« Last Edit: 15 July 2011, 11:30:11 by Coldfusionstorm »
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: [Request]Morhp Options.
« Reply #1 on: 15 July 2011, 05:04:30 »
Id like if the Morph option had more options fx, to allow units to morhp for free. This could be used in all sorts of manners, deplyed units VS undeployed, Buildings that can fly, buildings that can gain bonuse when deployed.
The only problem is that in MG, you can only discount resources AFTER the morph has already taken place. So a free morph would require that you still have the resources before hand. The alternative is to implement the same tag GAE has: <cost-modifier value="" /> (much preferred to use the same syntax to ensure compatibility). This tag discounts resources from the total cost before you morph, so you could put 100 (since it's a percent like the discount tag) to get your free morph, and it's still 100% compatible with GAE.

What's the point of having multiple discounts? Since they're placed skill specific, you can already take off that amount in just ONE discount. Eg, two discounts of 10% and 20% could just have a discount of 30%, and you'd get the exact same results. Free = 100%, so having two discounts of 100 and 2 means that you... get 2% of the resources in surplus?

At any rate, it already exists. As well, you could always make the resource cost of the unit that is being morphed into free. In fact, you can already do that in MG, no changes necessary.

Have fun "free morph"ing.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: [Request]Morhp Options.
« Reply #2 on: 15 July 2011, 11:28:54 »
The point anyways was to make it truly free!, meaning no deduction at all.
WiP Game developer.
I do danish translations.
"i break stuff"

Mr War

  • Guest
Re: [Request]Morhp Options.
« Reply #3 on: 15 July 2011, 16:04:22 »
Just set the unit you are morphing to as free. See the trebuchet in imperial faction. There are two logical states (deployed and packed) by three unit xmls

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: [Request]Morhp Options.
« Reply #4 on: 15 July 2011, 16:50:59 »
Just set the unit you are morphing to as free. See the trebuchet in imperial faction. There are two logical states (deployed and packed) by three unit xmls

I was doing something like that, but i only did it into 2 xml's and had the problem of the unit morphing back, god its so obivous its.

(PS, your mod now also had the honor of being played on my PC, thats a first apart from my own) :)
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: [Request]Morhp Options.
« Reply #5 on: 15 July 2011, 18:03:38 »
The point anyways was to make it truly free!, meaning no deduction at all.
<cost-modifier value="100" /> IS 100% free... ;)
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: [Request]Morhp Options.
« Reply #6 on: 15 July 2011, 21:29:28 »
The point anyways was to make it truly free!, meaning no deduction at all.
<cost-modifier value="100" /> IS 100% free... ;)

Except the deduction still happens right?, as i clearly said in my above statement, i qouth "meaning no decution at all."

:).
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: [Request]Morhp Options.
« Reply #7 on: 15 July 2011, 21:47:35 »
The point anyways was to make it truly free!, meaning no deduction at all.
<cost-modifier value="100" /> IS 100% free... ;)

Except the deduction still happens right?, as i clearly said in my above statement, i qouth "meaning no decution at all."

:).
There is no deduction. Unlike discount, which returns the discount after, the cost modifier directly changes the cost to produce the unit. So a unit that costs 100 gold and has a cost modifier of 50 will have it stating it costs 50 gold on the morph screen. If the cost modifier was 100, it would be as if there was no resources needed at all, 100% free.

Of course, MG doesn't support cost modifier yet (GAE does). That is what the feature request should be. It's far more versatile than just "free".
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

 

anything