Author Topic: a hero idea...  (Read 2905 times)

Zoythrus

  • Guest
a hero idea...
« on: 25 October 2009, 19:22:03 »
is it possible to have a unit that cant be killed, instead of dieing, it would respawn a minute or so later. this unit would start with you, and could not be built, only killed and respawned.

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: a hero idea...
« Reply #1 on: 25 October 2009, 19:30:45 »
I think you can do this with Lua but that's really not my area of expertise.  Alternatively, you could make the unit free and limited to one at a time (with a static resource).  That way it would die but just come right back without costing you anything.  The only problem I can think of is that all of the unit's experience will be gone.

Zoythrus

  • Guest
Re: a hero idea...
« Reply #2 on: 25 October 2009, 19:32:32 »
well, the point is that there would be a timer to prevent a player from "spamming" him (like one minute). i was also hoping that he wouldnt lose all exp, only some...

Mark

  • Guest
Re: a hero idea...
« Reply #3 on: 26 October 2009, 02:01:12 »
I think you can do this with Lua but that's really not my area of expertise.  Alternatively, you could make the unit free and limited to one at a time (with a static resource).  That way it would die but just come right back without costing you anything.  The only problem I can think of is that all of the unit's experience will be gone.
I think that in the case where a cheep respawn would be essential (i.e. a hero unit that is irreplaceable and has a certain amount of lives determined by how much of a non-renewable resource you have, i.e. health), you wouldn't want the experience to stay on in the hero's attributes.  I have seen this in some RPGs where you lose all your armor and weapons, and your leveling.  This is a strong incentive in the game to use shrewd strategy to keep yourself alive.

Zoythrus

  • Guest
Re: a hero idea...
« Reply #4 on: 26 October 2009, 14:20:44 »
i like the idea, i just think that instead of losing absolutely everything, you should just lose some of your exp, not all of it though

Mark

  • Guest
Re: a hero idea...
« Reply #5 on: 27 October 2009, 01:35:38 »
i like the idea, i just think that instead of losing absolutely everything, you should just lose some of your exp, not all of it though
You can have a lua scenario where upon the death of a unit, a new unit is spawned and you might be able to set that unit's experience at half, then half of that upon the next death, etc.

Fluffy203

  • Guest
Re: a hero idea...
« Reply #6 on: 27 October 2009, 03:00:24 »
too bad this is only in the lua scenario

Zoythrus

  • Guest
Re: a hero idea...
« Reply #7 on: 28 October 2009, 14:15:34 »
is it possible to create a lua script that could be added to a mod (not just a scenario)?

Loronal

  • Guest
Re: a hero idea...
« Reply #8 on: 28 October 2009, 17:14:23 »
sadly no not in ordinary glest. I also am hoping to have that in gae. since that would allow neutral units ambush's and other stuff

Zoythrus

  • Guest
Re: a hero idea...
« Reply #9 on: 28 October 2009, 21:47:43 »
ok, in that case, can something be worked out (now) in GAE so that this can happen?

Fluffy203

  • Guest
Re: a hero idea...
« Reply #10 on: 28 October 2009, 21:54:48 »
possible , i don't actually know all of the new features in the GAE , but i just got done playing with it and by far the best thing i've found is the zooming out  :D

Zoythrus

  • Guest
Re: a hero idea...
« Reply #11 on: 28 October 2009, 22:39:43 »
i love the ability to zoom! the biggest thing they need to work on now is having more units selectable at once! (after that, we can work on getting my idea working...)

Ligerteeth

  • Guest
Re: a hero idea...
« Reply #12 on: 29 October 2009, 03:46:57 »
my mod has a similar premise, once your hero dies you must remake him, so you have to wait for him to be built. the source code is up for grabs if you want to take a look. https://forum.megaglest.org/index.php?topic=4687.0 I also made a simpler explanation of how the heroes in that mod work https://forum.megaglest.org/index.php?topic=4674.0 My heroes lose all their xp though, but i made them level sort of fast to compensate.
« Last Edit: 29 October 2009, 03:52:11 by Ligerteeth »

Zoythrus

  • Guest
Re: a hero idea...
« Reply #13 on: 29 October 2009, 22:04:07 »
that is a cool idea...i like the concept

but my idea is that the hero (which is a completely different unit than the ones available. [hint hint to all you modelers that need something to do...]) would be a near-uber unit that would fight with your armies...

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: a hero idea...
« Reply #14 on: 29 October 2009, 22:11:59 »
Dude I already have a hero mod under production.
Egypt Remastered!

Proof: Owner of glest@mail.com

Zoythrus

  • Guest
Re: a hero idea...
« Reply #15 on: 29 October 2009, 22:13:00 »
can i help you with it?

Ligerteeth

  • Guest
Re: a hero idea...
« Reply #16 on: 30 October 2009, 23:08:01 »
that is a cool idea...i like the concept

but my idea is that the hero (which is a completely different unit than the ones available. [hint hint to all you modelers that need something to do...]) would be a near-uber unit that would fight with your armies...

Once I sort of clean up the current version of MtH, I will make new models and units to replace the magitech ones, but they will be sort of equivalent to the ones I have now in terms of xmls. I'll probably release it with a new name though...
« Last Edit: 30 October 2009, 23:10:04 by Ligerteeth »

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: a hero idea...
« Reply #17 on: 31 October 2009, 02:59:05 »
Zoythrus, it's basically completed, all that needs to be done is modeling.
After modeling then we will expand it, you are welcome to help expand it.
Egypt Remastered!

Proof: Owner of glest@mail.com