Base Claims

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

Moderator: Cheaters

Zayfox
Newcomer
Posts: 3
Joined: January 6th, 2009, 6:38 am
Title: Your resident newfag

Base Claims

Post by Zayfox »

Aight, it's been done before in many maps, but I'm still unsure how to go about it.
18 bases, or regions, which are able to be claimed.

A person puts their unit (a human generally) inside one of these regions and types -claim. This then protects the base so they can type -out <playernumber> and remove all units that are the specified colour from the base. Players 1 through 10 can be outed, but players 11 and 12 can not be.

I had a look at a map with the trigger formation, but it doesn't work because the human units spawn after map initialization.

So, how do I go about creating this trigger?
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Base Claims

Post by Arabidnun »

Basically, all you really need to do is set it so each region = Region(array)

Now when the person types -claim, you have to pick his main unit, and then set it so when you pick him, it designates which region he is, and set that region(array) = player group of triggering unit

Now, when they say -out it just picks every unit is triggering players (Array) and kicks them

And make sure when you have -claim, have an if/else condition to check if they are already set to a Region(array)
Zayfox
Newcomer
Posts: 3
Joined: January 6th, 2009, 6:38 am
Title: Your resident newfag

Re: Base Claims

Post by Zayfox »

First, I will say thank you, you've provided some answers at least. Just my understanding of what I have to do is kinda limited on this.
I've done the array (probably the single simplest thing possible.) but I don't really understand how I finish the trigger...
Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Re: Base Claims

Post by Black-Hole »

Couldent you just do Select every unit within 200 of unit?
and than have it change ownership depending on the amount of people within the 200?
Zayfox
Newcomer
Posts: 3
Joined: January 6th, 2009, 6:38 am
Title: Your resident newfag

Re: Base Claims

Post by Zayfox »

I don't think so, because every base has a region, and I want x region to be for x player, and when player x types -out, all other players in region x get moved to the outseide of the base.