• 🏆 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!

Nova

Status
Not open for further replies.
I made this trigger:
  • Nova
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Novaaa
    • Actions
      • Set TempLoc1 = (Position of (Triggering unit))
      • Set TempLoc1_Cast = ((Position of (Triggering unit)) offset by 400.00 towards ((Real((Level of (Last created unit)))) + 36.00) degrees)
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for (Triggering player) at TempLoc1 facing Default building facing degrees
          • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
          • Unit - Add NowaWave to (Last created unit)
          • Unit - Set level of NowaWave for (Last created unit) to (Level of Novaaa for (Triggering unit))
          • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave TempLoc1_Cast
          • Custom script: call RemoveLocation (udg_TempLoc1)
          • Custom script: call RemoveLocation (udg_TempLoc1_Cast)
And it dont works, only one dummy casts it...

How do i set the variable that each dummy cast shockwave position of triggering unit 36(something like that(10 dummies +36 degrees =360 degrees))

i will probably need a string or something, so if someone knows how would i do this spell in GUI not JASS.

HF -BR-
 
Level 13
Joined
Mar 16, 2008
Messages
941
You set the offset one time in one direction, try it like this

  • Nova
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Novaaa
  • Actions
    • Set TempLoc1 = (Position of (Triggering unit))
    • For each (Integer A) from 1 to 10, do (Actions)
      • Loop - Actions
      • Unit - Create 1 Dummy for (Triggering player) at TempLoc1 facing Default building facing degrees
      • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
      • Unit - Add NowaWave to (Last created unit)
      • Set TempLoc1_Cast = ((Position of (Triggering unit)) offset by 400.00 towards ((Real((Level of (Last created unit)))) + 36.00*Integer A) degrees)
      • Unit - Set level of NowaWave for (Last created unit) to (Level of Novaaa for (Triggering unit))
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave TempLoc1_Cast
      • Custom script: call RemoveLocation (udg_TempLoc1)
    • Custom script: call RemoveLocation (udg_TempLoc1_Cast)
 
Level 9
Joined
May 27, 2006
Messages
498
Arh, Justify, you were faster by seconds ;P

But that doesn't mean you didn't do any mistake in your trigger: you're removing TempLoc1 instead of TempLoc1_cast at the end of every loop, so your trigger will create only one dummy.
 
Last edited:
Status
Not open for further replies.
Top