Landmines?

Che Guava

The Juicy Revolutionary
Joined
Apr 19, 2005
Messages
5,955
Location
Hali-town,
Has anyone come up with a mod for landmines? I'd love to have one for a scenario/modpack I'm trying to put together. I had pictured an invisible terrain improvement that took off 1 hp off your unit as you crossed over it, and could only be removed with a worker.

Unfortunately, my programming abilities rank quite low, and I'm not sure how one would implement such a thing....
 
Hmm.... that is a very interesting idea, theoritically it should be possible. Let me put this on my todo list and I'll get back to you when I have something.
 
I love this forum :) Such sweet people!!!!!!

I'll give it the college try, too. Maybe a modified 'pollution'...
 
In the game "Starfleet Command" I wrote a DLL that added invisible mines that were triggered by the speed of your spaceship. The mines didn't really exist in reality. They were just a formula that if you were in a certain area there was a certain chance, based on your speed, that you would 'hit' a mine and take damage. No one ever figured out the difference. Something similar could be done in Civ. Espicially since each square covers a large area. It should be possible to move through a square and sometimes take amine hit and sometimes pass through safely.

Roger Bacon
 
One thing though Roger, having an actual item in the game will allow for a few new units - minelayers, mine sweepers, etc. Also, if you don't have something in the game how would a player know where they have deployed mines?
 
This idea was requested for the moon mod, so I spent a certain amount of time trying to figure out how to make it. But I could never come up with a solution that the AI would understand. You could put it in as a feature, swap the terrain, use an invisible unit, build an improvement, use a custom action button, some combination thereof, but the AI will only understand that the square is "bad" if there is a unit there. And it won't understand when or why to build them. My concern about using an invisible unit is how you create the minesweepers ability to clear it. Even if you made the minesweeper +200% against mines, and mines -200% against the minesweeper... And the mine layer can't directly build a unit, so the AI won't be able to understand what building a mine means... I don't know, I remember going over this and thinking it would never work with the AI.
 
Maybe we're just going about this the wrong way: how about adding mines as a terrain feature that can only be added by a unit. It wouldn't cause damage, but just slow units down and make the tile unusable by cities (so basically a modified fallout). THen you would just have to find a way to make it invisible, even to the AI...
 
Back
Top Bottom