• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] [GUI] Need help with a medium-difficulty triggered spell!

Status
Not open for further replies.
Level 3
Joined
Jul 27, 2011
Messages
27
Hello hive!

I am currently working on a AoS map that will use a hero selection system that only allows one hero of each type per game, meaning that the spell doesn't need to be MUI. (Although it would be good if they were, so I could add a gamemode which allows duplicate heroes without changing the spell).

Name: Fireball (Temporary name, will change this as soon as I comes up with a better one).
Tooltip: Throws a fiery ball of fire towards a targeted location. (Again, this is also temporary).
Description: The caster hurls a fireball towards a targeted location and deals ((((50 x Level of Ability of Unit) + 50) + (Intelligence of Caster x 0.8)) in an area.


My current triggers:

1)
Name: FB Cast

Events
A Unit Finishes casting an ability

Conditions
Ability being cast = Fireball

Actions
Unit - Create 1 Dummy unit at position of caster
Unit - Set movement speed of last created unit to 800 (Missle speed of Fireball's projectile)
Unit - Order last created unit to move to target point of ability being cast
Set variable - Set FB_DummyUnit = Last created unit
Rect - Center FB TargetPoint on Target point of ability being cast
Trigger - Turn on FB DummyEntersArea

2)
Name: FB DummyEntersArea

Events
A unit enters FB TargetPoint

Conditions
Triggering Unit = FB_DummyUnit

Actions
This is the part I need help with!
I need something that deals ((((50 x Level of Ability of Unit) + 50) + (Intelligence of Caster x 0.8)) damage to each enemy unit in a range of 200 of target point of ability being cast.

If anyone could help me with this I would be forever thankful!

Thank you //Crucial
 
Level 11
Joined
Sep 14, 2009
Messages
284
Actions
This is the part I need help with!
I need something that deals ((((50 x Level of Ability of Unit) + 50) + (Intelligence of Caster x 0.8)) damage to each enemy unit in a range of 200 of target point of ability being cast.

  • Actions
  • Set Temp_Group = Units within 200 of FB Target Point matching (Matching unit belongs to an enemy of owner of (Casting unit variable).
  • Unit Group - Pick every Unit in Temp_Group and do Actions:
  • Unit - Cuase (Casting unit variable) to damage (Picked Unit) dealing ((((50 x Level of Ability of Unit) + 50) + (Intelligence of (Casting unit variable) x 0.8)) of damage type X and attack type X.
  • Custom Script: call DestroyGroup (udg_Temp_Group)
 
Status
Not open for further replies.
Top