- Joined
- Dec 16, 2007
- Messages
- 252
I made a spell based of Dota's Razor The Lightning Revetant's ulti. I made it as a passive skill with 10% chance every 2 seconds to summon a lightning bolt and damage random units whitin 800 range from the hero that have this skill. But it's not working. The trigger looks like this :
Lightning Field Learn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to TRIGSTR_411 TRIGSTR_412
Actions
Set ThunderStormHero = (Learning Hero)
Trigger - Turn on Lightning Field Damage <gen>
Lightning Field Damage
Events
Time - Every 2.00 seconds of game time
Conditions
(Random integer number between 1 and 10) Less than or equal to 10
Actions
Set ThunderStormGroup = (Units within 800.00 of (Position of ThunderStormHero) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)))
Set ThunderStormUnit = (Random 1 units from ThunderStormGroup)
Unit Group - Pick every unit in ThunderStormUnit and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
Unit - Cause ThunderStormHero to damage (Picked unit), dealing 200.00 damage of attack type Spells and damage type Lightning
Custom script: call DestroyGroup(udg_ThunderStormGroup)
Custom script: call DestroyGroup(udg_ThunderStormUnit)
As you noticed, of some reasons all of my custom units/abilities names have turnt to TRIGSTR_Number..
Please tell me what's wrong with the trigger and please, if you got a solution for the TRIGSTR problem tell me that too.
Lightning Field Learn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to TRIGSTR_411 TRIGSTR_412
Actions
Set ThunderStormHero = (Learning Hero)
Trigger - Turn on Lightning Field Damage <gen>
Lightning Field Damage
Events
Time - Every 2.00 seconds of game time
Conditions
(Random integer number between 1 and 10) Less than or equal to 10
Actions
Set ThunderStormGroup = (Units within 800.00 of (Position of ThunderStormHero) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)))
Set ThunderStormUnit = (Random 1 units from ThunderStormGroup)
Unit Group - Pick every unit in ThunderStormUnit and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
Unit - Cause ThunderStormHero to damage (Picked unit), dealing 200.00 damage of attack type Spells and damage type Lightning
Custom script: call DestroyGroup(udg_ThunderStormGroup)
Custom script: call DestroyGroup(udg_ThunderStormUnit)
As you noticed, of some reasons all of my custom units/abilities names have turnt to TRIGSTR_Number..
Please tell me what's wrong with the trigger and please, if you got a solution for the TRIGSTR problem tell me that too.