Staredit Network > Forums > SC2 Assistance > Topic: Upgrade Ability Working for Another Player
Upgrade Ability Working for Another Player
Sep 14 2010, 2:24 am
By: MapMakerGuy  

Sep 14 2010, 2:24 am MapMakerGuy Post #1



I'm trying to have an upgrade ability, upon completion, done by either player 1, 2, or 3, upgrade the towers of player 4.

I know how to make requirements and upgrades for someone to upgrade their own buildings, but I'm not sure how to do it so that one ability, used by one player, will upgrade someone else's (a computer in this case) buildings.



None.

Sep 14 2010, 2:44 am shmeeps Post #2



I think the easiest way would be to use a trigger, which would be something along the lines of

Event
Player uses ability <x>
Conditions
Ability = Upgrade!
Triggering Player == 1, 2, 3
Actions
Set Upgrade <x> to level 1 for player 4

I don't have a copy of the editor on hand, unfortunately, so I can't give you the actual code, but i hope that will give you a push in the right direction.



None.

Sep 14 2010, 3:10 am MapMakerGuy Post #3



I was trying to work out something like that before (I was hoping it would be straight forward like what you put up), but I don't see most of those options. There is only "unit uses ability", but the "unit" is from a building that is going to be built in game, so it's not already on the map, I also don't see any options for conditions like that.

There are 4 different research buildings that can be built, depending on the stage of the game. Each person researchs what they want independently. Each research building has about 15 different upgrades that do different things, 2 of which in each building that (I want to, regardless of who uses it first) cause all the starting towers to upgrade. There are no upgrade levels or anything like that. The towers (which can be built by players, but there are also a few that start out on the map) have morph abilities on them.

The reason I need any player to be able to upgrade all starting towers is because (as an element of the game) there will be one person teching, so that would be an element of their job. The starting towers might need to be different buildings from what can be built by players for it to work, but that wouldn't be a big deal to do.



None.

Sep 14 2010, 9:45 am MapMakerGuy Post #4



I found a sort of workaround (that will have to do for now). I made a tower upgrade building for each player and buttons that have requirements attached to them (requirements of the research abilities that unlock towers). I then made a trigger that has it so that whenever the button is pressed by players 3,4,5 (team 1) it will kill all of the starting towers of player 1 (computer allied with team 1) and create the next tier tower in that same place. Then I did that for the other team and each tower tier.



None.

Sep 15 2010, 1:06 am Roy Post #5

An artist's depiction of an Extended Unit Death

Well, from what I read, it sounds like you want to use a unit group of some sort.

Using actions, you can filter down what units you want to be affected when the trigger executes. "Pick Each Unit in Unit Group Matching Condition" may be the action you want to use. You can select all units of a specific unit-type, player-owner, etc. (Basically, all units you want to affect), and then run the necessary actions using "Picked Unit" to refer to each unit in the group.

So you could grab all of player 4's towers that you want to upgrade and make them upgrade to the next tier.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:30 am]
Symmetry -- I dreamed about that as a kid. The idea of a computer capable of analyzing a starcraft map and calculating the fastest possible way to hit the victory condition
[02:29 am]
Symmetry -- But can AI beat my custom maps?
[12:32 pm]
Oh_Man -- yea APM vs eAPM
[08:48 am]
NimoStar -- plus most of the human APM is just spam clicking APM inflation
[08:47 am]
NimoStar -- the thing with the "*12" thing is completely misleading. The AI isn't using two control groups, it can use each of those actions to command a single unit individually and issue different commands to each single unit.
[08:06 am]
NudeRaider -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
*Pluto's wraiths
[08:05 am]
NudeRaider -- Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
[2026-9-22. : 2:18 am]
Oh_Man -- Close enuf
[2026-9-21. : 4:14 pm]
Vrael -- perhaps there is a small professional player trapped in a box in the server rack where pluto is running? hmm?
[2026-9-21. : 4:14 pm]
Vrael -- 240*12*2 is 5760, where is the other 240 APM?
Please log in to shout.


Members Online: DarkenedFantasies, Symmetry