In the level I'm making, there are some (Blood) Elves imprisoned by Ice Trolls. (that says enough: my level is about Kael in Icecrown Glacier
)
The Blood Elves must be imprisoned by Troll Nets. If you rescue them, they should be freed from their nets.
I tried everything: I even searched in a book about Real Basic about variables. (yes, Real Basic also has variables)
First imprisoned unit
Event: Unit is rescued
Action: Delete (variable) ensnare
(variable value ensnaretarget = last created special effect)
("Woohoo! It's working!")
Second imprisoning unit
Event: Unit is rescued
Action: Delete (variable) ensnare
(variable value ensnaretarget = last created special effect)
("Damn, it's not working.")
Of course, there can only be one "last created special effect"
The Blood Elves must be imprisoned by Troll Nets. If you rescue them, they should be freed from their nets.
I tried everything: I even searched in a book about Real Basic about variables. (yes, Real Basic also has variables)
First imprisoned unit
Event: Unit is rescued
Action: Delete (variable) ensnare
(variable value ensnaretarget = last created special effect)
("Woohoo! It's working!")
Second imprisoning unit
Event: Unit is rescued
Action: Delete (variable) ensnare
(variable value ensnaretarget = last created special effect)
("Damn, it's not working.")
Of course, there can only be one "last created special effect"


