• 0

    posted a message on Event start with variable =

    Thnx guys. Will give all of you a try now when Im back from work :)

    Btw how can this trigger not be working?

    Recreate unit
        Events
            Unit - Any Unit dies
        Local Variables
        Conditions
            ((Triggering unit) is Required: Heroic for player 1) == true
            (Owner of (Triggering unit)) == 1
        Actions
            UI - Display "Respawning next round" for (Player group((Owner of (Triggering unit)))) to Subtitle area
            Variable - Modify Player death[(Triggering player)]: + 1
            Leaderboard - Set Leaderboard item text at column 3 and row 1 to (Text(Player death[(Triggering player)]))
            Trigger - Wait for Preround to execute, and Don't Wait until it completes
            Unit - Create 1 (Unit type of (Unit 1 from p1)) for player 1 at Defense spawn facing 270.0 degrees (No Options)

    Where "preround" is a trigger. How can this not be working? Shouldnt the trigger wait for "preround" to start and then do the last action, creating the unit I tell it too!?
    If I remove the wait action the trigger works fine, but the unit is created right away. I dont want that :D

    To be more specific, if a player choose to play as a marine, if that marine die anytime in the match I want it to create a new marine when some picked triggers start.

    Posted in: Triggers
  • 0

    posted a message on Event start with variable =

    @BasharTeg: Go

    The thing is, they dont really die. If they die they are moved to a different area til the next round.

    patrick: yes, thats what I mean I have a trigger, event to search every 0.5 sec and condition: " Team2 points[0] == 0" and then actions, but the actions start even if the value aint true.

    Posted in: Triggers
  • 0

    posted a message on Event start with variable =

    I have a leaderboard with two variables, how many units there is alive. So can you make an event start when one of them = #, and can you make an event start when value1 + value2 = # ? Sorry for alot of questions, but theres some things I dont understand :)

    Posted in: Triggers
  • 0

    posted a message on Problem with negative value of regions (unit leave region)

    Thanks all. Fixed it finally.

    Posted in: Triggers
  • 0

    posted a message on Problem with negative value of regions (unit leave region)

    Players team2 alive
    Events
    Unit - Any Unit Enters map
    Local Variables
    Conditions
    And
    Conditions
    Or
    Conditions
    (Owner of (Triggering unit)) == 3
    (Owner of (Triggering unit)) == 4
    Or
    Conditions
    ((Triggering unit) is Required: Heroic; Excluded: Missile, Dead for player 3) == true
    ((Triggering unit) is Required: Heroic; Excluded: Missile, Dead for player 4) == true
    Actions
    Variable - Modify Team 2 alive[(Triggering player)]: + 1
    Leaderboard - Set teamscore item text at column 2 and row 3 to (Text(Team 2 alive[(Triggering player)]))

    Players team2 dead
    Events
    Unit - Any Unit Leaves map
    Local Variables
    Conditions
    And
    Conditions
    Or
    Conditions
    (Owner of (Triggering unit)) == 3
    (Owner of (Triggering unit)) == 4
    Or
    Conditions
    ((Triggering unit) is Required: Heroic; Excluded: Missile, Dead for player 3) == true
    ((Triggering unit) is Required: Heroic; Excluded: Missile, Dead for player 4) == true
    Actions
    Variable - Modify Team 2 alive[(Triggering player)]: - 1
    Leaderboard - Set teamscore item text at column 2 and row 3 to (Text(Team 2 alive[(Triggering player)]))

    Players team2 dead 2
    Events
    Unit - Any Unit dies
    Local Variables
    Conditions
    And
    Conditions
    Or
    Conditions
    (Owner of (Triggering unit)) == 3
    (Owner of (Triggering unit)) == 4
    Or
    Conditions
    ((Triggering unit) is Required: Heroic; Excluded: Missile, Dead for player 3) == true
    ((Triggering unit) is Required: Heroic; Excluded: Missile, Dead for player 4) == true
    Actions
    Variable - Modify Team 2 alive[(Triggering player)]: - 1
    Leaderboard - Set teamscore item text at column 2 and row 3 to (Text(Team 2 alive[(Triggering player)]))

    Posted in: Triggers
  • 0

    posted a message on Problem with negative value of regions (unit leave region)

    @zeldarules28: Go

    Cause i dont want all unit to count, only a few of the units you can choose should trigger it. I tried without that condition first but that didnt work either. I Will paste the triggers when im home from work.

    Posted in: Triggers
  • 0

    posted a message on Problem with negative value of regions (unit leave region)

    @yukaboy: Go

    I tried to attach the unit I tested it with, still didnt work :(

    Posted in: Triggers
  • 0

    posted a message on Problem with negative value of regions (unit leave region)

    @peranzormal: Go

    I have 3 trigger, first one:

    • event: any unit enters "region"
    • condition:
      -or, owner of trigger unit 1, owner of trigger unit 2 etc
    • actions:
      -variable - modify "unit in region"[triggering player] +1
      -leaderboard - set board item text at column 1 and row 1 to (text(unit in region[(triggering player)))

    2nd:

    event: any unit leaves "region"
    condition:
    -or, owner of trigger unit 1, owner of trigger unit 2 etc

    • actions:
      -variable - modify "unit in region"[triggering player] -1
      -leaderboard - set board item text at column 1 and row 1 to (text(unit in region[(triggering player)))

    3rd:

    event: any unit dies
    condition: and,
    -unit attached to map = triggering unit
    -or, owner of trigger unit 1, owner of trigger unit 2 etc

    • actions:
      -variable - modify "unit in region"[triggering player] -1
      -leaderboard - set board item text at column 1 and row 1 to (text(unit in region[(triggering player)))

    ----

    As I said, when a unit leaves a region it works fine, but when he is in the region and die it wont remove.

    Posted in: Triggers
  • 0

    posted a message on Problem with negative value of regions (unit leave region)

    Hey. I got a problem with my leaderboard. I have a row to show how many units thats in a region. Let's say theres 12 units in the region and it will show 12 on the board, and if one more enter it goes up to 13. If he leaves it goes back to 12. But if he dies, it wont negative a value, so it will still show 13 and if he revive and go to the region again it will add again and so on. I've tried to add another trigger that says that if a unit dies in the region it will negative the number too but didnt work. Sorry if its hard to understand.

    Posted in: Triggers
  • 0

    posted a message on Moving Unit that doesnt exist om the Map from the start. And erasing timer window.

    Thanks alot all! Finally got it to work with some "cheating".

    Posted in: Triggers
  • 0

    posted a message on Moving Unit that doesnt exist om the Map from the start. And erasing timer window.

    I get the move to work now, thnx! But now I wanna add if the unit have died along that timer it should create the same unit the player picked in the dialog in the matchstart.

    unit choose:

    ..........alot of if-then-do actions

    ..........camera pan

    ..........unit group - add (last created unit) for player 1 to p1

    timer stop:

    .....if-then-do

    ..........if: owner of (unit 1 from p1) = 1

    .............and condition: (unit 1 from p1 is alive = true)

    ..........then: unit - move (unit 1 from p1) to regionX

    ..................camera pan

    ..........else: unit - create 1 (unit type of (unit 1 from p1)) for player 1 at regionX

    ..................camera pan

    Can someone help me with what im doin wrong? As I said, move works fine now but not create :(

    Posted in: Triggers
  • 0

    posted a message on Moving Unit that doesnt exist om the Map from the start. And erasing timer window.

    @Ahli634: Go

    FInally got it to work! Thnx. But now to another problem :) If there is 2 or more players? How do I make em pick a unit to their group?

    Posted in: Triggers
  • 0

    posted a message on Moving Unit that doesnt exist om the Map from the start. And erasing timer window.

    I got the timer to work. The unit to region wont work tho. When the game start I make a timer for x sec and set action to create a marine for me. When the timer is 0 I do a if-then-else action. if - my last created unit is still alive. Then - move to region X else - create last created unit in region X

    hmm, dunno whats wrong!? Please help me! :)

    edit: fixed the dialog thing, but the unit move still bugs me :(

    Posted in: Triggers
  • 0

    posted a message on Moving Unit that doesnt exist om the Map from the start. And erasing timer window.

    @Ahli634: Go

    Thank you for a fast reply! So i have to make a new region over the whole map and choose condotions like player1, got ability stimpack etc?

    About the timer. Ive made global, but under the show/hide timer bar and destroy timer bar i cant choose any specific timer. All i got is last created timer. And cause the timer have stoped it cant find last created timer.

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