HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

To convert a string to a region.

07-05-2003, 06:48 PM#1
Panto
I'm betting this is shamefully simple.

How can I convert a string into a region?
There's no direct "convert string to region" function for setting a region variable.

I'm using a "for each Integer A" loop and concatenating the Integer A with some words to define regions, but I can't turn my concatenated string into a region variable.

Help? Since there's 24 applicable regions, I didn't want to make separate triggers.
07-05-2003, 08:15 PM#2
Dead-Inside
Explain to me what you are trying to do or I can't help you since that doesn't sound like you've thought things trough.

Regards
07-05-2003, 08:21 PM#3
Panto
Quote:
Originally posted by Panto
How can I convert a string into a region?
I thought that was pretty straightforward. I want to define a region variable from a string variable.

I want there to be a "Convert string to region" function, but there is not. So, I want to find another way to do the same thing.
07-05-2003, 08:42 PM#4
Dead-Inside
Yes, but a string is a chat message, how are you planning on doing this, is it a number or a name? You can have a name represent a region, but it has to be preset in a String variable. If someone types the name of the String variable for example it will spawn the units in the named variable.
07-05-2003, 08:44 PM#5
Targash
Why dont you just store them in an region array?
07-05-2003, 08:46 PM#6
dataangel
It isn't painfully simple :(

I've been looking for a way to do this for a long time, and as far as I can tell, your best solution is to store all the regions in an array. Yes, you will have to make painful workarounds with lots of ifs. Yes it sucks. Yes Blizzard should get off their lazy asses and fix it. :////