Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Need a bit of help.
Need a bit of help.
This topic is locked. You can no longer write replies here.
Aug 22 2009, 7:40 pm
By: KingOfKings  

Aug 22 2009, 7:40 pm KingOfKings Post #1



Trigger
Players

  • All Players
  • Conditions

  • Player One brings Atleast 1 Dead Unit to 'Location Dead Unit'
  • Actions

  • Display for current player: Player One has Died
  • Remove 1 Dead Unit for player 1 at 'Location Dead Unit'
  • Preserve Trigger

  • Okay it displays one for player one.... How do I fix this. I have made it create a "Dead Unit" at Location Dead Unit when the player dies...



    None.

    Aug 22 2009, 7:51 pm poison_us Post #2

    Back* from the grave

    Triggers run from p1--->p8, with the conditions being checked before each trigger is run.

    What this means is, you're making the conditions true for p1, but when the unit is removed, false for the rest of the players. The trigger does not run simultaneously for every player.

    EDIT: It's possible to do something like setting a switch or using a death count, and then putting under the last trigger for p8 a "reset" trigger, in which you would reset the deaths/switch you used to keep the conditions valid.

    Post has been edited 1 time(s), last time on Aug 22 2009, 8:00 pm by poison_us.




    Aug 22 2009, 8:13 pm Biophysicist Post #3



    Quote
    EDIT: It's possible to do something like setting a switch or using a death count, and then putting under the last trigger for p8 a "reset" trigger, in which you would reset the deaths/switch you used to keep the conditions valid.
    Assuming P8 is a comp, otherwise you'd get spammed with the message forever if P8 left. :P

    Here's the trigger's I'd use:

    Trigger 1:
    Conditions:
    -Current player has suffered exactly 1 deaths of Cantina
    Actions:
    -Modify Death Counts for Current Player: Set to 0 for Cantina
    -Remove 1 Dead Unit for Player 1 at "Location Dead Unit" for Current Player
    -Preserve Trigger

    Trigger 2:
    Conditions:
    -Player 1 brings exactly 1 "Dead Unit" to "Location Dead Unit"
    Actions:
    -Modify Death Counts for Current Player: Set to 1 for Cantina
    -Display text message for current player: <whatever>
    -Preserve Trigger



    None.

    Aug 22 2009, 8:18 pm CottonBalls Post #4



    how does the dead unit get to "Location Dead Unit" if it gets removed in the first trigger O.o



    None.

    Aug 22 2009, 8:19 pm poison_us Post #5

    Back* from the grave

    Quote from name:TassadarZeratul
    Assuming P8 is a comp, otherwise you'd get spammed with the message forever if P8 left. :P

    Most maps have at least one computer. :P
    Anyways, TZ's method is the better, but as long as p8 is a computer, it won't matter which one you choose.

    EDIT:
    Quote from CottonBalls
    how does the dead unit get to "Location Dead Unit" if it gets removed in the first trigger O.o
    Please see the original post. He's got a separate trigger creating the unit.




    Aug 22 2009, 8:36 pm KingOfKings Post #6



    The problem is it could be a death of multiple kinds of units but not any units there for i made it so if current player looses one of the units it creates a Dead Unit... Now if I put in wait 20 miliseconds in would that be enough to make it cycle through for other players... I can post other triggers. Some of you may be familiar with Custom Hero Wars i made v3b fixed. 4.0 5.0 5.a and all annoy me so im making another decent vers.



    None.

    Aug 22 2009, 10:10 pm MadZombie Post #7



    Quote
    Triggers run from p1--->p8, with the conditions being checked before each trigger is run.

    What this means is, you're making the conditions true for p1, but when the unit is removed, false for the rest of the players. The trigger does not run simultaneously for every player.
    Okay with this in mind then all he has to do it just stop saying "player 1" in his condition and instead use "current player" right?

    ... in my head it seems like such a simple fix that i must be wrong. Though death counts are always more fun. :D



    None.

    Aug 22 2009, 10:22 pm poison_us Post #8

    Back* from the grave

    Quote from MadZombie
    Okay with this in mind then all he has to do it just stop saying "player 1" in his condition and instead use "current player" right?

    No, because it seems as if only the player that is dying gets the "dead unit" created.




    Aug 23 2009, 12:16 am KingOfKings Post #9



    Quote from poison_us
    Quote from MadZombie
    Okay with this in mind then all he has to do it just stop saying "player 1" in his condition and instead use "current player" right?

    No, because it seems as if only the player that is dying gets the "dead unit" created.
    Correct. This is the last glitch in my map and I need this.



    None.

    Aug 23 2009, 1:21 am poison_us Post #10

    Back* from the grave

    In the trigger that has you create the "dead unit", remove the create "dead unit" action, and use this:

    Set death trigger


    display text trigger


    For player 2, you could use cave, p3: cave-in, and so on, that way it won't glitch if two people die at once.




    Aug 23 2009, 1:29 am KingOfKings Post #11



    Okay if i add a wait 20 miliseconds before it kills the thing will it work for all players?



    None.

    Aug 23 2009, 1:44 am poison_us Post #12

    Back* from the grave

    My way/TZ's will always work, but if you throw in a wait less than 84 that would work as well, because any wait under 84 will skip one trigger cycle, including wait (0) and (24).




    Aug 23 2009, 1:59 am KingOfKings Post #13



    So i can just put in a wait(0) and it will work?



    None.

    Aug 23 2009, 2:17 am poison_us Post #14

    Back* from the grave

    It will have the action wait until the rest of the triggers complete, which is why hypertriggers encounter wait blocks.

    In short, yes.




    Aug 23 2009, 1:19 pm KingOfKings Post #15



    :thumbup: :uberw00t: :lock:



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [06:47 am]
    NudeRaider -- lil-Inferno
    lil-Inferno shouted: nah
    strong
    [05:41 am]
    Ultraviolet -- 🤔 so inf is in you?
    [04:57 am]
    O)FaRTy1billion[MM] -- my name is mud
    [04:35 am]
    Ultraviolet -- mud, meet my friend, the stick
    [10:07 pm]
    lil-Inferno -- nah
    [08:36 pm]
    Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
    [2024-5-16. : 5:25 pm]
    NudeRaider -- there he is, right on time! Go UV! :D
    [2024-5-16. : 5:24 pm]
    lil-Inferno -- poopoo
    [2024-5-16. : 5:14 pm]
    UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
    [2024-5-16. : 3:36 pm]
    NudeRaider -- :lol:
    Please log in to shout.


    Members Online: Roy, 9avac963rb2, 9avac542ea4, 1madisone793ec5