Blizzard Sector
Trig Help plz - Printable Version

+- Blizzard Sector (https://www.blizzsector.co)
+-- Forum: Blizzard Games (https://www.blizzsector.co/forum-8.html)
+--- Forum: Starcraft (https://www.blizzsector.co/forum-94.html)
+---- Forum: Starcraft Maps (https://www.blizzsector.co/forum-62.html)
+---- Thread: Trig Help plz (/thread-42621.html)



Trig Help plz - Soulman999 - 01-09-2008

So im making a map close to WC3's Hero Line Wars and i need a trigger so i can get a certain amount of minerals for every single kill such as...

When Player1 kills a marine Player1 get 1 Mineral.

But there isnt a trigger that says every kill player1 gets so im stuck....


Trig Help plz - jedimaster86 - 01-09-2008

What about this setup? I dunno if it'd work, but it'd just take testing:

For the condition, choose "KILL" and say something like
Code:
Player 1 kills exactly 1 any unit.

For the action, choose "SET RESOURCES" and say something like (along with preserving the trigger)
Code:
Modify resources for Player 1: Add 1 Ore
Preserve Trigger



Trig Help plz - Soulman999 - 01-10-2008

nah cuz im going to be killing more than 1... that will only give 1 mineral for the first kill... i tried that already but thanks anyways Big Grin


Trig Help plz - jedimaster86 - 01-10-2008

Hey, well I looked it up some, and tested it myself, and this seems to work:

Code:
CONDITION
-Player 1 Kills score is at least 1.
ACTIONS
-Modify resources for Player 1: Add 1 Ore.
-Modify score for Player 1: Set to 0 Kills.
-Preserve Trigger

This should do the trick, good luck! If you have other triggers that conflict with this one, I don't know what to tell ya - I don't really know much about SC map-making, I havn't done it in a long time, and when I made any, they were really basic and only made for myself.


Trig Help plz - Soulman999 - 01-11-2008

thanks man... didnt think of that Big Grin


Trig Help plz - AngelSpirit - 12-13-2008

jedimaster86 Wrote:Hey, well I looked it up some, and tested it myself, and this seems to work:

Code:
CONDITION
-Player 1 Kills score is at least 1.
ACTIONS
-Modify resources for Player 1: Add 1 Ore.
-Modify score for Player 1: Set to 0 Kills.
-Preserve Trigger
This should do the trick, good luck! If you have other triggers that conflict with this one, I don't know what to tell ya - I don't really know much about SC map-making, I havn't done it in a long time, and when I made any, they were really basic and only made for myself.


This does work, yes, but just in case you want to have varying amounts of money for different types of units, use this.
Code:
[U][B]Players:[/B][/U]
[Whichever player you want]
[U][B]Conditions:[/B][/U]
[Current Player] [kills] score is [exactly] [50].
[U][B]Actions:[/B][/U]
Modify resources for [Current Player]: [Add] [1] [ore].
Modify score for [Current Player]: [Set to] [0] [kills]
Preserve Trigger.
The only difference from jedimaster86's trigger is that you can make different units give different amounts of money. Simply edit the condition field for each unit. However, to avoid bugs, I would recommend using hyper triggers.