Author Topic: Temporary Summon Units  (Read 2658 times)

phantomfordy

  • Guest
Temporary Summon Units
« on: 24 February 2010, 01:47:42 »
Is it possible to make a unit summon a unit that only has a certain amount of time to live? If so, how is this possible?
We were thinking of making a unit with negative power regeneration and making it that when their power runs out they die, is this idea good or bad or is there a better way?  ???

All Help will be appreciated, thank you

jacko161

  • Guest
Re: Temporary Summon Units
« Reply #1 on: 24 February 2010, 02:15:50 »
I thought i might get your hopes up  :P

phantomfordy

  • Guest
Re: Temporary Summon Units
« Reply #2 on: 24 February 2010, 02:16:32 »
You make me sad...You make me a sad, sad man

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: Temporary Summon Units
« Reply #3 on: 24 February 2010, 02:30:37 »
You make me sad...You make me a sad, sad man
Aren't you guys like 14-16?...  ::)

Try not to post like chatting... that's what PMing is for.  :P

Just wait, people will answer...  ::)

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Temporary Summon Units
« Reply #4 on: 24 February 2010, 02:45:19 »
You could do it but not with power yet, It would need to be HP with regain -#, But there is a bug if your health is all ticked down it will go negative instead of dieing. It will be like he has 0 health.
Get the Vbros': Packs 1, 2, 3, 4, and 5!

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Temporary Summon Units
« Reply #5 on: 24 February 2010, 02:55:42 »
You could have the summoned unit require a consumable resource that you don't have.  Then they'll starve to death over time.

phantomfordy

  • Guest
Re: Temporary Summon Units
« Reply #6 on: 24 February 2010, 02:56:04 »
Okay, thank for the help, also I will try not to chat using Glest Board  :P

phantomfordy

  • Guest
Re: Temporary Summon Units
« Reply #7 on: 24 February 2010, 02:56:57 »
You could have the summoned unit require a consumable resource that you don't have.  Then they'll starve to death over time.

Would I have to create an additional consumable resource other then what they have in the game?

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Temporary Summon Units
« Reply #8 on: 24 February 2010, 03:01:12 »
The only consumable resource that comes with Glest by default is Food.  If your faction already uses food for other things, then you'd have to make a new one (which would take all of... oh, I don't know... a minute and a half).

phantomfordy

  • Guest
Re: Temporary Summon Units
« Reply #9 on: 24 February 2010, 03:04:02 »
Alright, my faction DOES use food as, well a food source. So I'll just make something like "Power" or "energy". Thanks for the help

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Temporary Summon Units
« Reply #10 on: 24 February 2010, 03:29:45 »
Yes just copy the food resource change it to how you want it and make the some units cost a amount of it.
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Little Helper

  • Guest
Re: Temporary Summon Units
« Reply #11 on: 25 February 2010, 01:13:09 »
Call it summon stones or life energy  ::)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Temporary Summon Units
« Reply #12 on: 25 February 2010, 19:10:36 »
That'll work,m but very rough, and won't be too good with multiple temporary units. Perhaps you could bug GAE, but there's a lot of things with higher priority...
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Temporary Summon Units
« Reply #13 on: 25 February 2010, 22:23:02 »
Perhaps this could work with an item system (I think Daniel was working on an unit modifier system). In the xml you would say it holds a particular undroppable item that has the effect of destroying the unit when the time runs out. That might be complicating it a bit though. Negative regen for health works. It just means it dies even quicker if it's being attacked.

The other things to consider is if the death by timer should count towards the deaths in the stats.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Temporary Summon Units
« Reply #14 on: 26 February 2010, 02:09:58 »
... Negative regen for health works. It just means it dies even quicker if it's being attacked.

This doesn't work in vanilla glest. These are Bruce's students, they are using Macs.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
Re: Temporary Summon Units
« Reply #15 on: 26 February 2010, 10:20:42 »
maybe you can create soemthing like this with the current glest, but I think the CPU players will not use it in the right way!
So better don't try something like this yet.
But in general its a very good idea to have such an "attack" which summons new units! Oh man so many good ideas!
« Last Edit: 26 February 2010, 10:22:28 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Bruce

  • Guest
Re: Temporary Summon Units
« Reply #16 on: 27 February 2010, 10:12:59 »
I'm not too concerned if at this stage the AI doesn't use these types of powers properly - I'm more interested to see how they could implement it such that it could be used in multiplayer (I'm pretty sure I'll have sorted out the mp issues for the Mac version by the end of semester - otherwise I could dual-boot the Macs with Windows (that should definitely be supported at the school by July) and install there.

This idea is a good one and introduces some interesting RTS strategies. Anyone who played Emperor: Battle for Dune might recognise this kind of skill from House Ix - the ability to create a holographic version of any unit you own. It attacks like any other unit, but as soon as it gets touched (by another unit or by any kind of attack), the hologram dies. You could create 60 holograms, get in one barrage of fire (by then the enemy will have attacked and "wiped out" your "army", then attack with your real ones - nice, cheap and (if used correctly) effective. These was also a faction (House Tleilax) which could convert your units into units of its own - they became "diseased" and ultimately morphed into the Tleilax unit (which could then be used to turn more units, etc etc - kinda like Zombies I guess).

This kind of approach could also be used for things like undead units that eventually decay and vanish - a nice temporary army that could make a difference in a tight defensive situation.

 

anything