• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need help with a trigger, its buged...

Status
Not open for further replies.
Level 6
Joined
Apr 26, 2007
Messages
225
Here are my triggers:

  • creep moveaway
    • Events
      • Unit - A unit enters creep moving <gen>
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Entering unit)) Equal to Bourreau
          • (Unit-type of (Entering unit)) Equal to Assassin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 2) Equal to 1
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
            • Then - Actions
              • Unit - Move (Entering unit) instantly to (Random point in creep area2 <gen>)
            • Else - Actions
              • Unit - Move (Entering unit) instantly to (Random point in creep area4 <gen>)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
            • Then - Actions
              • Unit - Move (Entering unit) instantly to (Random point in creep area3 <gen>)
            • Else - Actions
              • Unit - Move (Entering unit) instantly to (Random point in creep area1 <gen>)
  • creep area1
    • Events
      • Unit - A unit enters creep area1 <gen>
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Entering unit)) Equal to Bourreau
          • (Unit-type of (Entering unit)) Equal to Assassin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 2) Equal to 1
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
            • Then - Actions
              • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area2 <gen>)
            • Then - Actions
              • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area4 <gen>)
        • Then - Actions
          • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area3 <gen>)
  • creep area2
    • Events
      • Unit - A unit enters creep area2 <gen>
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Entering unit)) Equal to Bourreau
          • (Unit-type of (Entering unit)) Equal to Assassin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 2) Equal to 1
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
            • Then - Actions
              • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area1 <gen>)
            • Then - Actions
              • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area4 <gen>)
        • Then - Actions
          • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area3 <gen>)
  • creep area3
    • Events
      • Unit - A unit enters creep area3 <gen>
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Entering unit)) Equal to Bourreau
          • (Unit-type of (Entering unit)) Equal to Assassin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 2) Equal to 1
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Egal à 1
            • Then - Actions
              • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area2 <gen>)
            • Then - Actions
              • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area4 <gen>)
        • Then - Actions
          • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area1 <gen>)
  • creep area4
    • Events
      • Unit - A unit enters creep area4 <gen>
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Entering unit)) Equal to Bourreau
          • (Unit-type of (Entering unit)) Equal to Assassin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 2) Equal to 1
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
            • Then - Actions
              • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area2 <gen>)
            • Then - Actions
              • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area1 <gen>)
        • Then - Actions
          • Unit - Order (Entering unit) to Attaquer-Avancer vers (Random point in creep area3 <gen>)
i tried to translate from french to english but there is something i miss, the "attaquer-avancer" i dont know what is the funstion in english... well it traduce to "attack-move" or something like that but well here is what it do:

a creep enter "creep moving" then hes teleported to a random area between "creep area1" to "creep area4" then they are supose to go ar a random spot on a random area beterrn the 3 other "creep area" else then the one hes in. Well he is supose to move and attack enemy on hes way thats what "attacker-avancer" does but the problem is that the creep just move a litle around then he go back to hes initial posision when he got teleported from "creep moving"... thats the problem i REALY need to solve.
 
Level 6
Joined
Aug 24, 2007
Messages
173
it's a problem with original location. it's a creep, and they normally stop chasing things after a certain distance. the same applies for being ordered to move, sometimes. I forget what the field value is, but it's something to do with camp radius, i think. sorry, i haven't been in we in a few weeks.
 
Status
Not open for further replies.
Top