Baltazhar
Active Member
- Reaction score
- 55
I have a given ability that summons a unit, and has the unit walk around for the duration of the spell.
I first tried with having the unit move to a new point every 3 seconds, but that didn't look all too good. Then I figured that having a region, would make it look better. Since the unit would vary between short and long straight lines, instead of just changing every 3 seconds.
So I've tried quite a few things. First I made a Region-Variable[Array] that got set at unit spawn, and the unit was ordered to move there. Since u can't make Region variables appear in events generally, I added it by using a trigger at Map Initialization. However, it never moved beyond the first region.
Then I read somewhere that the Region used in the event, can't be moved during the actions of the given trigger. That would cause an error and something would screw up. That was my problem indeed, so on to plan 2.
I made the Region-Variable have 2 arrays for each player, so Player 1 would have Array 1 and 11.
Then I redid the trigger so the unit would initially move to Region[1] and having the 2nd trigger respond to Unit enters region Region[1] and Region[11]. However, this did not work either.
Then I thought, perhaps I need some 'physical' regions created in the Region Palette, and just bound to the Region-Variable at MapIni. Redid the initial order trigger, to move to Region1, and made the 2nd trigger respond to unit entering Region1 and Region11 (Not by using triggers).
This is as far as I've come. I've made some test so when I type "1" it pans cam to Region1 and "2" to Region11, so I can check if they've moved. The Region1 moves fine, but the Region11 doesn't. The 2nd trigger never goes off (put in text msgs here and there to see how far it comes).
So what I want to know is: Is there something that makes Region - Move or Set Region-variable unuseable in events? I have tried just about anythin (i can think of), and i'm getting desperate. Everytime I get that "Hey! I haven't tried that yet!" thought, it gets wiped darn fast >.<
Hope someone can bear with me and read through this entire text crap, I can post map (more or less unwillingly, would spoil the surprise ) or post the triggers if that would help.
Rep award for anything that helps
- Balt
EDIT: Bolded the main question, for those who don't wanna know all the details
I first tried with having the unit move to a new point every 3 seconds, but that didn't look all too good. Then I figured that having a region, would make it look better. Since the unit would vary between short and long straight lines, instead of just changing every 3 seconds.
So I've tried quite a few things. First I made a Region-Variable[Array] that got set at unit spawn, and the unit was ordered to move there. Since u can't make Region variables appear in events generally, I added it by using a trigger at Map Initialization. However, it never moved beyond the first region.
Then I read somewhere that the Region used in the event, can't be moved during the actions of the given trigger. That would cause an error and something would screw up. That was my problem indeed, so on to plan 2.
I made the Region-Variable have 2 arrays for each player, so Player 1 would have Array 1 and 11.
Then I redid the trigger so the unit would initially move to Region[1] and having the 2nd trigger respond to Unit enters region Region[1] and Region[11]. However, this did not work either.
Then I thought, perhaps I need some 'physical' regions created in the Region Palette, and just bound to the Region-Variable at MapIni. Redid the initial order trigger, to move to Region1, and made the 2nd trigger respond to unit entering Region1 and Region11 (Not by using triggers).
This is as far as I've come. I've made some test so when I type "1" it pans cam to Region1 and "2" to Region11, so I can check if they've moved. The Region1 moves fine, but the Region11 doesn't. The 2nd trigger never goes off (put in text msgs here and there to see how far it comes).
So what I want to know is: Is there something that makes Region - Move or Set Region-variable unuseable in events? I have tried just about anythin (i can think of), and i'm getting desperate. Everytime I get that "Hey! I haven't tried that yet!" thought, it gets wiped darn fast >.<
Hope someone can bear with me and read through this entire text crap, I can post map (more or less unwillingly, would spoil the surprise ) or post the triggers if that would help.
Rep award for anything that helps
- Balt
EDIT: Bolded the main question, for those who don't wanna know all the details