Behold! The glorious power of loops!

Loops… a very useful thing. When I first started modd.io, I thought that loops were pretty useless. But now I see how useful they can be. Here is one script using the glorious loops (it’ll make a teleport script with dialogue options):

trigger: when player enters region
 if region type of (triggering region) = (region name)
 then do: open (dialogue name)
 else do: none

This is the first step, toward doing it, here’s the next:

trigger: none
 for all unit's (owned by (last player selecting a dialogue option))
  do: move  (selected unit (from the loop)) to (position)
1 Like