Why doesn't this work?

Kazuga

Let the game begin...
Reaction score
110
Hmmmmmmm... Tried making a trigger that creates the dummy each 0.03 second and then the condition "if distance between (caster) and (last created dummy). Heh should never had tested it, the condition didn't work so it just continiued to create dummies each 0.03 second untill the computer got stuck and coudn't do anything at all... How to solve this? Have no idea what the trigger should look like (as you can see from the result above:p).
 

Chocobo

White-Flower
Reaction score
409
Code:
Beam of justice
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Beam of justice 
    Actions
        Set BeamCaster = (Triggering unit)
        Set BeamCasterPos = (Position of BeamCaster)
        Unit - Pause BeamCaster
        Floating Text - Create floating text that reads Charging energy... at BeamCasterPos with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
        Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
        Floating Text - Change (Last created floating text): Disable permanence
        Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
        Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
        Wait 1.50 seconds
[I]        For Each (Integer A) from 1 to 7, Do Actions
              Loop - Actions
                   Set BeamCasterPos = (BeamCasterPos offset by ((Integer A) x 100.00) towards (Facing of BeamCaster) degrees)
                   Unit - Create 1 Beam of justice dummy for (Owner of BeamCaster) at BeamCasterPos facing Default building facing degrees
                   Unit - Set level of Beam of justice (dummy)  for (Last created unit) to (Level of Beam of justice  for BeamCaster)
                   Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
                   Wait 0.00 seconds of game-time[/I]
        Unit - Unpause BeamCaster

It's maybe related with delay between each beam. Try to find how long the beam should take to go to the target point ; for instance your beam has a travelling speed of 3333.33 (in my trigger with the loop, it has a travelling speed of 5882.35) ; or you can use timers, they are more accurate than wait actions.
Note : Your trigger leaks a bit and you are using variables that are not used once in the trigger in the loop.

>you cant wait 0.03 seconds, any wait action below 0.27 seconds will automatically wait 0.27, regardless of what you want it to do.
Wrong. You can wait less than that with Wait 0.00 seconds (does a 0.10 second wait time) and Wait 0.00 seconds of game-time (does a 0.017 second of wait time).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top