mob/Characters
var
Active_Skill = "Bomb"
proc
Bomb()
world<<"BOOM!"
obj/HUD
Teh_Button
Click()
var/mob/Characters/M = usr
//Now Im Lost...
Problem description: Ok, what I want to happen is to check what my Active_Skill is and call the corresponding proc when I click Teh_Button. As my variable is "Bomb", I want it to call Bomb(). Thanks.
I think what you want is:
I'm actually a bit confused about the syntax, so do make sure you look up call() since I might be wrong and it's useful anyway.
I'm a bit rusty on programming but I don't think you want var/mob/Characters/M = usr. I reckon you want: