Results 1 to 6 of 6

Thread: Trig Help plz

  1. #1

    Default Trig Help plz

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

  2. #2
    Uber Noobling jedimaster86's Avatar
    Join Date
    Jan 2004
    Location
    Pennsylvania
    Battle Tag
    None
    Posts
    4,593

    Default

    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

  3. #3

    Default

    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

  4. #4
    Uber Noobling jedimaster86's Avatar
    Join Date
    Jan 2004
    Location
    Pennsylvania
    Battle Tag
    None
    Posts
    4,593

    Default

    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.
    Last edited by jedimaster86; 01-10-2008 at 01:01 PM.

  5. #5

    Default

    thanks man... didnt think of that

  6. #6
    Newcomer AngelSpirit's Avatar
    Join Date
    Dec 2008
    Location
    Toronto, Canada
    Posts
    9

    Default

    Quote Originally Posted by jedimaster86 View Post
    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:
    Players:
    [Whichever player you want]
    Conditions:
    [Current Player] [kills] score is [exactly] [50].
    Actions:
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •