HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attack Ground

06-01-2006, 01:33 PM#1
StockBreak
Hi, is there a way to add to a unit the "attack ground" ability without having siege damage and type of attack? Thanks.
06-01-2006, 01:37 PM#2
Chuckle_Brother
If someone knows the ID it should be. Of course I don't, but someone who kicks ass like Pitzer may know.....so just chill until one of those beasts makes an appearance.
06-01-2006, 01:54 PM#3
BertTheJasser
Or PM them and post the answer to us all into here.
06-01-2006, 01:55 PM#4
Chuckle_Brother
Would you be able to live with yourself if you disturbed PitzerMike's rest? I wouldn't
06-01-2006, 03:48 PM#5
The)TideHunter(
Its not hard to find a ability rawcode.
Use the ability ingame and make it say the used ability rawcode.
Like this:

Collapse JASS:
function Trig_Get_Rawcode_Actions takes nothing returns nothing
    call DisplayTextToForce( GetPlayersAll(), I2S(GetSpellAbilityId()) )
endfunction

//===========================================================================
function InitTrig_Get_Rawcode takes nothing returns nothing
    set gg_trg_Get_Rawcode = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Get_Rawcode, EVENT_PLAYER_UNIT_SPELL_CAST )
    call TriggerAddAction( gg_trg_Get_Rawcode, function Trig_Get_Rawcode_Actions )
endfunction
06-01-2006, 03:56 PM#6
harshateja
I don't think attacking the ground registers as a spell...much like a regular attack doesn't register as a spell.
06-01-2006, 04:06 PM#7
Chuckle_Brother
On that you would be most correct sir.
06-01-2006, 06:11 PM#8
The)TideHunter(
You could just change the event to ordered to target ground.
Then use the relevent event response
06-01-2006, 06:16 PM#9
Chuckle_Brother
You get an order, don't remember the id offhand, but that doesn't have much use sadly.
06-01-2006, 06:17 PM#10
Rising_Dusk
Attack Ground is an offset of the 'Aatk' ability.
However you cannot use a target point spell to get it to work.

Just give your unit artillery damage (This enables the attack ground ability for that unit), set the damage type to whatever you want, and do this.
Collapse JASS:
call IssuePointOrder(u, "attack", x, y)
06-01-2006, 11:42 PM#11
Anopob
I don't think the topic poster meant that....

Quote:
Hi, is there a way to add to a unit the "attack ground" ability without having siege damage and type of attack? Thanks.

So... I think he means how do you get a unit to have the ability "Attack Ground" (eg: Mortar Team, Meat Wagon, etc.).
06-02-2006, 12:03 AM#12
shadow1500
What exactly are you trying to achive? Just to have the ability on the unit? In that case you can just modify channel so that it targets a point and has an order id of "attackground".
06-02-2006, 07:07 AM#13
Rising_Dusk
Quote:
Just give your unit artillery damage (This enables the attack ground ability for that unit),

That was my last post.
06-02-2006, 12:13 PM#14
BertTheJasser
Very simple, but I guess it will work.