ID:500278
 
(See the best response by Zaoshi.)
Hello everyone. I am working on a rpg game and don`t know how to make a slot that will auto macro.

I created a tech tree where you can learn new skills. Once you learn it you can drag it into a hud box for skills.

Now the main question. How to make that when I press "A" macro which is macrosed for Slot1 it will use the equiped technique?


Best response
In pseudocode:
proc/On_Skill_Dragged_Into_Slot()
Slot1 = Dragged_Skill

verb/On_A_Pressed()
if(Slot1)
Slot1.UseSkill()