Author Topic: Where is the editor?  (Read 8156 times)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Where is the editor?
« Reply #25 on: 20 June 2009, 18:46:41 »
Just have them executed from the main building, or code them yourself.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Where is the editor?
« Reply #26 on: 20 June 2009, 23:09:41 »
Just to clarify, the "god powers" people are referring to are from Age of Mythology, where you get a set number of these very powerful attacks (up to four) and each one can only be used once per scenario.  They can be targeted anywhere on the map and take effect almost immediately.  Examples include an instant-kill lightning bolt, a tornado that devastates buildings and units, a meteor shower, etc.  I think the best way to simulate this in Glest is to have your main base building launch them and either (if you want them to be 1-time use) have them cost all of the building's EP and give the building an EP regen rate of 0, or (if you want them to be used periodically like General abilities in C&C:Generals) have them cost a lot of EP and give the building a very low EP regen rate.  For example, to be used once every five minutes, the building could have a maximum EP of 300 and a regen rate of 1, since 300 seconds = five minutes.  The attack would also have a long enough range to reach any spot on the map (I have no idea if there is a maximum), probably a large splash radius, and most likely do a lot of damage, all depending on what you want the power to be.  I have no idea if a unit can target something outside of its own sight radius even if it has a friendly unit "spotting" for it, so this may cause a problem.  Other than that, all lights are green.

Hectate

  • Guest
Re: Where is the editor?
« Reply #27 on: 21 June 2009, 01:06:23 »
A second thought is to make it as a resource. I did this for Eaglestone in a similar fashion.
I wanted the players to be able to pick only 2 out of 8-10 upgrades. Since all upgrades are always available, I had to restrict the player by making the cost of the upgrade equal 1 "enhancement" resource. The player started with a set amount of this resource (i.e. 2) given to him via the shipyard building. Since the player couldn't build more shipyards they only had the two and had to pick which two upgrades they wanted.

So in essence create a resource of type "static" (if I recall correctly) and then have the unit resource requirements be -1 (or however many you want to give the player). Look at the magic faction's energy resource and specifically the energy source for examples of this.  I believe you can require resources to have an attack... (?)

The only problem of this is that if you wanted them to only ever have X shots at it, then this wouldn't work if they had the ability to build more of the unit that performs the attack. If they did build another, they'd get another X number of resources.

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Where is the editor?
« Reply #28 on: 21 June 2009, 20:14:12 »
I believe you can require resources to have an attack... (?)
Not in Glest.  Maybe in GAE, but I'm not sure if it's even possible there yet.

Edit: However, you could make a unit that requires that resource and can only use its attack once, via EP requirements (as per my previous post).
« Last Edit: 21 June 2009, 20:18:39 by John.d.h »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Where is the editor?
« Reply #29 on: 22 June 2009, 17:11:51 »
Does that EP thing even work? I'm quite certain buildings all start with 0 EP, so if you have no 0 regen, you'll never get EP. Of course I might be wrong, since I'm going out of memory...
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

modman

  • Guest
Re: Where is the editor?
« Reply #30 on: 22 June 2009, 17:55:41 »
It works, but it's really a pain in the butt to work out, because it gets complex quickly.  You need to start out at x EP then decide how long it will take to get to y EP so the attack can be carried out.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Where is the editor?
« Reply #31 on: 22 June 2009, 18:44:08 »
I mean the one where you have like 1 ep but no regen. You seem to be describing the one where you set a lot of EP to regen and once the ep's full, you can attack, which I know works (used for military's nuke).
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

modman

  • Guest
Re: Where is the editor?
« Reply #32 on: 22 June 2009, 19:15:34 »
That works fine. 

OFF TOPIC
BTW I love nuking things in games!  In civ, I build about 30 nukes then declare war, then nuke the crap out of everybody.

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Where is the editor?
« Reply #33 on: 22 June 2009, 20:31:00 »
Creating a nuke as its own unit would be pretty easy, though.  Just give it a powerful attack with a big splash and a range of zero, so it will be destroyed by its own attack.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Where is the editor?
« Reply #34 on: 22 June 2009, 20:41:50 »
But that would be a standard nuke. I want something that can be launched anywhere on the map. Besides, its all done, and works great. Units can easily attack something outside of their range of sight, however, you may not see that attack, and you'll miss the eye candy!
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

modman

  • Guest
Re: Where is the editor?
« Reply #35 on: 23 June 2009, 19:16:22 »
It would be cool if there were some way to implement a mushroom cloud over the blast, but this topic is getting really off topic.