Staredit Network

Staredit Network -> UMS Assistance -> Amount of Units
Report, edit, etc...Posted by flipmonkey on 2006-01-24 at 21:04:12
OK this is what i want. I want to able to have a limit (an amount of units u can hold at a time) where u only are able to hold 12 units or to have 12 units out on the field. The other units that u have but can not be used are in a coner. I three location set to at more 12 units but u can trigger the trigger in that way. I cant use one location because the units that are in the coner might effect it and another units that are used as items will be effect . I tried using switches but what happens if the unit gets killed. And im using the kill score for sumthing else.

The thing im trying right now is this, I have a civilian as ur main person and the units must follow civ. Which means there are only 11 units plus that civ. I made 2 different location layer one being bigger then the other by 3 squares all around. I set the location layers to be centered on that unit and tried to set triggers like so. Such as if a unit goes out of the small location and in to the bigger location the unit will get teleported or moved to the smaller location being back into the middle of that smaller location. Dont no if u guys can understand me but just want to find away to set a limit to the units.
Report, edit, etc...Posted by IanMM on 2006-01-26 at 10:47:19
Make a location over the whole arena and use this trigger:



Trigger
Description:
Trigger
Players:
¤ People in the areana
Conditions:
¤  if current player brings more than 12 men to location arena
Actions:
¤ Moves exactly 1 men to (corner location)
¤ preserve trigger
¤ display comment: Move trigger

Report, edit, etc...Posted by rockz on 2006-01-26 at 11:37:10
QUOTE(flipmonkey @ Jan 24 2006, 09:04 PM)
Dont no if u guys can understand me but just want to find away to set a limit to the units.
[right][snapback]412512[/snapback][/right]

I certainly can't.

I'll try my best anyway. If you want to have some sort of "battle arena", try making the arena perfectly square, since I think with multiple units, you may only use 1 location.

The way you tried to describe to me sounded alright, but you might want to make sure you use hyper triggers (or make the bigger location even larger) to make sure nobody gets out of your Civilian's area.
Report, edit, etc...Posted by flipmonkey on 2006-01-26 at 16:05:50
Ok will this goes in this my other forum http://www.staredit.net/index.php?showtopic=26005 but the thing is. I have more then 1 unit. The civilian moves around the entire map and i want to have about 12 units in the location layer that is centered on the civ. I looked at the tutorial but dont c how that works for me. Ill go back and check it out again

ADDITION:
well this wut i did with the location layer. Well first i made a 10x16 location layer and made another location layer 13x19 and placeit right over the other layer. Both layers are centered on the Civ. My map is 256x256 and there are only 2 places i dont want this civ to go, also already made the boudary for those areas. Now, as the civilian moves around the map i want the other 12 units to stay inside the loacation layer. If any gets out the get teleported back to the middle. For example. ill use this analogy, a dog and its master. The dog cant get away from the master because there is leash attacked to him. The dog must go where ever the master goes.

I hope this better explains wut im looking for. If not ill try my best to explain.
Report, edit, etc...Posted by joker2kill on 2006-01-26 at 16:43:09
we'll if you have SF then you could use P13 in this technique.
Just make 4 pylons or supplys or overlords, whichever you need, then make it so they can only hole that amount of players, and if tehy build any more, like what xXIanXx said, they make them go into the cornor but as player 13 or so on, so they cant build anymore, and put the location over the cornor as if they exceed an amount of units up there, you remove them
Trigger
Players:
¤ player " " (13-??) whatever you want
Conditions:
¤ bring (p13-??),atleast, (lets say 10)anyunit,to cornor
Actions:
¤ killunitatlocation(p13-??),kill 1, anyunit


that should narrow down the amount of units they can own
Report, edit, etc...Posted by flipmonkey on 2006-01-26 at 21:06:46
QUOTE(joker2kill @ Jan 26 2006, 04:43 PM)
we'll if you have SF then you could use P13 in this technique.
Just make 4 pylons or supplys or overlords, whichever you need, then make it so they can only hole that amount of players, and if tehy build any more, like what xXIanXx said, they make them go into the cornor but as player 13 or so on, so they cant build anymore, and put the location over the cornor as if they exceed an amount of units up there, you remove them


Trigger
Players:
¤ player " " (13-??) whatever you want
Conditions:
¤ bring (p13-??),atleast, (lets say 10)anyunit,to cornor
Actions:
¤ killunitatlocation(p13-??),kill 1, anyunit


that should narrow down the amount of units they can own
[right][snapback]413606[/snapback][/right]


Whats SF? Really I dont no. LOL well yay thats wut i want to do. Another thing like xxianxx said, there are other units in the coner that u have. I set it like, if u want to get those units ur civ has to go to a certeain location to get them out. But u still cant go over the 12 limit.
Report, edit, etc...Posted by rockz on 2006-01-26 at 21:44:50
QUOTE(flipmonkey @ Jan 26 2006, 09:06 PM)
Whats SF? Really I dont no. LOL well yay thats wut i want to do. Another thing like xxianxx said, there are other units in the coner that u have.  I set it like, if u want to get those units ur civ has to go to a certeain location to get them out. But u still cant go over the 12 limit.
[right][snapback]413981[/snapback][/right]

I can't tell if you are kidding or not, but I presume SF is starforge.
Report, edit, etc...Posted by FatalException on 2006-01-26 at 22:12:25
So, if I understand you, you're saying that you only want to have 12 units at a time in the main area, and have the others in a reserve area down in the corner. Also, you want those 11 units to always be with the "master." I presume that you're making a Pikmin map, so I will use Pikmin as the units that follow the guy. what you could do is this:
Trigger
Description:
Only 12!!!
Players:
¤ The guys with the Pikmin
Conditions:
¤ Player brings 13 Pikmin to 'Arena main thingee.'
Actions:
¤ Move 1 Pikmin at 'Arena main thingee' to 'Reserve in the corner.'
¤ Preserve trigger.

Trigger
Description:
Only 12 (again)!!!
Players:
¤ The guys with the Pikmin
Conditions:
¤ Player brings 14 Pikmin to 'Arena main thingee.'
Actions:
¤ Move 2 Pikmin at 'Arena main thingee' to 'Reserve in the corner.'
¤ Preserve trigger.

And so on. About the part where they have to stay with the guy, here is a way to mkae them swarm around him:
Trigger
Description:
Pikmin swarm around that guy
Players:
¤ Players with pikmin
Conditions:
¤ Bring at least 0 Pikmin to 'Arena main thingee.'
Actions:
¤ Order all Pikmin at 'Arena main thingee' move to 'Location that follows the guy.'
¤ Preserve trigger.

Another one that makes them swarm, but less concentrated around the guy:
Trigger
Description:
Less concentrated swarm
Players:
¤ Players with pikmin
Conditions:
¤ Bring at least 0 Pikmin to 'Arena main thingee.'
Actions:
¤ Order all Pikmin at 'Arena main thingee' move to 'Location that Pikmin must stay in (that still follows guy).'
¤ Preserve trigger.

And finally, on that has no move order, but should is swarm free, and shouldn't make a problem for moving the guy (provided the location that the pikmin must stay in is large enough):
Trigger
Description:
Non-swarming
Players:
¤ Players with Pikmin
Conditions:
¤ Bring at most 11 Pikmin to 'Location that Pikmin must stay in (that still follows guy).'
Actions:
¤ Move all Pikmin at 'Arena main thing' to 'Location that Pikmin must say in (that still follows guy).'
¤ Preserve trigger.

Ugh... Finally done.... I hope that helps!
Report, edit, etc...Posted by IanMM on 2006-01-27 at 10:41:19
OK here's a nother way. You need a location where they come out of and a locatin over the arena:




Trigger
Description:
Trigger now!!
Players:
¤ lets say one 1
Conditions:
¤ Bring player 1 bring more than 12 units to 'war zone'
Actions:
¤ Move one men to 'corner'
¤ preserve trigger.





Trigger
Description:
now back to the arena
Players:
¤ lets say one.
Conditions:
¤ player 1 brings at most 12 men to 'war zone'
¤  Player 1 brings at least 1 men to 'corner'
Actions:
¤ Move 1 men from 'corner' to 'player 1 start'
¤ Preserve trigger






Trigger
Description:
if no reanforments
Players:
¤ player 1
Conditions:
¤ player 1 brings exactly 0 men to 'corner'
¤ Player 1 bring at most 12 men to 'war zone'
Actions:
¤ Display text message:
You do not have any more renforents.
¤ preserve trigger

Report, edit, etc...Posted by flipmonkey on 2006-01-27 at 16:12:27
hmmm ill try it out. Sumthing came up right now, with the corner thing. Lol. will im at school still so ill get back after school and tennis.
Next Page (1)