obj/SkillCards/ActionButton
Click(x,y)
if((src in usr)&&(findtext("[y]","HotBar"))) Action()
else ..()
verb/Action()
set category="TECHNIQUES"
set src in usr.contents
..()
mob/NPC
Fisherman
name = "Fisherman"
icon = 'Fisherman.dmi'
verb
Action()
//code here for interacting with NPC
Problem description:
I was hoping this would work - having an obj in ther usr's inventory, with a verb attached to it ("Action"); and having that same verb-name be attached to NPCs and various objects...
But it doesn't...
Is there a work around to get what I wanna achieve? :)
Cheers
Seems like you want a clickable button on the screen that will call a verb, right?
If so, there's no reason to use verbs, and you should be using procs instead.