My falling bombs trigger is showing many inconsistencies

Chilling

New Member
Reaction score
1
Trigger:
  • Phoenix Bombs
    • Events
      • Time - Every 3.01 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Fireball for Player 12 (Brown) at (Position of Phoenix 0021 <gen>) facing Default building facing degrees
      • For each (Integer A) from 1 to 50, do (Actions)
        • Loop - Actions
          • Animation - Change (Last created unit) flying height to ((Current flying height of (Last created unit)) - 10.00) at 0.00
          • Wait 0.06 seconds
      • Unit - Kill (Last created unit)

So, what I'm trying to do is make these 'fireballs' spawn every 3 seconds at the phoenix's position, and then smoothly fall to the floor, and then die. (I'm going to trigger it to pick every unit within 200 of it and kill them, instead of killing itself, but that's not necessary for now). So, 0.06 seconds x 50 would be 3 seconds, right? So it should hit the floor over 3 seconds, and then kill itself. Or so it seems...

But strangely, some of the fireballs only go half of the way, hit the floor but don't explode, and so on, though some of them work properly. It's very inconsistant.

Anyone know what's going on?
 
Increase the event time, see what happens.

And, as far as I know, waits and time isn't exact down to the decimal.
 
You can. Use more functions, one will be executed every 3.01 and second every 0.06. It will be more difficult than with Waits, but it won't cause problems.

Or just learn Jass and make it easily with timers. This is probably the best solution :)
 
Trigger:
  • Phoenix Bombs
    • Events
      • Time - Every 3.01 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Fireball for Player 12 (Brown) at (Position of Phoenix 0021 <gen>) facing Default building facing degrees
      • Set Firebal_var = Last Created Unit
      • Unit - Add expiration time to (Firebal_var) (3sec)
      • For each (Integer A) from 1 to 50, do (Actions)
        • Loop - Actions
          • Animation - Change (Firebal_var) flying height to ((Current flying height of (Firebal_var)) - 10.00) at 0.00


EDIT: it's hand writen
 
Sorry, but I'm going to ask a new question in my thread, because a whole new thread would be rather unnecessary. Say we have a trigger like mine except with a For Each Integer A from 1 to 50 with a simple action, like spawn 1 footman, and a 2 second Wait, with a periodic event of every 4 seconds. Will the For Each Integer A continue to go its remaining 48 times even if the trigger is going on again? In other words, can a trigger have more than one instance going on at the same time?
 
Trigger:
  • Phoenix Bombs
    • Events
      • Time - Every 3.01 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Fireball for Player 12 (Brown) at (Position of Phoenix 0021 <gen>) facing Default building facing degrees
      • Set Firebal_var = Last Created Unit
      • Unit - Add expiration time to (Firebal_var) (3sec)
      • For each (Integer A) from 1 to 50, do (Actions)
        • Loop - Actions
          • Animation - Change (Firebal_var) flying height to ((Current flying height of (Firebal_var)) - 10.00) at 0.00


EDIT: it's hand writen

Thank you! I never knew you could add an expiration timer. That can help me with a completely different thing I was doing a few days ago, too.
Now I am just using a dummy unit with the Kaboom! skill and the Inferno ability as its model file.
And I removed the phoenix and just made them spawn in random regions.

Thanks to everyone who replied, I really appreciate the help!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top