Autocast ability ?

bLu3_eYeS

New Member
Reaction score
31
Hey. How do you make such a ability.For example , lets say i create a War Stomp spell for a unit.How do i make it autocast.For example , when he is attacked or has enemyes arround him he will cast it.
 

canons200

New Member
Reaction score
50
i believe it wont work because the autocast ability is for those right-click-ability such frost arrow or searing arrow. Use trigger
 

canons200

New Member
Reaction score
50
is it spell? if so,

event a unit attacked/GDD
condition attacked unit equal to your unit AND attacking unit equal to enemy of attacked unit is true
action order your unit to warstomp(unit action, order unit with no target)
 

Chaos_Knight

New Member
Reaction score
39
This is ashame. But i hope it works. I dont had enough time to make GDD so here the awful comes.

Trigger:
  • Trigger For bLuE_EyEs
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of War Stomp for (Attacked unit)) Greater than 0
    • Actions
      • Unit - Order (Attacked unit) to Orc Tauren Chieftain - War Stomp


This wont work. I just gave you the idea.
 

Pantat

New Member
Reaction score
0
Event
A unit is attacked
Condition
(Level of (war stomp)) for attacking unit greater than 0
Action
Set AC_Caster = attacking unit
Set AC_Owner = Owner of AC_Caster
Set AC_Caster_location = location of attacking unit
Set AC_Level = (Level of (war stomp)) for AC_Caster
Set AC_Chance = 4 * (real(AC_Level))
Set AC_Skill = War Stomp
--------------------------------------------------------------------------
If all condition true do then other else
Condition
(Random real number between (1 and 100)) greater than or equal to AC_Chance
Then
Create 1 dummy for AC_Owner at AC_Caster_Location facing default building degrees
Add AC_Skill to last created unit
Set level of AC_Skill of last created unit to AC_Level
Order Last created unit to chieftain - war stomp
Add generic time 3 second to last created unit
Else
--------------------------------------------------------------------------
call RemoveLocation (udg_AC_Caster_Location)





I'm sorry I ol at my cell phone rite now so I can't use trigger.. And I'm just trying to help.. I think my trigger will work.. But if I make false sry I'm still a newbie mapperz.. --"
 

Gwafu

Active Member
Reaction score
12
Well, base the ability into the Frenzy (the one used by the pigs summoned by the Beastmaster). Removed the effects. Make it do nothing.

Trigger:
  • Melee Initialization
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Auto Stomp
    • Actions
      • Set Temploc = (Position of (Triggering unit))
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temploc facing Default building facing degrees
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation(udg_Temploc)


The Dummy unit has a dummy warstomp ability btw
 
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