Staredit Network

Staredit Network -> UMS Assistance -> How can I do this?
Report, edit, etc...Posted by Staredit.Net Essence on 2006-04-13 at 22:44:56
Well, in my map I set a limit of a maximum of 550 men. (it's a Diplomacy map) The problem is that some units are double "Specials" and I don't know how to deal with them. For example Ukraine has a double special. You build one Ghost and it turns into TWO Hero Ghosts. Technically 2 of these Hero Ghosts count as one regular Ghost. So if I have a limit of 550 men, someone who is Ukraine can only build 225 Ghosts which will equal 550 Hero Ghosts. Another player can build 550 of another unit that is NOT a double special and this person would own poor Ukraine. So, the problem is how do I make the 550 Unit Max apply to all units BUT double specials and have a 1100 limit ONLY for Double Specials?! I've thought this one through and I simply cannot come up with a solution. PLEASE I NEED HELP! blink.gif
Report, edit, etc...Posted by Do-0dan on 2006-04-13 at 22:52:08
make non double specials create 2 death counters for some player
make one of the double specials create 1 death counter for some player
make the limit of death counters for some player 1100 by killing units made after reaching the limit

i hope that works XD
Report, edit, etc...Posted by Staredit.Net Essence on 2006-04-14 at 12:11:32
What would the condition be though? If I use BRING or COMMAND and then add a "preserve trigger" it will loop for ever.. UGH HOW DO I DO THIS?!?! mad.gif
Report, edit, etc...Posted by Kumano on 2006-04-14 at 12:54:39
Well, I thought of a way although it would make the unit limit in Starcraft (1700) a problem. You could have 550 units at some corner in the map (burrowed zerglings or something maybe?) for each player. You then make the unit limit in the trigger actually 1100. When someone creates a double thing, the trigger that turns it into 2 units will remove 1 of the burrowed units in the corner, making them only appear to gain 1 unit. Whenever 2 of the special units die you create 1 of the zerglings again and subtract 2 deaths.

This way, when you have 550 of the special things, you will still have 225 slots left, because zerglings were removed. The unit limit per player may need to be lower than 550 using this method however, because there would basically be double the amount of units per player.
Report, edit, etc...Posted by Zeratul_101 on 2006-04-14 at 13:26:34
QUOTE(Kumano @ Apr 14 2006, 10:54 AM)
Well, I thought of a way although it would make the unit limit in Starcraft (1700) a problem. You could have 550 units at some corner in the map (burrowed zerglings or something maybe?) for each player. You then make the unit limit in the trigger actually 1100. When someone creates a double thing, the trigger that turns it into 2 units will remove 1 of the burrowed units in the corner, making them only appear to gain 1 unit. Whenever 2 of the special units die you create 1 of the zerglings again and subtract 2 deaths.

This way, when you have 550 of the special things, you will still have 225 slots left, because zerglings were removed. The unit limit per player may need to be lower than 550 using this method however, because there would basically be double the amount of units per player.
[right][snapback]465276[/snapback][/right]


550 for each player? thats impossible for more than 3 players and not including buildings, beacons etc. there is a 1700 unit max on the whole map not 1700 for each individual player
Report, edit, etc...Posted by Kumano on 2006-04-14 at 14:18:09
If you read my post completely, you would realize I talked about that. If it were 1700 per player then I wouldn't have even brought it up.
Report, edit, etc...Posted by BeeR_KeG on 2006-04-14 at 14:36:56
There are many different ways for doing this.

First you could do what Do-0dan said, doubleing the value for regular units and setting those special units to 1, the limit would rise to 1100 points.

Then you could just use the normal system you use, but change the aspect of special units. If Ukraine Commands 2 special units, then add 1 point to the unit limit. Regular units would count as 1 point, as you currently have. In this case, you need to use a point system, and not a command.

Either way, you're going to have to change your triggers, and you have the problem of counting the same unit multiple times.

If you truly want the system to count every specific unit value and know at everytime what that value is, you would need to create a Digit System, because different units have different values. It's quite complicated, but the results are amazing. You could even set up a tax system based on the amount of points you have. The Digit System is in my signature, if anyone is interested.
Report, edit, etc...Posted by Demaris on 2006-04-14 at 23:09:29

That's a very cool system, similiar to binary countoff almost. I can think of a way to deal with the subtraction, if you are interested.
Report, edit, etc...Posted by Staredit.Net Essence on 2006-04-14 at 23:12:37
Ah. Well, looks like my problem is more or less unsolvable... cry.gif Sry, but the way my map is set up, I cannot use HyperTriggers, so the Digit System is not applicable. disgust.gif So there is simply no way to add 1 Death Point for any newly constructed unit? Of course with out it adding infinitely due to "preserve trigger". helpsmilie.gif
Report, edit, etc...Posted by Demaris on 2006-04-14 at 23:42:21

You can't have player 8 or someone have hypers? You have some crappy design if you can't have hypers.
Report, edit, etc...Posted by nimadude on 2006-04-15 at 04:22:08
if other waits in the game are holding you back from using hypers... save yourmap without any hypers, create hyper triggers and save. Every time you want to save your map, delete the hyper triggers, save, then re-create them and save. This will avoid any problems associated with hypers smile.gif
Report, edit, etc...Posted by Kumano on 2006-04-15 at 06:13:53
Well, if every unit you build turns into something different you could add the deathcount then.
Report, edit, etc...Posted by Staredit.Net Essence on 2006-04-15 at 10:21:58
Uh Demaris, you haven't even seen the map... So don't comment on things you haven't seen. Sadly the way the map is made (the only way) is incomptible with Hypers. I have tried in the past and the map exploded (nothing worked well with Hypers). So, I guess in the end... my problem is "unsolve-able". cry.gif
Report, edit, etc...Posted by Mp)7-7 on 2006-04-15 at 10:56:16
player brings double unit to any location set max plyer units to 1100
Report, edit, etc...Posted by fritfrat(U) on 2006-04-15 at 14:42:13
7-7, you are wrong, but because you made that post I was able to think up the correct way to solve it, so you can still pat yourself on the back.

This will require trigger duplicator, but it's really simple..

Conditions: Current player commands (2, 4, 6... 1100) Double Units.

Actions: Set Max Unit Number to (551, 552, 553...1100)



Then you'll need trigger duplicator again for whatever you need done with the max units, but oh well. Up to you to determine if it's worth it. Just do a final compression with uberation whenever you play it, and the massive amount of triggers won't be so bad.
Next Page (1)