• 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.

a system of the vampirism fire map

Status
Not open for further replies.
Level 3
Joined
Mar 4, 2013
Messages
35
you build a building to claim a base, this way your allys cant build inside your base or attack your buildings, i think this is done using regions, if you guys know how its done please post how, thx
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
Depends - is the base in pre-set location or can it be placed anywhere during the game?
Can there be more than 1 base per player? Etc.

The way you could do it: Have a region of the same size for each player; when player builds his base, center that region on the point where his main building stands. Then whenever another player tries to build a building inside this region, you order that player to stop.

Another way could be by setting a distance check - for example a distance of 1500 for each base. Whenever a player would try to build a building within 1500 of another player's main building, you would order that player's worker to stop.

The attack part can be done easily by checking if a unit is issued order targeting unit and checking if ordered unit and target unit of issued order are allies and if the target is a building.
 
Level 3
Joined
Mar 4, 2013
Messages
35
the bases are pre placed, you go to wichever you want (but you "own" them by creating a certain building there)
only 1 base per player
the bases also have all kind of shapes wich make me believe they use more than 1 region per base
i dont think the distance check thing would work

imagine the bases are the red parts
HR1xCSH.jpg
 
Level 3
Joined
Mar 4, 2013
Messages
35
i do not own vampirism fire if thats what you are asking

i found this i think it will be usefull

  • Acontecimientos
    • Unidad - A unit Inicia construcción
    • Condiciones
      • (region 1 <gen> contains Torre de Observación 0000 <gen>) Igual a True
    • Acciones
 
Level 8
Joined
Mar 22, 2008
Messages
422
Just set up regions for every base. Then make it so if a building is built in that cluster of regions by player X make it say he claimed the base. Then make it so if any building not own by him is build in there destroy it depending if a varible is set to true or false for him being allowed to.

Player XXX builds a unit (Not sure on this havent used editor in a long time)

condition:

Action if them else if owner = to player 1 red
then set base_Claimed region xxx to player 1 red
else

Repeat for other player.

Yes there would be a easyer way but i havent done this in a good 4 years

You would also need a second trigger to destroy the buildings of other players and a 3rd one to check if a player is allowed or not.
 
Status
Not open for further replies.
Top