Allied building change system

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Darkness568
Member
Posts: 97
Joined: June 18th, 2007, 12:45 am

Allied building change system

Post by Darkness568 »

Hi i am trying to make or find a system in which a unit enters a area lets say range 600 and if the unit is a hero and stands there for 10 seconds without leaving the area it will switch from neutral to red which is a computer, but not the color of the player that got it and it spawns units every x seconds going one direction also any player on the other team can stay in the same area and capture it and have units spawn going the opposite direction, but the control goes to player blue and not the person that got that one and if 1 player on either team is in the area it wont switch, but if units are in the area and no heros it will.

This is a system that is found in many battle tanks maps, but i havent found and dont know how to create this without a circle of power which i dont want and know it can work without one. If you can help that would be great and will provide more information if needed.
Rich Kane
Member
Posts: 77
Joined: May 27th, 2008, 9:08 pm

Re: Allied building change system

Post by Rich Kane »

Im not quite sure all that you want will be answered in my post but here goes.
hell its easier to make the trigger than say it so will post a map in a little with i hope everything u want.

Edit: added the map, it is very basic and will only work for allies of red capturing a unit for red. you will need to manipulate it and create the same triggers for enemy team or use an if then else function for each based on if its an ally or not. hope this helps and if you need any help with implimentation or such then let me know.

Edit 2: re-read your post and it seems u want the units to spawn aswell... i will let you have a look first because i believe it is quite easy to add a every 15 seconds of game create X units for owner of Y (the farm) at position of Y, if then else if Y = red then send units to attack A else if Y = blue then send units to attack B. but if you want this done aswell talk to me and im sure we could work somthing easy that you can manipulate out.
You do not have the required permissions to view the files attached to this post.
Darkness568
Member
Posts: 97
Joined: June 18th, 2007, 12:45 am

Re: Allied building change system

Post by Darkness568 »

Very nice works good so far but i am still to test the switch theory since idk how to test on one computer. I can setup the spawn system i currently have and will report back later if it works right, but i would like to know does it switch from neutral to red and if a person on blue captures it will it change?
Rich Kane
Member
Posts: 77
Joined: May 27th, 2008, 9:08 pm

Re: Allied building change system

Post by Rich Kane »

if an ally of player 1 goes beside it yes it will go to red, so do the same for the other team. but 1 from each team at the same time might need some work.

Edit : when it changes to one or the other you can always check if group (1) = group (2) do nothing, else if group (1) > group (2) change team 1 else change to team 2. if you wanted me to try this one ofc :P

Ps that test map does not have a switch back from team 1 to team 2.
Darkness568
Member
Posts: 97
Joined: June 18th, 2007, 12:45 am

Re: Allied building change system

Post by Darkness568 »

alright thank you will try that.