• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need Help with auto cast again 0.o (New type of question)

Status
Not open for further replies.
Level 14
Joined
Jul 1, 2008
Messages
1,314
you have to trigger this by yourself.

If you alraeady tried to make it autocast, you should have recognized, that its impossible in the object editor like this.

You could use a dummy-Spell like this, to set boolean var = true/false and then use a periodic trigger to execute your auto-phenix fire
  • Event - A unit casts a spell
    • Conditions - Ability being cast equal to "DummySpell"
    • Actions - IF THEN ELSE
    • if YourBoolean = false then
      • set YourBoolean = true
    • else
      • set YourBoolean = false
Your Periodic Trigger should have the condition YourBoolean = true

I hope this helps you, sry for the jass-Style, but i think you can understand
 
Base it off an ability with auto-cast, e.g. Fairy Fire.
And if Fairy Fire is casted, create a dummy who actually casts the Flame Strike.

Like this:
  • FLAMESTRIKE
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Flame Strike (Auto-cast)
    • Actions
      • Custom script: local location udg_TempPoint
      • Set TempPoint = (Position of (Triggering unit))
      • Unit - Create 1 dummy for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
      • Set TempPoint = (Position of (Target unit of ability being cast))
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Human Blood Mage - Flame Strike TempPoint
      • Custom script: call RemoveLocation( udg_TempPoint )
Or use Orb of Lightning (New), but this triggers only if u attack.
 
Last edited:
Level 7
Joined
Jul 9, 2007
Messages
306
thanks for the help, and dont worry im good with triggers, but i had no idea where to start or how to do it...

i'll try both and ill let you guys know if either wokr well or not
 
Status
Not open for further replies.
Top