You don't get it. It isn't about how nice it will look.
It's about the damn import to a map.
If you don't name your trigger the same with the init_trig function
it W-O-N-T work.
So what i stated is some "help" for newbies
Its very easy to do
But you gotta go read some tutorials about hashtables or gamecache
You need an event where your unit is issued an order
just so you check whether your autocast is on or off
then inside the hashtables we store the handle id of our current trigger , a number next to it...
First of... You should really make this multi level instanceable
giving the user a constant for base reflection value and another for increment reflection value.
private function H2I takes handle h returns integer
return h
return 0
endfunction
OUCH!!! Don't...