| 10-31-2008, 04:09 AM | #1 |
Alright, I've done my reSearch on the forums, and while lots of people mention it, and put many variations of it, I cannot seem to find the "original". I am thinking about having a "Jumping" unit for one of my custom races (undisclosed). It will primarily be a Movement and/or Combat-oriented skill; not necessarily dodging attacks or anything. I would like this spell to be GUI, MUI, MPI, and (ideally) leakless. *awaits the inevitable "learn JASS" rant*. If this is not possible (esp. the leakless bit), I'd like to know in advance; I'm working on an alternative to the Jumping. All I know so far, is that one has to (with triggers) add the "Crow Form" ability and remove it; then that unit can have it's "flying height" set to simulate flight. However, "move instantly" wouldn't work, and also there's the problems of gradual rise/fall and how having two locations will leak**... Oh yeah, and this is supposed to be a an Jump ability activated off of a spell; like Blink or Channel. So you click the ability, click on a point (Point-Target), and the unit jumps there. Having all selected units of that type also Jump would be cool, but not necessary if difficult. Thanks in advance. Hopefully this isn't too constraining of a re-query. :P --NON-EDIT-- Oh wait, I (finally) found this... This thread speaks of a GUI jump, but it wasn't MUI or anything. Is there a way to clean this up, using only GUI + Custom Script? Also, the use of Custom Values is fine and encouraged; as long as you only mess with the CV "locally" (like, no "unit casts spell, target unit of spell gets CV = 1") --EDIT-- ** = wait, I just thought of this... Can you use the custom script "RemoveLocation" in the middle of a trigger? Because then feasibly, one could take the "jump origin point", use + remove it, then get the "jump target point", use + remove it. ... Or not?... |
| 10-31-2008, 04:48 AM | #3 |
Probably. I haven't actually gotten a chance to download and check out that test map... But hopefully tomorrow. I'll assume you're right, though, for now. :P |
| 10-31-2008, 06:05 AM | #4 |
Oh I totally have a submission for this. Unfortunately, my profile page seems to be broken I can't get to it. Edit: found it. http://www.wc3campaigns.net/showthread.php?t=81446 Download the map and have a look at the example, it's done in the GUI and is very easy. |
| 10-31-2008, 01:18 PM | #5 | |
Quote:
But I'll DL it anyway and see if you're not crazy. :P |
| 11-04-2008, 07:18 PM | #6 |
Event - When a unit starts casting an ability Condition - Ability = w/e Action -Set CastingUnit[(Integer((Real((String((Player number of (Triggering player))))))))] = (Triggering unit) Use this one instead to set your variable....so u dont have to copy and paste 12x for 12 players (red = 1, and there's 16 players in a game in total, set variable array 12 if only REAL playing players are using the spell) same goes for setting distance...you don't need to do that 12x, once is enough |
