• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

how do you make a trigger to claim a base

Status
Not open for further replies.
Level 2
Joined
May 9, 2008
Messages
14
like every vampirism, you stand in a base and type in -claim, this lets you build freely w/o other a-holes building in ur base. how do you do that using GUI triggers? is it possible or do you have to use JASS? Hope someone can help :thumbs_up:
 
Level 3
Joined
Apr 24, 2005
Messages
61
My guess would be you make a region at the base area, then do something like this:

Trigger 1
Event
Player x types -claim as an exact match
Condition
Number of units in (Units in region) owned by player x equal to or greater than 1
Action
Turn Trigger 2 on

Event
Unit begins construction
Action
If
Owner of triggering unit equal to player x
Then
Do nothing
Else
Kill (constructed structure)

Haven't tested it though, so I have no idea if it would work. And it would certainly not work with more than 1 base, but it shouldn't be that hard to tinker around with it and make it work.
 
Status
Not open for further replies.
Top