Ok so ive look around and found some examples but unfortunately they are all a little different than mine and cant figure this out. What i want to do is:
1. drag a skill (coded as an object with a verb example below) to a skill bar on the HUD. This part i can do not sure if im doing it right but i reset the hud icon and state to the objects icon and state.
2. Make the click command for the hotkey activate obj verb as well as the number key on the keyboard.
below ive pasted the related code
obj/Hotkeys
hot1
icon = 'hotkeys.dmi'
screen_loc = "25,12"
icon_state = "1"
client
MouseDrop(obj/src_object,obj/ over_object,src_location,over_location)
if(istype(over_object,/obj/Hotkeys))
if(istype(src_object,/obj))
over_object.icon=src_object.icon
obj/Search
layer = MOB_LAYER+9
Click()
Search(usr)
verb
Search()
set hidden=1
ID:161057
Jun 23 2008, 1:46 pm
|
|
Jun 24 2008, 7:01 am
|
|
I don't know much about how to do what you're doing, but I will point out that this currently will allow you to drag a hotkey onto a another hotkey. (And you should use && instead of two ifs in a row.)
|
In response to Naokohiro
|
|
yeah thats what i want and im adding more if statements to it thats why i used another if. What im having trouble with now is assigning the macros to use those as well i have to where you can click the the hotkey and it will perform the task now. But i need to add it to the macros to always do that command and dont know how
|