You want the troops to be teleported to some position and then what?
Wait a sec and teleport again?
Because that what your script does now
.
#_here
"_x setpos (getpos Here)" foreach units BOB
~2
BOB move getpos village1
This part teleports units to the place
Here, waits two secs and then there's a faulty use of the
move command...
the move is used on single soldiers, or on groups (a single soldier is group infact), so the move command should be issued like this:
"_x move (getpos village1)" forEach BOB
then after issuing that order the script jumps here, immediately:
#_There
"_x setpos (getpos There)" foreach units BOB
and then in a blink of an eye here:
#_Where
"_x setpos (getpos Where)" foreach units BOB
And, what this is supposed to do exactly?:
#_moveon = _here
#_movethere = _There
#_movewhere = _Where
I'm a bit lost what you are trying to achieve...
If you're trying to get the enemies to approach that village1 from randomish direction then you will need something with which you determine the random thing that makes the script jump into one of those setPos sections (and after that exit)...
Something like:
_r=random 100
? _r < 30: goto "here"
? _r > 30 && _r < 60: goto "there"
? _ri > 60: goto "mars"
#here
"_x setpos (getpos Here)" foreach units BOB
~2
"_x move (getpos village1)" forEach units BOB
exit
#there
"_x setpos (getpos There)" foreach units BOB
~2
"_x move (getpos village1)" forEach units BOB
exit
#mars
"_x setpos (getpos Where)" foreach units BOB
~2
"_x move (getpos village1)" forEach units BOB
exit
You execute that like you do now, BUT remember:
BOB needs to be a group, in that group in some soldiers init field you write
BOB=group thisThen, those GLs (=Game Logics) you use must be named as Here, There, Where and village1...
In theory this should work...
But I'm not giving any promises
Prolly screwed something up like usually
There's no need to name the triggers unless you use the triggers themselves in the script...
East Detected by West means that the trigger is 'triggered' when in that trigger area a East unit is detected by a West unit. If that happens then the script will be executed...