mob/var/list/obj/Hotbar_Commands[]=list()
mob/verb
activate_hotbar(var/key)
switch(key)
if("1")
call(Hotbar_Commands[1],Hotbar_Commands[1]/Click())()
Problem description:
I'm not sure whether this would work. basically all Objs' have Click() proc and the skillcards are going to be clicking verb. When dragging on to a Hotbar, depending on the number of the hotbar, it'll put into a Hotbar Commmand. In the Macros, activate_hotbar("1") etc. will be there and activate the code underenath. I'm not so sure that'll it work if I did it like that
+
With the
activate_hotbar(var/key)
Coding\Hotbar System.dm:55:error: key: undefined argument type
New Game.dmb - 1 error, 0 warnings
For example,
I snuck in the handling of the 0 slot.
Your macros should have commands like "activate-hotbar 0", "activate-hotbar 1", etc.