So, just to begin with, I have very little experience with this map editor, or coding of any type (read: I have opened the Map Editor once). I want to try something, though, about an idea for a map I had.
I want to try tweaking the way Xel'Naga towers work in a couple ways:
I want to have the range of the tower increase with possession time
I want the maximum range to be 24 (2 more than normal - this I've seen how to accomplish) which is achievable after 120 game seconds (this I don't know)
I want the tower to, after being held for 120 seconds, give vision to the holding player indefinitely even if there is no unit around
I want the tower to be able to be "reclaimed" by an opponent by doing X amount of damage to it/some marker that shows that Player A controls it
Now, I know from having used Actionscript 2.0 a few years ago that there is a way to attach two values (I'm not exactly sure how though), but I'm not sure if there is a way to in the Map Editor (but I assume there is, it's presumably how health bars reflect unit health values). If there is such a way (and my naivete isn't exposed upon learning there is a simpler way) I would like to know how I could connect the vision range with time of possession.
As for the concept of having vision without a unit present, I was thinking there might be a way to spawn a "unit" at or under the Xel'Naga Tower that would be essentially invisible (or at worst, aesthetically pleasing) that would preferably not effect pathing by other units, both friendly and not. That unit would not be able to be repaired/healed, or moved, but could be selected by players.
Now, I don't mind if you simplify any responses for me (I'm obviously very green in editing and coding), but I also don't mind hearing an answer in purely advanced terminology. I'm ready and willing to learn, and slowly build up toward creating my own maps. So have at it, and I apologize if this post is in the wrong area or improperly written - I didn't see a board for posting questions specifically, and I wasn't sure what bracket tags this would fall under...
1st - Welcome to sc2mapster:D If you'd like to do some reading, in my signature I have a bunch of tutorials you can get to by using the links, and they're made for newbies.
2nd- I'd recommend doing this with the trigger system ( but you posted this in the data section so...not sure if you need it to be data). This one is going to to be tricky, tho. I would probably have a trigger that fires every second. It checks to see if a unit is near the tower. If it is, then add 1 to a variable. I'd also recommend making the variable a size 14 array so that you can easily increment the variable corresponding to the player who has his units a the tower. You can then check to see if the number of seconds is over 180, and if so, reveal that area of the map. You'd also have to put in a trigger to reset the consecutive seconds variable if the units leave. Not sure how advanced you are with the trigger editor, so if you need more help you can send me a PM. (click on my name and then hit 'send PM')
I'll definitely be reading a lot of tutorials over my break from school, and I hope one day soon I'll actually understand half of it.
As for your solution to what I want to do, I'll be completely honest and say I half-understand it and (probably naively) think I can implement it. I'll see where I get with it, and come back with results (sooner or later).
And though I am a newcomer to mapmaking and these forums, I have a good understanding of forum mechanics (I spend most of my time on digital art forums), so I can send a PM. =P
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So, just to begin with, I have very little experience with this map editor, or coding of any type (read: I have opened the Map Editor once). I want to try something, though, about an idea for a map I had.
I want to try tweaking the way Xel'Naga towers work in a couple ways:
Now, I know from having used Actionscript 2.0 a few years ago that there is a way to attach two values (I'm not exactly sure how though), but I'm not sure if there is a way to in the Map Editor (but I assume there is, it's presumably how health bars reflect unit health values). If there is such a way (and my naivete isn't exposed upon learning there is a simpler way) I would like to know how I could connect the vision range with time of possession.
As for the concept of having vision without a unit present, I was thinking there might be a way to spawn a "unit" at or under the Xel'Naga Tower that would be essentially invisible (or at worst, aesthetically pleasing) that would preferably not effect pathing by other units, both friendly and not. That unit would not be able to be repaired/healed, or moved, but could be selected by players.
Now, I don't mind if you simplify any responses for me (I'm obviously very green in editing and coding), but I also don't mind hearing an answer in purely advanced terminology. I'm ready and willing to learn, and slowly build up toward creating my own maps. So have at it, and I apologize if this post is in the wrong area or improperly written - I didn't see a board for posting questions specifically, and I wasn't sure what bracket tags this would fall under...
Thank you all in advance.
1st - Welcome to sc2mapster:D If you'd like to do some reading, in my signature I have a bunch of tutorials you can get to by using the links, and they're made for newbies.
2nd- I'd recommend doing this with the trigger system ( but you posted this in the data section so...not sure if you need it to be data). This one is going to to be tricky, tho. I would probably have a trigger that fires every second. It checks to see if a unit is near the tower. If it is, then add 1 to a variable. I'd also recommend making the variable a size 14 array so that you can easily increment the variable corresponding to the player who has his units a the tower. You can then check to see if the number of seconds is over 180, and if so, reveal that area of the map. You'd also have to put in a trigger to reset the consecutive seconds variable if the units leave. Not sure how advanced you are with the trigger editor, so if you need more help you can send me a PM. (click on my name and then hit 'send PM')
I'll definitely be reading a lot of tutorials over my break from school, and I hope one day soon I'll actually understand half of it.
As for your solution to what I want to do, I'll be completely honest and say I half-understand it and (probably naively) think I can implement it. I'll see where I get with it, and come back with results (sooner or later).
And though I am a newcomer to mapmaking and these forums, I have a good understanding of forum mechanics (I spend most of my time on digital art forums), so I can send a PM. =P