ID:140110
 
Code:
client//client
command_text = ".alt "//makes the macro thing pushed in when they login

mob/var//vars
a=""//the space var
s=""//the + var
c=""// the / var
v=""// the * var
b=""//the - var

mob/verb//verb
Get(d as text)//the verb to make it run the FIND proc to run the verb the macro is set to
set hidden = 1//hides this, so its not in the command pannel
var/H = "[src.skills]"//sets H to a var
usr.Find(H)//runs the Find proc with the var you have selected


mob/verb/Set_Macro()//verb to set macro
var/l = input("What Var?","Vars") in list("a","s","c","v","b")//list of macros to select from(make these equal verbs)
var/p = input("What Verb?","Verb") in list("var/skills")//what to make them equal
usr.vars[l] = p//set the var you picked to the equal you pick

mob/verb//verbs
A()//just so you know this thing works... need verbs to use it on
usr<<"A!"//sends message to user
B()
usr<<"B!"
C()
usr<<"C!"
D()
usr<<"D!"
E()
usr<<"E!"




mob/proc/Find(var/skills)//proc
if("[skills]")
usr<<"You need to set one."//You need to set one.(var equal thing)


Problem description:

Hey everyone,

the issue I'm having is that I want the macro selection to search for a list and assign the macro to something only on my var/list[] which I have my skills down as a list

I'm using http://www.byond.com/developer/Ss4toby/SetMacro this is what I tried to tweak up I'm in a bit of a fix I mean I dont get any errors my list does not show up I might be able to get it from there if I could get it to show up

mob/var/skills[] = list(new/skill/Testmagic)

this is what I have for my list and

Skill
parent_type = /obj/
icon= 'test.dmi'
icon_state="testing"

Testmagic
Dblclick()
usr<< "Testmagic"



You are treating "var/skills" as a string... with the value "var/skills".

If you want to access the list "skills" from a mob:
input(Ref, "Choose", "Title", "Default value") in X.skills //  assuming skills is an array/list