Hello all,
I have been working on a campaign that utilizes multiple maps that saves and loads a selected char.
I am currently trying to use the Unit within range global trigger in the Event category to point to my last restored char. Ultimately, I want to use this action to cause a stationary mob - which I set to a slower speed (walk effect) to increase its movement rate (run) at the char if the char gets too close.
My prob is that the Unit within Range trigger only lets me select a unit that I have already placed on the map. It seems like an easy fix for Blizz to just go in and make a small coding change to let you select Last Restored or Last Created unit but alas I have tried everything including creating a Variable to assign my char to but nothing seems to work. I believe I have tried every possible Variable type and no Variable seems to pop up when I have to select a unit.
Can someone write a JASS script to allow me to use the Unit within Range Event option and have it to point to the Last Restored unit or Last Created unit? I dont know JASS at all but that seems to be the only possible option I have left.
Thanks for your time and any help you can give me.
I have been working on a campaign that utilizes multiple maps that saves and loads a selected char.
I am currently trying to use the Unit within range global trigger in the Event category to point to my last restored char. Ultimately, I want to use this action to cause a stationary mob - which I set to a slower speed (walk effect) to increase its movement rate (run) at the char if the char gets too close.
My prob is that the Unit within Range trigger only lets me select a unit that I have already placed on the map. It seems like an easy fix for Blizz to just go in and make a small coding change to let you select Last Restored or Last Created unit but alas I have tried everything including creating a Variable to assign my char to but nothing seems to work. I believe I have tried every possible Variable type and no Variable seems to pop up when I have to select a unit.
Can someone write a JASS script to allow me to use the Unit within Range Event option and have it to point to the Last Restored unit or Last Created unit? I dont know JASS at all but that seems to be the only possible option I have left.
Thanks for your time and any help you can give me.