HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Looping

12-09-2003, 02:51 PM#1
Trickster
How do i create loops? I need to make 4 dudes to partrol from region to region, in total of 9 regions, which is a lot, i know. That is why it would be better to loop this trigger, as it needs to last the whole cinematic.
12-09-2003, 02:55 PM#2
Vexorian
You can use JASS' loops but I reccomend you to use triggers and events like these:

Events
Unit enters region A
Conditions:
Unit type of (triggering unit) equal to guard
Actions:
Order (triggering unit) to patrol to Center of region B

Events
Unit enters region B
Conditions:
Unit type of (triggering unit) equal to guard
Actions:
Order (triggering unit) to patrol to Center of region C

....

Unit enters region G
Conditions:
Unit type of (triggering unit) equal to guard
Actions:
Order (triggering unit) to patrol to Center of region H

Just because loops are loops and drain memory
12-09-2003, 03:06 PM#3
Trickster
Thanks. That solved by problem.:D