I haven't tested it, but the following *should* work if your regions are circular-
1. Instead of "unit enters region" use "unit enters within <radius> of <point>"
2. Create a variable to store your current "point"
3. Set the <point> in #1 to use your point variable
4. Every 30 seconds, change the value of <point> to the desired point for the center of your region
If your regions need to have a non-circular shape, you'll probably have to make regions for each and every one.
Even so, you can still cycle through which is "active" by using a variable to store the "index" of the active region. You can then set that "index" to a new value every 30 seconds, and set up your "unit enters region" triggers to have Conditions based on the value of the "index", ie: "If the index is mine, I'll do my stuff. Otherwise I'll do nothing."
I haven't tested it, but the following *should* work if your regions are circular-
1. Instead of "unit enters region" use "unit enters within <radius> of <point>"
2. Create a variable to store your current "point"
3. Set the <point> in #1 to use your point variable
4. Every 30 seconds, change the value of <point> to the desired point for the center of your region
If your regions need to have a non-circular shape, you'll probably have to make regions for each and every one.
Even so, you can still cycle through which is "active" by using a variable to store the "index" of the active region. You can then set that "index" to a new value every 30 seconds, and set up your "unit enters region" triggers to have Conditions based on the value of the "index", ie: "If the index is mine, I'll do my stuff. Otherwise I'll do nothing."
I don't understand what you say.. how do I make the trigger that moves point 1 to point 2 after 30 seconds and point 2 to point 3 after 30 seconds and point 3 to point 1 after 30 seconds ? can you give me an example map ? it seems better to make 30 triggers than it..
move region 1 to point 1 after 30 seconds.
and move region 1 to point 2 after 30 seconds.
and move region 1 to point 3 after 30 seconds.
and move region 1 to point 1 after 30 seconds....
this sequence must keep repeating for 30 minutes. tell me some simple idea to trigger this except creating too many triggers.
@strhsxx: Go
I haven't tested it, but the following *should* work if your regions are circular-
1. Instead of "unit enters region" use "unit enters within <radius> of <point>"
2. Create a variable to store your current "point"
3. Set the <point> in #1 to use your point variable
4. Every 30 seconds, change the value of <point> to the desired point for the center of your region
If your regions need to have a non-circular shape, you'll probably have to make regions for each and every one.
Even so, you can still cycle through which is "active" by using a variable to store the "index" of the active region. You can then set that "index" to a new value every 30 seconds, and set up your "unit enters region" triggers to have Conditions based on the value of the "index", ie: "If the index is mine, I'll do my stuff. Otherwise I'll do nothing."
Repeat 20 times (Repeat action)
move region 1 to point 1
wait 30 sec
move region 1 to point 2
wait 30 sec
move region 1 to point 3
wait 30 sec
I don't understand what you say.. how do I make the trigger that moves point 1 to point 2 after 30 seconds and point 2 to point 3 after 30 seconds and point 3 to point 1 after 30 seconds ? can you give me an example map ? it seems better to make 30 triggers than it..
ok I found a very simple perfect solution on it.
region move
Events
Timer - Every 15.0 seconds of Game Time
Local Variables
Conditions
Actions
General - Wait 15.0 Game Time seconds
Region - Move Region 001 to Point 022
General - Wait 5.0 Game Time seconds
Region - Move Region 001 to Point 023
General - Wait 5.0 Game Time seconds
Region - Move Region 001 to Point 024
General - Wait 5.0 Game Time seconds
very simple ! it works perfectly ! and make a trigger that turns this trigger off after 30 mins !
@strhsxx: Go
I'm *really* confused with what you're trying to do, but I'm glad you got it working :)
And I wasn't aware you could move established regions using triggers. Learn something new every day.