Storm,Earth and Fire without removing caster

DuelPlayer

Member
Reaction score
21
Use a dummy to cast storm earth fire and set the storm earth fire as a cast only spell for the caster
 

Gwafu

Active Member
Reaction score
12
Trigger the spell.
Base it off channel (instant-cast)
Then when it is casted, create 3 dummy units which have the model file of the missiles of the 3 summoned pandas.
Then move them to 3 random angles/points.
When they reach it, remove them.
Then create the heroes (or units, I forgot).

Blah.
 

madd_999

New Member
Reaction score
14
you're trigger will look something like this:

Trigger:
  • strom earth and fire
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Storm, Earth, And Fire (Dummy)
    • Actions
      • Set caster_point = (Position of (Casting unit))
      • Unit - Create 1 Footman for (Owner of (Casting unit)) at caster_point facing Default building facing degrees
      • Unit - Add Storm, Earth, And Fire to (Last created unit)
      • Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Storm, Earth, And Fire
      • Custom script: Custom script:call RemoveLocation(udg_caster_point)


the only thing I can't figure out yet is how to remove the dummy after the storm earth and fire is finished. don't know how a expiration timer reacts on storm earth and fire, and I also don't know if the unit will leak.
 

Soldier965

New Member
Reaction score
0
what happens if the skill can be upgraded/leveled up?
does the trigger cast the current lvled one or do i have have to make a second trigger
 

madd_999

New Member
Reaction score
14
sorry completely forgot about that..

put this line between unit - add.. and unit - order.

Trigger:
  • Unit - Set level of Storm, Earth, And Fire for (Last created unit) to (Level of Storm, Earth, And Fire (Dummy) for (Casting unit))
 

jrhetf4xb

Member
Reaction score
12
Well, true... But all item summoning spells can summon up to 2 units (sadly it's not a solution for you). Dark Portal can summon different units but it's point targeted. I guess you'll have to stick with triggering it.
 

Carnerox

The one and only.
Reaction score
84
If you still need this, here you go.
It creates the Pandas and removes the dummy unit, and I also made it in GUI, MUI, leak-less, lag-less, yadayada.

Trigger:
  • Storm Earth And Fire
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) YourHeroSpell
    • Actions
      • -------- Casting unit. --------
      • Custom script: local unit u = GetTriggerUnit()
      • -------- Setting the var. for the dummy unit. --------
      • Custom script: local unit d
      • -------- Owning player of the caster. --------
      • Custom script: local player p = GetOwningPlayer(u)
      • -------- Position of the caster. --------
      • Custom script: local location loc = GetUnitLoc(u)
      • -------- The level of the ability the caster has. To add the correct rawcode do Cntrl + d and find your spell and replace 'ANef' with the correct raw code and make sure to add ' ' at the front and end of the rawcode. --------
      • Custom script: local integer l = GetUnitAbilityLevel(u, 'ANef')
      • -------- Creates the Dummy Caster at the location we set above. --------
      • Unit - Create 1 Dummy for (p) at (loc) facing Default building facing (270.0) degrees
      • -------- Setting the "d" var. as the last created unit. --------
      • Custom script: set d = GetLastCreatedUnit()
      • -------- Adding a duration to the dummy unit so it wont sit in the map forever. --------
      • Unit - Add a 30.00 second Generic expiration timer to (d)
      • -------- Adding the ability to create the 3 "pandas". --------
      • Unit - Add Storm, Earth, And Fire to (d)
      • -------- Setting the level to create the pandas to the correct level, unless you don't need this then don't add. --------
      • Unit - Set level of Animate Dead for (d) to (l)
      • -------- Order the dummy unit to use storm, earth, fire. --------
      • Unit - Order (d) to Neutral Pandaren Brewmaster - Storm, Earth, And Fire
      • -------- Removing the location and nulling some of the set var. to prevent leaks n such. --------
      • Custom script: call RemoveLocation( loc )
      • Custom script: set u=null
      • Custom script: set d=null
      • Custom script: set p=null
      • Custom script: set loc=null
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top