• 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.

How can I change button position for raise dead only for one unit using triggers?

Level 6
Joined
Aug 3, 2021
Messages
106
Hello everybody. I was just wondering how can I change button position for Rise Dead spell for only one unit using triggers in trigger editor. Best regards form Pekisa7.
 
Level 30
Joined
Aug 29, 2012
Messages
1,383
You have these two functions since reforged

  • Ability - Set Position X of Raise Dead to 0
  • Ability - Set Position Y of Raise Dead to 2
But that probably affects everything. I suppose you can detect when this unit is selected, do the changes, and then change the positions back when it is unselected but heh...

It's probably easier to create a copy of raise dead with the position you want and add it to your unit directly
 
Level 6
Joined
Aug 3, 2021
Messages
106
You have these two functions since reforged

  • Ability - Set Position X of Raise Dead to 0
  • Ability - Set Position Y of Raise Dead to 2
But that probably affects everything. I suppose you can detect when this unit is selected, do the changes, and then change the positions back when it is unselected but heh...

It's probably easier to create a copy of raise dead with the position you want and add it to your unit directly
I know i shouldn't be replying here but to make a new thread and reply. But thank you very much. I copied raise dead trigger and raise dead abillty for other custom units of mine and it worked so thank you. Best regards from Pekisa7.
 
Level 6
Joined
Aug 3, 2021
Messages
106
If you're using LUA or JASS, you can use the natives in a local block, which will only do it for that player.

Lua:
if GetLocalPlayer() == GetEnumPlayer() then
    BlzSetAbilityPosX(abilCode, x)
    BlzSetAbilityPosY(abilCode, y)
end
I followed the other guys instructions and did it. But thanks for answering the thread and the question. Best regards form Pekisa7.
 
Top