• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] How can i make this work correctly??

Status
Not open for further replies.
Level 7
Joined
Jul 12, 2008
Messages
295
I don't see whats problem? I think its perfectly fine but doesn't spawn the shockwaves right
 
Level 24
Joined
Jun 16, 2008
Messages
1,939
i post the two triggers:

number one:

  • War Thunder Cast
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) equal to War Thunder
    • Actions
      • Set Caster = (Triggering unit)
      • Set VarLoc_01 = (Position of (Triggering unit))
      • Set VarReal = 0.00
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Set VarLoc_02[(Integer A)] = (VarLoc_01 offset by 100.00 towards VarReal degrees)
          • Unit - Create 1 Arbeiter for (Owner of Caster) at VarLoc_01 facing default building facing degrees
          • Unit - Turn collision for (Last created unit) Off
          • Unit - Add Schockwelle Dummy to (Last created unit)
          • Unit - Set level of Schockwelle Dummy for (Last created unit) to (Level of War Thunder for (Triggering unit))
          • Unit - Order (Last created unit) to Orc-Tauren-Häuptling - 'Schockwelle' VarLoc_02[(Integer A)]
          • Set VarReal = (VarReal + (360.00 / 8.00))
          • Unit - Add a 1.00 second Default expiration timer to (Last created unit)
          • Custom script: call RemoveLocation(udg_VarLoc_02[bj_forLoopAIndex])
      • Wait 0.50 seconds
      • Unitt - Create 1 Arbeiter for (Owner of Caster) at VarLoc_01 facing default building facing degrees
      • Unit - Turn collision for (Last created unit) Off
      • Unit - Add Earthquake Dummy to (Last created unit)
      • Unit - Set level of Earthquake Dummy for (Last created unit) to (Level of War Thunder for (Triggering unit))
      • Unit - Order (Last created unit) to Orc-FarSeer - 'Earthquake' VarLoc_01
      • Unit - Add a ((((Real((Level of War Thunder for Caster))) - 1.00) x 2.00) + 3.00) second Default expiration timer to (Last created unit)
      • Set EarthquakeGroup = (Units within 900.00 of VarLoc_01)
      • Set Integer = 0
      • Triggerr - Turn on Earthquake dmg <gen>
      • Custom script: call RemoveLocation(udg_VarLoc_01)
      • Custom script: set udg_Caster = null
      • Custom script: set udg_VarReal = 0

first problem: the waves are not cast in every 8 dircetions from the VarLoc_01 while they do for the flamestrike spell (look at the map)

  • Earthquake dmg
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unitgroup - Pick every unit in EarthquakeGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause Caster to damage (Picked unit), dealing (30.00 + (((Real((Level of War Thunder for Caster))) - 1.00) x 20.00)) damage of attack type Chaos and damage type Godly
      • Set Integer = (Integer + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • Integer equal to ((((Level of War Thunder for Caster) - 1) x 2) + 3)
        • 'THEN'-Actions
          • Custom script: call DestroyGroup(udg_EarthquakeGroup)
          • Custom script: call RemoveLocation(udg_VarLoc_01)
          • Set Integer = 0
          • Trigger - Turn off (This trigger)
        • 'ELSE'-Actions

2nd problem: no dmg over time is dealt
 
Status
Not open for further replies.
Top