• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Triggering Problem: Assigning a number to a region

Status
Not open for further replies.
Level 21
Joined
Aug 21, 2005
Messages
3,699
I have (more or less) 50 regions.

In my trigger, I have the events:
a Unit enters Region 001
a Unit enters Region 002
up to Region 050

In my actions I should be able to set an Integer Variable = the number of the region the unit is actually entering. For example, if the unit enters region 031, the Variable should be set to 31

Any way to do this or is the only solution copying the trigger 50 times?

thanks for your help.
 
Status
Not open for further replies.
Top