Thunder_Lord
New Member
- Reaction score
- 0
Alright ive spent the past couple hours working on a "Mepo" hero. if you have played dota you know that mepo is a hero that creates clones of itself and when one of the clones die, the original and the other clones die...My hero (Currently named mepo) summons a "clone" a different unit currently named "Mepo Dark Side" via an ability named "Summon Dark Side". also i want the unit once it has summoned the dark side not to be able to cast the ability again untill it has died. In my map up to 8 players could potentially summon several of these hero's so... i made these 4 triggers to mainpulate the variables Mepoarray (unit array), mepodarkside (unit array), and playermeponumber (Integer array)...
Dark Side Cast
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoned unit)) Equal to Mepo Dark Side
Actions
Unit - Remove Summon Dark Side from (Summoning unit)
Hero - Set (Summoned unit) experience to (Hero experience of (Summoning unit)), Show level-up graphics
Hero - Disable experience gain for (Summoned unit)
UnitABspacing
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to Mepo
Actions
Set Playermeponumber[(Player number of (Owner of (Trained unit)))] = (Playermeponumber[(Player number of (Owner of (Trained unit)))] + 1)
Set mepoarray[(((Player number of (Owner of (Trained unit))) x 100) + Playermeponumber[(Player number of (Owner of (Trained unit)))])] = (Trained unit)
UnitABspacing Copy
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Triggering unit)) Equal to Mepo
(Unit-type of (Summoned unit)) Equal to Mepo Dark Side
Actions
Set mepodarkside[(((Player number of (Owner of (Triggering unit))) x 100) + Playermeponumber[(Player number of (Owner of (Triggering unit)))])] = (Summoned unit)
UnitABspacing Copy Copy
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
mepodarkside[(((Player number of (Owner of (Dying unit))) x 100) + Playermeponumber[(Player number of (Owner of (Dying unit)))])] Equal to (Dying unit)
(Dying unit) Equal to mepoarray[(((Player number of (Owner of (Dying unit))) x 100) + Playermeponumber[(Player number of (Owner of (Dying unit)))])]
Actions
Unit - Add Summon Dark Side to mepoarray[(((Player number of (Owner of (Dying unit))) x 100) + (Player number of (Owner of (Dying unit))))]
Unit - Kill mepoarray[(((Player number of (Owner of (Dying unit))) x 100) + Playermeponumber[(Player number of (Owner of (Dying unit)))])]
Unit - Remove mepodarkside[(((Player number of (Owner of (Dying unit))) x 100) + Playermeponumber[(Player number of (Owner of (Dying unit)))])] from the game
any help would be greatly appreciated
Dark Side Cast
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoned unit)) Equal to Mepo Dark Side
Actions
Unit - Remove Summon Dark Side from (Summoning unit)
Hero - Set (Summoned unit) experience to (Hero experience of (Summoning unit)), Show level-up graphics
Hero - Disable experience gain for (Summoned unit)
UnitABspacing
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to Mepo
Actions
Set Playermeponumber[(Player number of (Owner of (Trained unit)))] = (Playermeponumber[(Player number of (Owner of (Trained unit)))] + 1)
Set mepoarray[(((Player number of (Owner of (Trained unit))) x 100) + Playermeponumber[(Player number of (Owner of (Trained unit)))])] = (Trained unit)
UnitABspacing Copy
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Triggering unit)) Equal to Mepo
(Unit-type of (Summoned unit)) Equal to Mepo Dark Side
Actions
Set mepodarkside[(((Player number of (Owner of (Triggering unit))) x 100) + Playermeponumber[(Player number of (Owner of (Triggering unit)))])] = (Summoned unit)
UnitABspacing Copy Copy
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
mepodarkside[(((Player number of (Owner of (Dying unit))) x 100) + Playermeponumber[(Player number of (Owner of (Dying unit)))])] Equal to (Dying unit)
(Dying unit) Equal to mepoarray[(((Player number of (Owner of (Dying unit))) x 100) + Playermeponumber[(Player number of (Owner of (Dying unit)))])]
Actions
Unit - Add Summon Dark Side to mepoarray[(((Player number of (Owner of (Dying unit))) x 100) + (Player number of (Owner of (Dying unit))))]
Unit - Kill mepoarray[(((Player number of (Owner of (Dying unit))) x 100) + Playermeponumber[(Player number of (Owner of (Dying unit)))])]
Unit - Remove mepodarkside[(((Player number of (Owner of (Dying unit))) x 100) + Playermeponumber[(Player number of (Owner of (Dying unit)))])] from the game
any help would be greatly appreciated