Mehh, I only know it because I was bored (about a year ago though) and tested all those things with shift + enter.Okay...
I'm not master in Shift + Enter thingy yet so...
Thanks for clearing that up ^^
EDIT:
HOWEVER, a Locust spell for Hero is a... BAAAD idea don't you think ap0 ?
call UnitAddAbility(GetTriggerUnit(), 'Aloc')
It is.
JASS:call UnitAddAbility(GetTriggerUnit(), 'Aloc')
Add the above line in a Custom script, wherever you want a unit to have locust.
NOTE: it only gives the triggering unit the ability.
For "Picked Unit", replace "GetTriggerUnit()" with "GetEnumUnit()".
I think those two are the most important for this...
LolHow do you find all that stuff out? How the hell should people know ''Picked Unit'' in Jass is ''EnumUnit''? :I
Is there some kind of list for this?
I'd rather spend my time learning more advanced programming languages.LolI created a list for it, yes xD
But it's actually rather easy:
Go to the trigger editor and create a GUI trigger with "Picked unit" in it somewhere.
Then go to Edit -> Convert to custom text et voila.
Over time, you'll remember them - they're actually quite easy to remember ^^
function Trig_Untitled_Trigger_001_Func001Func001A takes nothing returns nothing
call UnitAddAbilityBJ( 'Aloc', GetEnumUnit() )
call ShowUnitHide( GetEnumUnit() )
call ShowUnitShow( GetEnumUnit() )
endfunction
function Trig_Untitled_Trigger_001_Func001A takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(GetEnumPlayer()), function Trig_Untitled_Trigger_001_Func001Func001A )
endfunction
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Untitled_Trigger_001_Func001A )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Untitled_Trigger_001, 30.02 )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
DUDE! I already answered that!Can it be possible giving Locust ability through TRIGGER ?
Agh, ugly converted GUI with only 1 change (ability to 'Aloc', what I said in the first place).Here is a spell that I learned. but this one gives it to all units on map. IT was for a mazeall you got do do is make a trigger then add ability and pick watever, then change it to jass then the spell that you choose (its like Athe, EtpF ect) and change it with AlocJASS:function Trig_Untitled_Trigger_001_Func001Func001A takes nothing returns nothing call UnitAddAbilityBJ( 'Aloc', GetEnumUnit() ) call ShowUnitHide( GetEnumUnit() ) call ShowUnitShow( GetEnumUnit() ) endfunction function Trig_Untitled_Trigger_001_Func001A takes nothing returns nothing call ForGroupBJ( GetUnitsOfPlayerAll(GetEnumPlayer()), function Trig_Untitled_Trigger_001_Func001Func001A ) endfunction function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing call ForForce( GetPlayersAll(), function Trig_Untitled_Trigger_001_Func001A ) endfunction //=========================================================================== function InitTrig_Untitled_Trigger_001 takes nothing returns nothing set gg_trg_Untitled_Trigger_001 = CreateTrigger( ) call TriggerRegisterTimerEventSingle( gg_trg_Untitled_Trigger_001, 30.02 ) call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions ) endfunction
DUDE! I already answered that!
Please read the thread before replying?! You look stupid like this.
Agh, ugly converted GUI with only 1 change (ability to 'Aloc', what I said in the first place).
This is quite horrible, sorry![]()
call UnitAddAbility(udg_NPC[1], 'Aloc')
call UnitAddAbility(NPC[1], 'Aloc')