Author Topic: Enemy Kings?  (Read 3137 times)

kedaha

  • Guest
Enemy Kings?
« on: 9 November 2009, 10:28:27 »
Glest/GAE is a game of strategy and tactics similar in some ways to chess. Maybe this has been already thought of, but an idea would be for Factions to have a King which, as in chess, could be attacked or checkmated. Perhaps a set of glest chess pieces  mod and a chessboard map could eventually be designed.

daniel.santos

  • Guest
Re: Enemy Kings?
« Reply #1 on: 9 November 2009, 10:32:44 »
This falls under the category of mods (i.e., tech trees) being more Lua-scriptable.  However, this may already be possible with current scenarios (don't quote me on that).  Basically, you want to script victory conditions.  Good idea, go make us something fun. :)

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Enemy Kings?
« Reply #2 on: 9 November 2009, 10:44:32 »
Yeah, an AOE style 'regicide game' is doable with LUA now, good idea for a scenario/campaign  ;D
Glest Advanced Engine - Code Monkey

Timeline | Downloads

kedaha

  • Guest
Re: Enemy Kings?
« Reply #3 on: 9 November 2009, 11:09:42 »
Would be a good scenario/campaign idea.
Only a group of people could put the idea into practice. I am an absolute beginner with regard to mods or tech trees etc  but I'll install Blender and see what I can do.
A chess-style faction and map could be spectacular and perhaps GAE could be strengthened strategically if certain concepts from chess were used.
« Last Edit: 9 November 2009, 11:13:48 by kedaha »

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Enemy Kings?
« Reply #4 on: 9 November 2009, 13:11:40 »
This brings back memories of Stronghold for me. https://www.youtube.com/watch?v=EfPxdkNjrjo At the end you can see the king being killed.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Zoythrus

  • Guest
Re: Enemy Kings?
« Reply #5 on: 10 November 2009, 19:45:49 »
i had an idea on how to do this (only in GAE), you make a "commander" of sorts who can build stuff, and everything he builds, he builds as a "pet". then, when it comes to buildings like the barracks, all of the units would be "pets" as well. this would essentially become a large tree of pets and parents, all ending at the commander. when he dies, so does everything else...

also, in any way that this is accomplished, the king should have an attack of some sort (to defend himself). this could be a weak attack, or the king could be the most powerful infantry unit in the game (ever played Total Annihilation or Supreme Commander?). but either way, when he dies, its "game over"
« Last Edit: 10 November 2009, 19:49:02 by Zoythrus »

ZaggyDad

  • Guest
Re: Enemy Kings?
« Reply #6 on: 10 November 2009, 22:11:08 »
In the Glest LUA, is there currently known a way to tag a unit and then find out if he's dead? (I'm just starting learning the lua, and I have no clue what all the methods there are in it.)

kedaha

  • Guest
Re: Enemy Kings?
« Reply #7 on: 10 November 2009, 23:59:53 »
In chess the King is weak in the opening and middle game but gains strength in the end game when there are less pieces on the board. Maybe a Glest King could reside in the Castle, Mage Tower or similar building and have an attack power to defend it like the Archmage which is is very powerful when it holds its position for example inside a Summoner Guild, particularly against enemy Horsemen. If the King were defeated then of course the game would be lost.
Another idea as an option for more advanced players would be to increase the number of units (combat units and buildings) in the initial position because the phase of mining gold, stone and harvesting wood and constructing buildings is boring.
« Last Edit: 11 November 2009, 00:23:20 by kedaha »

ZaggyDad

  • Guest
Re: Enemy Kings?
« Reply #8 on: 11 November 2009, 00:21:39 »
Well, that would probably require garrisoning to be implemented...which may not be too far off, but it's still not possible yet. Of course, there could be some kind of castle with the model containing a king. But then again, Glest doesn't have turrets, so it would look awkward if he attacked something.

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Enemy Kings?
« Reply #9 on: 11 November 2009, 04:03:45 »
In the Glest LUA, is there currently known a way to tag a unit and then find out if he's dead? (I'm just starting learning the lua, and I have no clue what all the methods there are in it.)

There is no query to check if a unit is dead, you just check yourself in the unitDied event..

Code: [Select]
<startup>
createUnit( "king", 0, {63,63} );
myKing = lastCreatedUnit();
-- other stuff ...
</startup>

<unitDied>
if lastDeadUnit() == myKing then
  -- :~(
end
</unitDied>

https://docs.megaglest.org/Scenario_Editing is a half decent guide now, but could always use more work ;)
« Last Edit: 18 June 2016, 17:40:46 by filux »
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ZaggyDad

  • Guest
Re: Enemy Kings?
« Reply #10 on: 11 November 2009, 23:51:23 »
I found out how to tag the unit yesterday, but thanks for the link to the guide(-type-thing). I wouldn't've expected the wiki to have progressed enough to be an actual guide.

Zoythrus

  • Guest
Re: Enemy Kings?
« Reply #11 on: 12 November 2009, 00:01:09 »
i personally think that the "king" should be more like a commander, a guy who is one of the greatest units, but the game ends if he dies...

ZaggyDad

  • Guest
Re: Enemy Kings?
« Reply #12 on: 12 November 2009, 00:35:01 »
Yeah, that might be nice. Although if he's powerful, the ai will send him into battle, but having him be a plump idiot running away like the pigs do, it would be hilarious and work better.

Zoythrus

  • Guest
Re: Enemy Kings?
« Reply #13 on: 12 November 2009, 05:37:51 »
true...

kedaha

  • Guest
Re: Enemy Kings?
« Reply #14 on: 12 November 2009, 14:11:16 »
Quote
I personally think that the "king" should be more like a commander, a guy who is one of the greatest units, but the game ends if he dies...

Could depend on the faction: a "king" might be appropriate for the tech faction but for the magic faction maybe some old wizard like Merlin or and a Pharaoh for the Ancient Egyptians etc. 


ZaggyDad

  • Guest
Re: Enemy Kings?
« Reply #15 on: 12 November 2009, 16:36:28 »
Could depend on the faction: a "king" might be appropriate for the tech faction but for the magic faction maybe some old wizard like Merlin or and a Pharaoh for the Ancient Egyptians etc.

I agree...though you might not want to get too specific with the kings...having it be Merlin would be too specific...though having it be a wizard like Merlin would be great.

Zoythrus

  • Guest
Re: Enemy Kings?
« Reply #16 on: 16 November 2009, 01:55:08 »
yeah, every king should be a whole different unit (not an archmage retexed), so new models would be great for the many factions out there