mob
skill
verb/Spirit_Gun()
set category = "Specil Techs"
if(safe) return
if(se < 10)
src << "<b>Not enough enegry!"
return
if(!firing)
view(8) << "<b>[src]: Rei Gun"
firing = 1
se -= 10
var/obj/K = new/obj/Eatk(loc)
K.Gowner = src
K.dir = dir
walk(K, dir)
ID:155141
![]() Sep 3 2011, 10:06 pm
|
|
Ok what I am trying to do is make my skills into objects and then have a proc call them when a player clicks them or hits the assigned hot key button in this case it will be 1-9 with the player able to chose where they drag the assigned skill card after they obtain it from a skill tree so back to my original question how do I convert my old verb style skill system into one where a player has to either click the skill or hit the macro 1-9 below is a copy of my old skill verb
|
Wrath69 wrote:
cool beans thank u lucifer Np, im boredish atm anyway... i overslept yesterday now im stuck awake so beam me any other questions and ill see what i can help out with. |
Wrath69 wrote:
I will but it probably wont be till tomorrow I cant even plug this in till tomorrow lol thanx again Use src.Spirit_Gun() i guess, i dont know it worked when i tried it. lmao. |
You probably should have spell checked it.
By default, not adding a "prefix" would make the game assume that the source is doing the verb. But in this case, the src is an obj, and you want the person clicking to do the verb. EDIT: Also, I wanted to note that unless you put
set hidden = 1
Anyone will be able to see and use the verb. |
As for having a hotkey bar all you really need to do is hotkey 1 as Hotkey-Box-1 then have a proc to make Hotkey-Box-1 toggle the mvoe you dragged into it.
And
This should work for clicking the object: