- Joined
- Oct 8, 2005
- Messages
- 409
I found this spell here: http://www.hiveworkshop.com/resources_new/spells/299/
It was not what I was looking for, but it was close enough to edit a bit...
The original spell was a land mine that detected hero movement a shot bolts at enemies when they came too close to it.
What I want is a trap that is remote detonated. So far, this is what I want the spell to do:
1) a summoning spell is casted
2) the spell summons a unit with the Locust spell, and a custom fireshot spell
3) when the spell is casted, a detonate spell is added to the caster's spell list
4) when the detonate spell is casted the summoned unit targets random units and casts fire shot on them
It was not what I was looking for, but it was close enough to edit a bit...
The original spell was a land mine that detected hero movement a shot bolts at enemies when they came too close to it.
What I want is a trap that is remote detonated. So far, this is what I want the spell to do:
1) a summoning spell is casted
2) the spell summons a unit with the Locust spell, and a custom fireshot spell
3) when the spell is casted, a detonate spell is added to the caster's spell list
4) when the detonate spell is casted the summoned unit targets random units and casts fire shot on them
-
Firetrap summon
-
Events
- Unit - A unit Spawns a summoned unit
-
Conditions
- (Unit-type of (Summoned unit)) Equal to Flametrap (Level 1)
-
Actions
- Unit - Kill Flametrap_unit[(Player number of (Triggering player))]
- Set Flametrap_unit[(Player number of (Owner of (Summoning unit)))] = (Summoned unit)
- Unit - Set level of Firetrap Shot for (Summoned unit) to (Level of Firetrap for (Summoning unit))
- Unit - Remove Detonate from (Summoning unit)
- Unit - Add Detonate to (Summoning unit)
-
Events
-
Firetrap fire
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Detonate
-
Actions
- Unit - Remove Detonate from (Casting unit)
- Unit Group - Remove all units from Fire_Trap_Vic_UG[(Player number of (Owner of (Casting unit)))]
- Set Fire_Trap_Vic_UG[(Player number of (Owner of (Casting unit)))] = (Units in (Region centered at (Position of Flametrap_unit[(Player number of (Owner of (Casting unit)))]) with size (600.00, 600.00)))
-
For each (Integer FT_int[(Player number of (Owner of (Casting unit)))]) from 1 to 10, do (Actions)
-
Loop - Actions
- Unit - Order Flametrap_unit[(Player number of (Owner of (Casting unit)))] to Human Mountain King - Storm Bolt (Random unit from Fire_Trap_Vic_UG[(Player number of (Owner of (Casting unit)))])
- Wait 0.50 seconds
-
Loop - Actions
- Wait 1.00 seconds
- Unit - Kill Flametrap_unit[(Player number of (Owner of (Casting unit)))]
-
Events