Nova Wave

Discussion in 'World Editor Help' started by HydraRancher, Sep 24, 2009.

  1. HydraRancher

    HydraRancher Truth begins in lies

    Ratings:
    +197 / 0 / -0
    Trigger:
    • Nova Wave
      • Events
        • Unit - A unit Starts the effect of an ability
      • Conditions
        • (Ability being cast) Equal to Nova Wave
      • Actions
        • Unit - Pause (Triggering unit)
        • For each (Integer A) from 1 to (2 x (3 + (Level of Nova Wave for (Triggering unit)))), do (Actions)
          • Loop - Actions
            • Set Temp_Point = (Position of (Triggering unit))
            • Set Temp_Point_2 = (Temp_Point offset by (100.00 x (Real((Integer A)))) towards (Facing of (Triggering unit)) degrees)
            • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temp_Point_2 facing Default building facing degrees
            • Unit - Set level of Frost Nova for (Last created unit) to (Level of Nova Wave for (Triggering unit))
            • Unit - Order (Last created unit) to Undead Lich - Frost Nova (Last created unit)
            • Custom script: call RemoveLocation (udg_Temp_Point_2)
            • Custom script: call RemoveLocation (udg_Temp_Point)
            • Wait 0.10 seconds
        • Unit - Unpause (Triggering unit)


    Here is my home-made spell, the only problem is, I dont want to pause the unit, but if I DONT pause it, the unit can change the way its facing and re-direct the missile, how do I make it not pause the unit, but be MUI without using Custom Value.

    EDIT: New problem, people attack my footman dummy, can u fix this?
     
  2. Ayanami

    Ayanami 칼리

    Ratings:
    +287 / 0 / -0
    I really discourage you to use waits in loops. Anyways, maybe this will work.

    Trigger:
    • Events
      • Unit - A unit Starts the effect of an ability
      • Conditions
        • (Ability being cast) Equal to Nova Wave
      • Actions
        • Set RealAngle = (Facing of (Triggering unit))
        • For each (Integer A) from 1 to (2 x (3 + (Level of Nova Wave for (Triggering unit)))), do (Actions)
          • Loop - Actions
            • Set Temp_Point = (Position of (Triggering unit))
            • Set Temp_Point_2 = (Temp_Point offset by (100.00 x (Real((Integer A)))) towards RealAngle
            • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temp_Point_2 facing Default building facing degrees
            • Unit - Set level of Frost Nova for (Last created unit) to (Level of Nova Wave for (Triggering unit))
            • Unit - Order (Last created unit) to Undead Lich - Frost Nova (Last created unit)
            • Custom script: call RemoveLocation (udg_Temp_Point_2)
            • Custom script: call RemoveLocation (udg_Temp_Point)
            • Wait 0.10 seconds


    Glenphir
     
  3. HydraRancher

    HydraRancher Truth begins in lies

    Ratings:
    +197 / 0 / -0
    Sadly that trigger is not MUI.

    Have you got a better Idea than using waits in loops?
     
  4. crazyfanatic

    crazyfanatic New Member

    Ratings:
    +20 / 0 / -0
    make RealAngle a real with array and set the array equal to the user player number. BTW here you need MUI only if you think 2 users are going to cast it at the exact 1/100 of the second, MUI is used mainly for continuously working triggers.
     
  5. HydraRancher

    HydraRancher Truth begins in lies

    Ratings:
    +197 / 0 / -0
    I am not stupid. :)

    That would be MPI, I will only do that if I cant do anything else.

    Not really.
     
  6. Ayanami

    Ayanami 칼리

    Ratings:
    +287 / 0 / -0
    Yes I do have a better idea, although it might be a bit lengthier than your current trigger. I'll try making the spell ASAP. But note, it uses Custom Value.

    Edit

    Uploaded the map.
     
  7. HydraRancher

    HydraRancher Truth begins in lies

    Ratings:
    +197 / 0 / -0
    I can very easily use custom value, but I dont want to, I want to save it for a more important use.
     

Share This Page