Hello everyone,
It has been a while and I am still working on my map. I have tried debugging this "bug" in my map for the past 2 hours and I cannot figure out why it is happening. I am here to ask you guys for help, because I know you are the best.
Problem:
(Sorry, my WE is in the Czech language and i cannot change it.)
I will try to transcript some of it, but most of it should be understandable even with the foreign language.
Events
Unit - Starts an effect of an ability
Conditions
..... equals to gROOT
..... does not equal to player11
..... does not equal to player10
Action
.......
.......Owner of matching unit equals to player10
......
Unitgroup.....
Loop action
...
...
... Unit order to Entangling roots (Picked unit)
// Ok that should do it.
I have
1 Dummy spell (for effect) gROOT
1 Dummy unit to cast the real spell Tester
1 Spell the dummy casts (Entangling roots, 5s)
I modified all the important things (Dummy unit has locust, invis, no collision, 100k mana, max rotation speed, etc.)
Dummy has the real spell on him which has 0 mana cost, instant cast and no requirements.
The above script (trigger) is the only part of my whole map where I do something with gROOT spell.
This trigger works good and does what I needed from it to do. BUT... It triggers itself again inside my other triggers even if I do not cast the gROOT spell....
Only one building has the gROOT spell and I only click it and cast it once in my map, but then when I am doing other stuff and other triggers are doing its part (Mostly manipulating unit groups, moving units, etc.) this spell (gROOT) triggers AGAIN!
I have no idea how this trigger can be run multiple times even though I click my spell only ONCE in my map.
Does that mean my condition of the trigger doesn't work somehow ?
I know it is kind of complicated, but I will appreciate any help from you.
Thanks a lot and have a nice holidays guys
It has been a while and I am still working on my map. I have tried debugging this "bug" in my map for the past 2 hours and I cannot figure out why it is happening. I am here to ask you guys for help, because I know you are the best.
Problem:
(Sorry, my WE is in the Czech language and i cannot change it.)
I will try to transcript some of it, but most of it should be understandable even with the foreign language.
Events
Unit - Starts an effect of an ability
Conditions
..... equals to gROOT
..... does not equal to player11
..... does not equal to player10
Action
.......
.......Owner of matching unit equals to player10
......
Unitgroup.....
Loop action
...
...
... Unit order to Entangling roots (Picked unit)
// Ok that should do it.
I have
1 Dummy spell (for effect) gROOT
1 Dummy unit to cast the real spell Tester
1 Spell the dummy casts (Entangling roots, 5s)
I modified all the important things (Dummy unit has locust, invis, no collision, 100k mana, max rotation speed, etc.)
Dummy has the real spell on him which has 0 mana cost, instant cast and no requirements.
The above script (trigger) is the only part of my whole map where I do something with gROOT spell.
This trigger works good and does what I needed from it to do. BUT... It triggers itself again inside my other triggers even if I do not cast the gROOT spell....
Only one building has the gROOT spell and I only click it and cast it once in my map, but then when I am doing other stuff and other triggers are doing its part (Mostly manipulating unit groups, moving units, etc.) this spell (gROOT) triggers AGAIN!
I have no idea how this trigger can be run multiple times even though I click my spell only ONCE in my map.
Does that mean my condition of the trigger doesn't work somehow ?
I know it is kind of complicated, but I will appreciate any help from you.
Thanks a lot and have a nice holidays guys