Kills counting

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
gugusm
Posts: 487
Joined: Mon Aug 22, 2005 1:16 pm
Location: Klucze, Poland
Contact:

Kills counting

Post by gugusm »

Is it possible to remove enemies form the map using "Delete Monsters" and make them not count as killed enemies? You know, when the final picture after level appears it shows me 100 more enemies than I have really killed, because these which I removed using script are also counted.
User avatar
Tireces
Posts: 553
Joined: Mon Jun 14, 2004 1:25 am
Location: (po)Land of Lag
Contact:

Post by Tireces »

Why do want to delete em ? Did you try to just make em invisible - this doesnt count as killing, right?
Or maybe you could make units that you want to delete belong to 3rd gourps so they will not count as enemy units ( of course only if Light troops do not have to fight em )
"As long as a single one of us stands..."
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Post by A-Red »

To expand on what Tir said--if there's no chance that you're going to fight them, you can make them Team 0 units marked as Uncontrollable. They won't count as anybody's casualties that way.
gugusm
Posts: 487
Joined: Mon Aug 22, 2005 1:16 pm
Location: Klucze, Poland
Contact:

Post by gugusm »

Heh, sometimes I feel very stupid... I had to remove some player and enemy units using Delete Monsters and to do that with player forces, I made them uncontrollable first, but I didn't realise that I can do the same thing with enemies :oops:

Thanks A-red and Tir, yeah, I could do that, but I really had to get rid of them, otherwise, they would be used in MOMA (which I don't want), which works with invisible units, so that wouldn't be a good solution, but thanks :)
gugusm
Posts: 487
Joined: Mon Aug 22, 2005 1:16 pm
Location: Klucze, Poland
Contact:

Post by gugusm »

HAHA, here comes the next problem, when I select Is Uncontrollable in a unit window, everything works fine, but if I want to do it by script, it seems that Uncontrollable flag in CTRL action doesn't work fine. Casualty sound is still played, unit is counted as killed etc. Am I missing something?
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Post by Pyro »

In a map I made, I wanted to add wights that would not belong to anyone, but that would attack when the script says so. So in Fear, I made the wights "Ambient Life" for Class in the monster tag. I also checked the flag "If Ambient, can be targetted normally". In Loathing I had those wights in Team -1 marked as "Uncontrollable" and "Is ambient life". When they are killed the player doesn't get kills (shields/skulls) for them. And you do not hear casualty.
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Post by A-Red »

gugusm wrote:HAHA, here comes the next problem, when I select Is Uncontrollable in a unit window, everything works fine, but if I want to do it by script, it seems that Uncontrollable flag in CTRL action doesn't work fine. Casualty sound is still played, unit is counted as killed etc. Am I missing something?
No, that's the way it works. Conversely, if a unit starts out Uncontrollable in the unit palette and then you script a change to controllable, it *doesn't* count as a casualty.

You need these units to start out controllable? You can't duplicate the units in the unit palette and make an uncontrollable version? Without knowing what you're doing exactly, it's hard to make any more suggestions.

Based on what you've said so far, I would recommend making them invisible rather than deleting them, and Mungering them out of the MOMA as you do it.

A-Red
gugusm
Posts: 487
Joined: Mon Aug 22, 2005 1:16 pm
Location: Klucze, Poland
Contact:

Post by gugusm »

Yeah, I thought about it, but MOMA is not the only problem, it's very complex and I don't want you to read all boring issues... The only solution for me is to delete them. Hmm... I'll have to think what to do now. Thanks for your replies.

BTW: If that's the way how it works, what Uncontrollable flag does, if it doesn't remove casualty sound as it reads in it's description?
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Post by A-Red »

Uncontrollable *does* make units not count as casualties, but they have to be uncontrollable the moment they are created. You could probably make it work by making them visible and uncontrollable in the same CTRL--but that doesn't help you either. The flag also keeps units from giving you visibility (which works no matter when you activate it).
gugusm
Posts: 487
Joined: Mon Aug 22, 2005 1:16 pm
Location: Klucze, Poland
Contact:

Post by gugusm »

Ah, thanks for the tips A-Red.
Post Reply