| 07-05-2003, 06:48 PM | #1 |
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 |
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 | |
Quote:
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 |
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 |
Why dont you just store them in an region array? |
| 07-05-2003, 08:46 PM | #6 |
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. ://// |
