• 0

    posted a message on Setting up Bounty

    Enemy Unit Dies Events Unit - Any Unit dies

    Local Variables Bounty = 0 <Integer>

    Conditions (Owner of (Triggering unit)) == 15

    Actions Variable - Modify Player Kills[(Killing player)]: + 1

    General - If (Conditions) then do (Actions) else do (Actions) If (Unit type of (Triggering unit)) == Zerglet Then Variable - Set Bounty = 2 Else

    General - If (Conditions) then do (Actions) else do (Actions) If (Unit type of (Triggering unit)) == Hydralisk Then Variable - Set Bounty = 10 Else

    Text Tag - Create a text tag with the text ("+" + (Text(Bounty))) for (All players), using a font size of 24, at (Position of (Triggering unit)) and height offset 0.0, initially Visible, and fog of war enforcement set to false

    Text Tag - Set the velocity of (Last created text tag) to 1.0 coordinates per second at an angle of 90.0 degrees from horizontal

    Text Tag - Set Text color(s) for (Last created text tag) to (Color((Current player (Killing player) color)))

    Text Tag - Set Duration time for (Last created text tag) to 3.0 seconds

    Player - Modify player (Killing player) Minerals: Add Bounty

    Leaderboard - Set Leaderboard item text at column 2 and row ((Killing player) + 1) to (Text(Player Kills[(Killing player)]))

    Let me try to break this down so it makes sense. When a unit belonging to player 15 dies (in this case player 15 was the computer enemy) this trigger runs. The local variable I called bounty and the reason it is a local variable is because it is going to change up with every enemy unit death and apply to the killing players resources . I also was keeping track of player kills which is referenced in the last line.

    In this map I was just testing two unit types, zerglets (I renamed zerglings for some reason) and hydralisks. When either of these units dies they set the variable bounty to 2 or 10 respectively.

    What happens next is a text tag pops up over a unit that dies. The + in quotations is combined with the bounty value depending on the unit that was killed. So if a zerglet was killed the text tag would read "+ 2" and if a hydralisk was killed it would read "+10". The color of the text is set to the color of the killing player so everyone can see who killed each unit. The bounty variable is then rewarded as the resource of your choice (in this case minerals) to the killing player.

    That last line is just set up for the leaderboard which is outside of this trigger but modified as players get kills.

    Hope this helps

    Posted in: Miscellaneous Development
  • 0

    posted a message on Issues with playtesting on B-Net

    So I have run through one-two's tutorial of zerg invasion and have it working fine when I test it from the editor itself. I would like to polish off this tutorial before I begin designing my own version. As soon as I publish it and test it online I get a whole mess of problems. I read http://forums.sc2mapster.com/resources/tutorials/5486-lobby-game-modes-the-complete-guide-reference/ and while it helped solve a few issues, I'm still left with a few significant problems.

    1.My biggest problem is I do not know how to set up the map to have up to 4 player slots and not allow the host to change the game type which completely buggers all my triggers. I have my game variant set to default but there are still two options in game type and all it takes is the host to change that and then the game doesnt work. I seem to have to go to Map>Player Properties in order to allow more than one player yet as soon as I do this my map becomes custom with the option to change the type in lobby. Why would Blizzard have map options which essentially make your map not work as soon as it is online?

    2. The game is set for 4 players with a computer ally (just for the base you protect) and a computer enemy (the zerg invasion). I would like the lobby to represent 4 players on one team. Not sure how to set this up.

    3. Most of my triggers are based off of player #'s which could potentially change based on how many people are in the game. I followed one-two's trigger creation based on allies of player 1 but the integer value here gets very twisted very fast. If player 1 is the only player is he an ally of himself or is the allies value set to 0? Is the computer controlled player I set up for my main base considered an ally when in multiplayer or is it not really there since it doesnt have a start location.

    Hopefully someone has some insight here. I got very frustrated when I went from having a functional map to something completely useless as soon as it was on B-Net.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Setting up Bounty

    Adding color to the bounty lets players see which player got the kill as the text can display for all players.

    Posted in: Miscellaneous Development
  • 0

    posted a message on The Map Testers List

    @Eaglesight: Go

    BnetNick: Bayushi Identifier: 712 MapsterNick: BayushiNezumi Comment: Willing to help test maps. Send me a pm here or in game. Learning to design as well. Region:USA

    Posted in: Miscellaneous Development
  • 0

    posted a message on Setting up Bounty

    Thanks for the advice. I changed bounty to run off of triggers and it seems to work accurately. For the benefit of those who may try the same thing I'll share how I set it up. If anyone can think of a way to simplify it as well I'm open to improvement.

    I created a local variable called "bounty" (integer)

    With each unit death an If-Then-Else is run to verify the unit and sets the appropriate value for "bounty"

    A text tag is created combining a + and the value of "bounty" set to the killing players color.

    Killing players resource is increased by the value of "bounty"

    I'm sure this is a commonly used trigger but I havent seen it on the boards so figured I'd toss it up.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Video] Revenge of the Tal'Darim Cinematic

    Incredibly good man! Look forward to your future releases.

    Posted in: General Chat
  • 0

    posted a message on Setting up Bounty

    Im having a little bit of difficulty getting bounty to work properly. I followed one-twos tutorial on Zerg Invasion and in it he sets up triggers for a text tag to appear when a unit dies. I think the issue is that since beta (when he did his tutorials) the kill resource bonus shows as well so I end up with two sets of numbers when I kill a unit. One is from the inherent kill resource cost and that comes up as blue and the other is from the text tag which comes up based on triggers. Ideally I would just like one bounty to show in the killing players color. Will this require setting up several variables or is there an elegant solution?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Doodads as Buildings

    I would like to know how I can utilize a doodad model for a building. What I tried so far was copying the Terran Command Center in the Data editor and altering the actors to the abandoned colonist ship but this gave me a bunch of very odd selections in my unit layer. I was able to place my test building on the map, but I was unable to select it as something was still registering as a doodad. Any help would be appreciated.

    Posted in: Data
  • To post a comment, please or register a new account.