| 01-28-2004, 02:13 PM | #1 |
sry for bothing such a readily available answer but i don't know jass or understand call functions and the parameters, returns ,etc. I was hoping someone could show me what line i could put in on the GUI editors insert line of code thingy to give a unit *last created* aloc. Or if someone could direct me to some explanations of variables and defining *i'm pretty sure that was a variable that was passed through* stuff like how to show last created units, triggering units, etc. |
| 01-28-2004, 03:21 PM | #2 |
I don't know JASS or Custom Text but I found myself to be a quick learner so I'll try to remember what Lord Vexorian told me. Assign the last created unit to a variable (else it would be something like getLastCreatedUnit but I'm not sure) and use something like this: Custom Text: call UnitAddAbility( udg_yourvariable,'Aloc') |
| 01-28-2004, 03:22 PM | #3 |
Just give it the unit ability named 'Locust': I'm pretty sure that's Aloc, only they gave it a name. It sure seems to work like Aloc for me, at least. |
| 01-28-2004, 08:32 PM | #4 |
The correct usage would be: Code:
Custom Script: call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() ) Abilty before unit. You can replace GetLastCreatedUnit with any unit you have stored in a variable, like this: Code:
Custom Script: call UnitAddAbilityBJ( 'Aloc', udg_YourVariableName ) There are lots of posts explaining variables; search the forum. Here 's one for example. |
| 01-28-2004, 08:46 PM | #5 |
Really, what's wrong with ' Unit - Add Locust to (Last created unit) '? Is there a problem with that that I am not aware of? |
| 01-28-2004, 08:55 PM | #6 | |
Quote:
Only special editors can do that |
| 01-28-2004, 09:02 PM | #7 |
hunter, the correct qoute is "While I Might Not Agree With What You Say, I Defend Your Right to Say It. " and it was said by voltaire |
| 01-28-2004, 09:07 PM | #8 | |
Quote:
Dude, I got that from a friking quote site, who mentioned voltaire, but also mkentioned that it was often wrongfully credited to him |
| 01-29-2004, 02:02 PM | #9 | |
Quote:
It would be the same as the custom script line, but for some reason I can't find Locust in the add ability trigger action, probably because I am using UMSWE beta or the fact I am with 1.13b and not 1.14 probably |
