I'm trying to make a map where you capture resource beacons by placing workers near them, and they provide income. This is pretty trivial to do with triggers (check for Unit Enters/Leaves range of beacon and transfer ownership/increment a variable that controls resource donation), but I'd have to make a trigger set for each individual beacon. Are there any other options, or will I have to do that?
I know this is trigger forum and stuff, but you could handle it with data editor. That way you could create resource beacons just by putting them in editor. And it's not SO complicated either. You would need:
2 effects - Search Area, Modify Player
1 behavior - Buff
In modify Player - In Effect tab, make sure Player - Value equals to Target, and input resources you want generated by beacon (per period, below)
In Search Area - In Search tab, create new Area and set it's arc to 360, range (of the beacon), Maximum Count to 1 (unless you want more income per worker) and Effect to Modify Player from point 1. Also modify Search Filters to exclude self, structures and require workers.
In Behavior (Buff) - In Stats tab modify Period to desired value. Then head to Effect tab and modify Effect - Periodic to Search area from pt 2.
After that you only need to add this behavior to any unit u desire, and it'll give minerals to owner of any worker nearby. Sample map attached if you want to take a look.
That was my dilemma, since i wasn't sure whether it would be better to do it with the data editor or not. In any case, that would work, thanks for the help! Edit: OK, i'm thoroughly confused.
for Modify Player, there's no Player - Value option under the effect tab, nor an option to "input resources i want generated by beacon". The closest i can come is under the Unit tab where i can choose an Effect to apply to any of a number of choices (Target being the default one). Edit: i'm an idiot, i didn't realize that Modify Player was the type of effect not the name you used >.<
For Search Area, there's about 4 places i can choose my Modify Player effect. I'm assuming I want the one just below the list of areas to search?
For my Buff, i'm guessing that i want to add something in the Resources tab, but all of them just look to be modifications to the harvesting process, and not direct depositing of minerals.
Could you use global region variables? Then you could make 1 trigger per resource.
That's the thing, i could do it with triggers but I'd need N sets of triggers (N being the number of beacons i want). I'm trying to come up with a less time intensive solution :)
I'm trying to make a map where you capture resource beacons by placing workers near them, and they provide income. This is pretty trivial to do with triggers (check for Unit Enters/Leaves range of beacon and transfer ownership/increment a variable that controls resource donation), but I'd have to make a trigger set for each individual beacon. Are there any other options, or will I have to do that?
Anyone? Anyone at all?
Could you use global region variables? Then you could make 1 trigger per resource.
I know this is trigger forum and stuff, but you could handle it with data editor. That way you could create resource beacons just by putting them in editor. And it's not SO complicated either. You would need:
After that you only need to add this behavior to any unit u desire, and it'll give minerals to owner of any worker nearby. Sample map attached if you want to take a look.
@uiasdnmb: Go
That was my dilemma, since i wasn't sure whether it would be better to do it with the data editor or not. In any case, that would work, thanks for the help! Edit: OK, i'm thoroughly confused.
That's the thing, i could do it with triggers but I'd need N sets of triggers (N being the number of beacons i want). I'm trying to come up with a less time intensive solution :)