• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Removing Standard Actions

Status
Not open for further replies.
Level 2
Joined
Feb 7, 2009
Messages
17
So I am creating a map, and having the Standard Actions like "Patrol" and "Hold Position" and a couple of the others are unnecessary. I would however like to replace them other abilities.

Is there anyway to do this?
 
Level 2
Joined
Feb 7, 2009
Messages
17
Thanks. total newb question here. Do I need a specific program to use Jass... or how do i go about doing that...

>.<
 
Level 2
Joined
Feb 7, 2009
Messages
17
Found a quick tutorial that im reading through on JASS, figured out how to convert over a trigger.

Tried to post what was above and it said it wanted a unit name (duh, i wasnt thinkin) so i tried

JASS:
function Trig_testing_JASS_Actions takes nothing returns nothing
endfunction

//===========================================================================
function InitTrig_testing_JASS takes nothing returns nothing
    set gg_trg_testing_JASS = CreateTrigger(  )
    call TriggerAddAction( gg_trg_testing_JASS, function Trig_testing_JASS_Actions )
    call ThrallRemoveAbility(u,'Amov')
    call ThrallRemoveAbility(u,'Aatk')
endfunction

It said that it expected a function name.

Note to mods: I'm not sure if this should be moved now. Judgement call. Thanks :)
 
Level 2
Joined
Feb 7, 2009
Messages
17
ThrallRemoveAbility() is not a valid function or native. You need to make a custom function called that above the calling function for it to work.
Also there is no u which you are passing it.

I barely understood any of that. lol. I tried it with just UnitRemoveAbility exactly as MakC had it and that didnt work either, gave me an error message.

Anyway, I guess I'll just dive into a bunch of tutorials until i find what i need, because i have no idea what anyone is saying. lmao.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Even if you success with that it wont remove Patrol and Hold Position
it will remove everything your unit wont be able to move or attack

There is no way to remove Patrol and Hold position without removing others

Some mappers found a way for patrol like this
1- They make "Combat - Attack 1 - Show UI" to "False" from object editor of that unit so "Attack" icon dissappears but unit still can attack
2- They edit the Patrol to give it "Attack" icon
3- They Make a trigger like "Unit gets order, if order is patrol, order unit to attack that unit/position" so when you use patrol it uses attack instead
Since its icon and text is Attack it looks like real attack and there is no Patrol
Only issue of it is Normally when unit is doing an order you see outline on its button in this way you dont see green outline in Patrol ("Attack")
 
Status
Not open for further replies.
Top