Trigger Problems

Discussion in 'Maps and Replays' started by Lord David, Jul 16, 2007.

Trigger Problems

Discussion in 'Maps and Replays' started by Lord David, Jul 16, 2007.

  1. Lord David

    Lord David New Member

    Joined:
    Jun 17, 2007
    Messages:
    159
    Likes received:
    0
    Trophy points:
    0
    From:
    Melbourne, Australian Continent, Earth, Sector 001
    Post your trigger related problems here.

    Ok here's mine. I intend on using the custom score for a 1 kill for each time you kill a unit. I got the score board up and running. But here's the problem:

    This is the trigger

    CONDITIONS:
    Current Player kills at least 1 [men].

    ACTIONS:
    Preserve trigger.
    Modify score for Current Player: Add 1 custom.

    Alright, the trigger works when you kill your first unit, but it continually increments itself! Ugggh! I put the add 1 custom after the preserve trigger, but that doesn't seem to make a difference. Anyhow, any help would be appreciated, if possible, try it out yourself and see....

    Could it be an editor related problem? (I'm using Scmdraft 2.0) :)
     
  2. JBL

    JBL New Member

    Joined:
    May 25, 2007
    Messages:
    1,095
    Likes received:
    0
    Trophy points:
    0
    You don't need to make a new topic for this..

    please post your trigger problem in my special PINNED map making support thread..

    and i'll help you.

    i know my post is a bit cocky.. but I don't think it's necessary to answer you here..
     
  3. josh

    josh New Member

    Joined:
    Jul 12, 2007
    Messages:
    1,062
    Likes received:
    0
    Trophy points:
    0
    From:
    In Our House
    its simple. you preserved the ACTION so once the conditions are done, it will keep on triggering the ACTION so it won't stop.
     
  4. Lord David

    Lord David New Member

    Joined:
    Jun 17, 2007
    Messages:
    159
    Likes received:
    0
    Trophy points:
    0
    From:
    Melbourne, Australian Continent, Earth, Sector 001
    You proposing I do the player such and such kills 1 unit then kills 2 units then 3 then 4 etc? That's damn tedious! bleh. :p
     
  5. JBL

    JBL New Member

    Joined:
    May 25, 2007
    Messages:
    1,095
    Likes received:
    0
    Trophy points:
    0
    lol stop stealing my job ;)

    but you are right..

    the player killed at least 1 men.. so it keeps adding the score..

    heres what you can do

    CONDITIONS:
    Current Player kills at least 1 [men].

    ACTIONS:
    Preserve trigger.
    Modify score for Current Player: Add 1 custom.
    SET KILLS FOR C U TO EXACTLY ZERO!

    it's the easiest way of doing it.. but theres a 50% or even more (depending of what the map is, see my map making support thread and apply there I'll help u with more stuff if you answer the 4-5 questions that I'm asking you there) chance that it will glitch a lot..

    try it and see if it works.

    hmm you trigger with SCMD2? if so, chapeau, I thought I was the only one able to trigger in .txt style.

    btw the action order in a trigger is only important with actions that will be applied to the game itself.. stuff like "comments" and "preserve trigger" just add a caracteristic to the trigger.. so it's not important where it is in the trigger.

    Edit: just it case i went too fast, "C U" means Current Player.
     
  6. JBL

    JBL New Member

    Joined:
    May 25, 2007
    Messages:
    1,095
    Likes received:
    0
    Trophy points:
    0
    Nope you don't have to do shit.
     
  7. Lord David

    Lord David New Member

    Joined:
    Jun 17, 2007
    Messages:
    159
    Likes received:
    0
    Trophy points:
    0
    From:
    Melbourne, Australian Continent, Earth, Sector 001
    Well I'm a little lost with the Set Kills part, should that be for text mode? I'm using the Classic Trigger mode.


    Edited out quotes. Please read the forum rules and refrain from quoting unecesarily.
     
  8. JBL

    JBL New Member

    Joined:
    May 25, 2007
    Messages:
    1,095
    Likes received:
    0
    Trophy points:
    0
    ur trigger says when the player kills at least 1 unit, u get a score point.. so u gotta reset the kill count for that player to zero right after..

    the only and very major glitch is .. if that player kill like 2-3 units or more at the same time.. it will get 1 score point..

    but i'm so elite that I know how to fix that.. but first, you gotta answer my lil questions in the other thread.. it will help me a lot..

    and 2nd, it's almost 3am here.. so im going to bed.. but if you answer the lil questions (lol sry i know i sound cocky but i need that information to help u) I'm going to post a 1000ish characters post with all the information you need to have the best trigger engine to do exactly what you want..

    ohh and please.. while you answer the questions.. add what you want to do EXACTLY with this trigger.. like.. tell me how your map works.. tell me the more you can about your map.. and I'll help you a lot.


    Edited out quotes. Please read the forum rules and refrain from quoting unecesarily.
     
  9. Lord David

    Lord David New Member

    Joined:
    Jun 17, 2007
    Messages:
    159
    Likes received:
    0
    Trophy points:
    0
    From:
    Melbourne, Australian Continent, Earth, Sector 001
    Alight, I'll let you sleep if you want to, i'll think about them questions, and post back later
     
  10. Lord David

    Lord David New Member

    Joined:
    Jun 17, 2007
    Messages:
    159
    Likes received:
    0
    Trophy points:
    0
    From:
    Melbourne, Australian Continent, Earth, Sector 001
    Alright I fixed the problem using Leaderboard kills, as for a similar sort of trigger using custom (where you kill a specific unit to get x amount of "points" or "$" as I put it), I suppose I gotta do the current player kills 1, then 2, 3, 4 etc, until I go to the max I want, or the possible max you can theoretically kill within the game.
     
  11. JBL

    JBL New Member

    Joined:
    May 25, 2007
    Messages:
    1,095
    Likes received:
    0
    Trophy points:
    0
    oh i thought you didn't do that first because you couldn't.. or w/e