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

Capurable resource locations help please

Status
Not open for further replies.
Level 1
Joined
Apr 17, 2009
Messages
4
Hey guys, im trying to make spots on my map that will generate resources sowly over time for the team controlling them but i want the other team to be able to take them away from the controlling team back and forth ect.. can any of you help me with this?
 
Level 8
Joined
Aug 23, 2007
Messages
491
Ok, so make a circle of pwer or a lumber mill or something and just take away its abilities, etc. Then make a trigger so that the controller of the unit gets a gold and or lumber income of x amount at x amount of time. So like 100 gold every 10 secs or ever. Then make a trigger that switches control to the attacker when its hp is downed to 0. If you have no experience in trigger I'll post the entire thing for you. Some1 might beat me to it though becuz I going to bed now.
 
Level 1
Joined
Apr 17, 2009
Messages
4
Yea but im not sure how to make it capturable ect.. if you had an example of the trigger to make it capturable i could look at it would help me out alot
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
basically it depends on how you want to have the capturing process. like is it enough to kill all enemy units around the resource, or damage a building next to it down to some hp, or standing in a circle of power next to it for a specific amount of time? or something else maybe?
 
Level 9
Joined
Apr 28, 2009
Messages
538
OK, i'm back and i even made a map for you so that you understand better.

This map does exactly what you want (it will add +7 gold each 5 seconds to the player that captures the "chicken":grin:)

You can adjust the triggers however you want:)

Please note that i made the process of capture to take place when a unit enters one of the 2 regions, and you can modify this.
If you do not know how, tell me and i will reupload.

View attachment Capture_Resources.w3x
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
It is easy, especially the giving gold part.

For the gold income, simply create a trigger with a timer (every x seconds of the game...) and add gold to the owner of the control point.
About the taking-ownership, which I think is your question: you have to add the event Unit - Life for all the resource locations you're using.
You could also use the "A unit is attacked event", but there are two good reasons not to: in big maps, it only favors lag, and this event ignores siege weapons' Splash Ground ability, which means players can actually remove the resource point using it.

If you have any doubts, ask away! I'll keep checking the thread.
 
Status
Not open for further replies.
Top